aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/include/localconf.inc.php
blob: b801db23633d0b3a24f73007194aa22827fedd6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');

$edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "config/config.inc.php";

if (file_exists($edited_file))
{
  $content_file = file_get_contents($edited_file);
}
else
{
  $content_file = "<?php\n\n/* ".l10n('locfiledit_newfile')." */\n\n\n\n\n?>";
}

$template->assign('show_default', array(
  array(
    'URL' => LOCALEDIT_PATH.'show_default.php?file=include/config_default.inc.php',
    'FILE' => 'config_default.inc.php'
    )
  )
);

$codemirror_mode = 'application/x-httpd-php';

?>