Rev | Line | |
---|
[10348] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | $edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "config/config.inc.php"; |
---|
| 6 | |
---|
| 7 | if (file_exists($edited_file)) |
---|
| 8 | { |
---|
| 9 | $content_file = file_get_contents($edited_file); |
---|
| 10 | } |
---|
| 11 | else |
---|
| 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.