コード例 #1
0
ファイル: out.php プロジェクト: AngieCortes/AngieBarla
<?php

session_start();
include '../class/securityClass.php';
use barlaKarime\securitySystem as security;
$security = new security\securityClass();
$security->login();
header('Location: ../index.php');
コード例 #2
0
<?php

session_start();
include 'class/securityClass.php';
?>
 
<?php 
use barlaKarime\securitySystem as security;
$security = new security\securityClass();
if ($security->validate() === true) {
    ?>
  <!DOCTYPE html>
  <html>
    <head>
      <meta charset="UTF-8">
      <title></title>
    </head>
    <body>
      <h1>Menu Principal</h1>
      <ul>
        <li><a href="products.php">Ventas</a></li>
        <li>Informe Del Dia</li>
        <li><a href="procesos/out.php">Salir</a></li>
      </ul>
    </body>
  </html>
<?php 
} else {
    ?>
  <?php 
    header('Location: index.php');