Example #1
0
<!DOCTYPE html>
<?php 
session_start();
include '../../Conf/Include.php';
$http = new Http\Header();
if (!isset($_SESSION['login'])) {
    $http->redirect("index.php");
}
$nombre = $_SESSION['login']['nombre'];
$imagen = $_SESSION['login']['imagen'];
$password = \SivarApi\Tools\Encriptacion\Encriptacion::decrypt($_SESSION['login']['password']);
if (isset($_REQUEST['password'])) {
    if (strcmp($password, $_REQUEST['password']) == 0) {
        $_SESSION['lock'] = false;
        $http->redirect("index.php");
    }
} else {
    $_SESSION['lock'] = true;
}
?>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<?php 
AdminHeader::$relative_route = "../";
AdminHeader::GetTitle("Pantalla bloqueada");
AdminHeader::GetMeta();