@@ -19,25 +19,25 @@
*/
include_once 'inc/class.page.php';
$scripts = array('jQuery','jQueryUI');
$adminpage = new page('Administration',$scripts);
if(!isset($admin_pass)) {
echo "<p>Administration password not configured. See config.inc for more information.</p>";
$adminpage->foot();
}
// Force authentication
if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_PW'] != $admin_pass) {
else if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_PW'] != $admin_pass) {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
echo '<p>You must authenticate to view this page.</p>';
exit;
function isBeforeDate($first, $reference) {
return true;
function emptySavedDir($todate = null) {
Status change: