X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/a995e194d8f5e997cfc1032389497a9f20b7d7e3..3994a351bbae6ef4c58826164f34d1ab526549c7:/admin.php diff --git a/admin.php b/admin.php index 2fd8d29..5ae2d6e 100755 --- a/admin.php +++ b/admin.php @@ -19,7 +19,7 @@ define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/'); -require (JIRAFEAU_ROOT . 'lib/config.php'); +require (JIRAFEAU_ROOT . 'lib/config.original.php'); require (JIRAFEAU_ROOT . 'lib/settings.php'); require (JIRAFEAU_ROOT . 'lib/functions.php'); require (JIRAFEAU_ROOT . 'lib/lang.php'); @@ -110,7 +110,9 @@ elseif (!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) /* Operations may take a long time. * Be sure PHP's safe mode is off. */ - set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); /* Admin interface. */ require (JIRAFEAU_ROOT . 'lib/template/header.php'); @@ -145,6 +147,26 @@ require (JIRAFEAU_ROOT . 'lib/template/header.php'); + +
+ + + + + + + + + + +
+ +
@@ -226,6 +248,14 @@ if (isset ($_POST['action'])) echo t('Number of cleaned files') . ' : ' . $total; echo '

'; } + elseif (strcmp ($_POST['action'], 'clean_block') == 0) + { + $total = jirafeau_admin_clean_block (); + echo '
' . NL; + echo '

'; + echo t('Number of cleaned files') . ' : ' . $total; + echo '

'; + } elseif (strcmp ($_POST['action'], 'list') == 0) { jirafeau_admin_list ("", "", "");