public function __construct($userName, $userPwd, $captcha) { global $Protect; $this->login = $Protect->Check($userName); $this->password = $Protect->Check($userPwd); $this->captcha = $Protect->Check($captcha); if ($_SESSION["SecurityCode"] != $captcha) { exit(Print_error("Texto da imagem inválido.")); } //$this->Valid_UserName(); $this->Valid_UserPwd(); $_SESSION['Login'] = $this->login; $_SESSION['Browser'] = str_replace(";", ":", $_SERVER['HTTP_USER_AGENT']); $_SESSION['Address'] = $_SERVER['REMOTE_ADDR']; print "Logado com sucesso. Aguarde..."; Refresh_Page(0); }
//Para a execu��o da p�gina para retornar o ajax } /* @Verify auth [Session] */ if (!isset($_SESSION['Login'])) { $tpl->set("Time", $LD_Time->Result_Time()); $tpl->set("Address", $_SERVER[SCRIPT_NAME] . "?" . $_SERVER[QUERY_STRING]); $tpl->open("templates/" . TEMPLATE . "/login.php"); $tpl->show(); } else { $_SESSION['AddressShop'] = base64_encode("index.php?" . $_SERVER[QUERY_STRING]); switch ($_GET['cmd']) { case "LogoutSystem": session_destroy(); Refresh_Page(0); break; case "CatalogSystem": Require_File("modules/general.class.php"); $LD_General = new LD_General(); $LD_General->GetGolds(); $LD_General->GetMembname(); $tpl->open("templates/" . TEMPLATE . "/catalog.php"); break; case "CatalogSystemDetails": Require_File("modules/general.class.php"); $LD_General = new LD_General(); $LD_General->GetGolds(); $LD_General->GetMembname(); Require_File("modules/catalog.class.php"); $LD_Catalog = new LD_Catalog();