date_default_timezone_set('Europe/Berlin'); umask(0); Mage::app(); $session = new Netz98_Admin_Model_Session(); $session->start(); if (!empty($_POST)) { if (isset($_POST['form']) && $_POST['form'] == 'login') { $request = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; $session->login($_POST['username'], $_POST['password'], $request); } } if (isset($_GET['logout']) && $_GET['logout'] == 'yes') { $session->clear(); } if (!$session->isLoggedIn()) { print getHeader() . getLoginBox() . getFooter(); exit; } $root = dirname(__FILE__) . DS; $shop = null; define('TEMPLATES_DIR', 'Templates'); //-------------------------------------------------------------- /** * Enter description here... * * @return string */ function getLoginBox() { return ' <div style="width:300px; padding:20px; margin:90px auto !important; background:#f6f6f6;">
$session = new Netz98_Admin_Model_Session(); $session->start(); if (!empty($_POST)) { if(isset($_POST['form']) && $_POST['form'] == 'login') { $request = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; $session->login($_POST['login']['username'], $_POST['login']['password'], $request); } } if(isset($_GET['logout']) && $_GET['logout'] == 'yes') { $session->clear(); } if (!$session->isLoggedIn()) { print getHeader() . getLoginBox() . getFooter(); exit; } $root = dirname(__FILE__) . DS; $shop = null; define('TEMPLATES_DIR', 'Templates'); //-------------------------------------------------------------- /** * Enter description here... * * @return string */