source: trunk/plugins/LocalFilesEditor/include/localconf.inc.php @ 10348

Last change on this file since 10348 was 10348, checked in by patdenice, 13 years ago

Clean code

File size: 575 bytes
RevLine 
[10348]1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5$edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "config/config.inc.php";
6
7if (file_exists($edited_file))
8{
9  $content_file = file_get_contents($edited_file);
10}
11else
12{
13  $content_file = "<?php\n\n/* ".l10n('locfiledit_newfile')." */\n\n\n\n\n?>";
14}
15
16$template->assign('show_default', array(
17  array(
18    'URL' => LOCALEDIT_PATH.'show_default.php?file=include/config_default.inc.php',
19    'FILE' => 'config_default.inc.php'
20    )
21  )
22);
23
24$codemirror_mode = 'application/x-httpd-php';
25
26?>
Note: See TracBrowser for help on using the repository browser.