Exemple #1
0
            VerifyLogin();
            $couponCode = $Protect->Check($_GET['couponCode']);
            Require_File("modules/coupon.class.php");
            $LD_Coupon = new LD_Coupon($couponCode);
            break;
    }
    exit;
    //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;
Exemple #2
0
            VerifyLogin();
            Require_File("modules/itemfind.class.php");
            $itemFind = new itemFind();
            break;
            // 	VerifyLogin(); << Colocar nos outros modulos em ajax para admin
    }
    exit;
    //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 {
    if ($_GET['cmd'] != "LogoutSystem") {
        VerifyLogin();
    }
    $_SESSION['AddressShop'] = base64_encode("index.php?" . $_SERVER['QUERY_STRING']);
    switch ($_GET['cmd']) {
        case "LogoutSystem":
            session_destroy();
            Refresh_Page(0);
            break;
        case "Product::[Manager]":
            $tpl->open("templates/" . TEMPLATE . "/product[manager].php");
            break;
        case "ManagerPhoto":