Esempio n. 1
0
        print "<script type=\"text/javascript\">window.location='?';</script>";
    } else {
        print "<script type=\"text/javascript\">setInterval(\"window.location='?';\"," . $Time . ");</script>";
    }
}
function VerifyLogin()
{
    if (isset($_SESSION['Login']) == false) {
        exit("<script type=\"text/javascript\">alert(\"Invalid Session. Redirect for Login Page.\"); window.location='?cmd=LogoutSystem';</script>");
    }
}
/*
    @Import Template Class
*/
Require_File("modules/templates.class.php");
$tpl = new LD_Templates();
/*
    @Settings Configs
*/
Require_File("modules/time.class.php");
$LD_Time = new LD_Time();
Require_File("modules/protect.class.php");
$Protect = new LD_Protect();
if (defined("LANGUAGE") == true) {
    Require_File("languages/" . LANGUAGE . ".php");
} else {
    exit(Print_error("LANGUAGE", 1));
}
if (defined("HOST_SQL") == false) {
    exit(Print_error("HOST_SQL", 1));
}
Esempio n. 2
0
{
    $FAuthFile = fopen("login_auth.inc", "r");
    $FAuthFile_Content = fread($FAuthFile, filesize("login_auth.inc"));
    $FAuthFile_Content = explode("|", $FAuthFile_Content);
    if (in_array($_SESSION['Login'], $FAuthFile_Content) == false) {
        exit("<script type=\"text/javascript\">alert(\"Seu login não tem previlégio para acessar essa área.\"); window.location='?cmd=LogoutSystem';</script>");
    }
    if (isset($_SESSION['Login']) == false) {
        exit("<script type=\"text/javascript\">alert(\"Invalid Session. Redirect for Login Page.\"); window.location='?cmd=LogoutSystem';</script>");
    }
}
/*
	@Import Template Class
*/
Require_File("../modules/templates.class.php");
$tpl = new LD_Templates();
/*
	@Settings Configs
*/
Require_File("../modules/time.class.php");
$LD_Time = new LD_Time();
Require_File("../modules/protect.class.php");
$Protect = new LD_Protect();
//Require_File("../settings.php");
if (defined("LANGUAGE") == true) {
    Require_File("../languages/" . LANGUAGE . ".php");
} else {
    exit(Print_error("LANGUAGE", 1));
}
if (defined("HOST_SQL") == false) {
    exit(Print_error("HOST_SQL", 1));