mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
Clean code
git-svn-id: http://piwigo.org/svn/trunk@10348 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -0,0 +1,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';
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user