Replace markers with configured values.
*/
$cfg['style'] = 'courgette';
*/
$cfg['style'] = 'courgette';
+/* Name the organisation running this installation, eg. 'ACME'
+ */
+$cfg['organisation'] = 'ACME';
+
+/* Provide a contact person for this installation, eg. 'John Doe <doe@example.com>'
+ */
+$cfg['contactperson'] = '';
+
/* Propose a preview link if file type is previewable
*/
$cfg['preview'] = true;
/* Propose a preview link if file type is previewable
*/
$cfg['preview'] = true;
{
$patterns = array(
'/###ORGANISATION###/',
{
$patterns = array(
'/###ORGANISATION###/',
- '/###CONTACTPERSON###/'
+ '/###CONTACTPERSON###/',
+ '/###WEBROOT###/'
);
$replacements = array(
);
$replacements = array(
- '[ORGANISATION PROVIDING THIS WEBSITE]',
- 'contact@[THIS WEBSITE]'
+ $GLOBALS['cfg']['organisation'],
+ $GLOBALS['cfg']['contactperson'],
+ $GLOBALS['cfg']['web_root']
);
$content = preg_replace($patterns, $replacements, $content);
);
$content = preg_replace($patterns, $replacements, $content);