. */ // Usage // ----- // This file is included on pages which require admin privileges - e.g. updating the software. // The username is 'admin' by default and the password should be set in the custom_config.php file. session_start(); require_once(dirname(dirname(__FILE__)).'/config.php'); if (isset($_GET['logout'])) $_SESSION['auth'] = 0; if (!isset($_SESSION['auth']) || $_SESSION['auth'] != 1) { if (isset($admin_page)) { header('Location: login.php?redirect='.$admin_page); } else { header('Location: login.php'); } exit; }