Page::Login(); exit; //показать авторизацию и сообщение об ошибке } else { //выставить кукисы // //exit; setcookie('loginusername', $auth->username); setcookie('loginpassword', $auth->password); } $userinstance->username = trim(@$_REQUEST['username']); } $auth = new Auth(trim($_REQUEST['loginusername']), trim($_REQUEST['loginpassword'])); //var_dump($userinstance->GetID('username',$auth->username)); Page::$userid = $userinstance->GetID($auth->username, 'username'); Page::$query_string = $_SERVER["QUERY_STRING"]; Page::$request_uri = $_SERVER["REQUEST_URI"]; Page::$page = @$_GET['page']; //Block 2: Dashboard if ($action == '' && $object == '' && $auth->check_auth() && $auth->get_rights() == 'Admin') { Page::init('admin'); Page::setup(Lang::$langarray['dashboard'], Lang::$langarray['pleasedtomeetyou']); Page::Dashboard(); exit; } elseif ($action == '' && $object == '' && $auth->check_auth() && $auth->get_rights() == 'Active') { //show user's dashboard Page::init('user'); if (is_numeric(@$_COOKIE['temporderid'])) { //creating new order from temprary one $temporder = TempOrder::getInstance(); $temporderarray = $temporder->FetchData($_COOKIE['temporderid']);