Exemplo n.º 1
0
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
session_start();
require '../classes/LoginSystem.class.php';
global $database;
$loginSys = new LoginSystem();
$time = new DateTime();
$time = $time->format('Y/m/d H:i:s');
//$time=time();
$a = $_SESSION['sessionnum'];
$lsql = "UPDATE ACCESSLOG SET LOGOUTTIME=TO_DATE('{$time}','yyyy/mm/dd hh24:mi:ss') WHERE SESSIONID='{$a}'";
$q = oci_parse($conn, $lsql);
oci_execute($q);
$loginSys->logout();
Exemplo n.º 2
0
<?php

include_once '../../conf/config.inc.php';
$logout = new LoginSystem();
$logout->logout();
//echo '<script>location.href="'.DEFAULT_ADMIN_URL.'/login/login.php";</script>';
redirectUrl(DEFAULT_ADMIN_URL . '/login/login.php');
exit;
?>



	







Exemplo n.º 3
0
<?php

require "class.loginsys.php";
$LS = new LoginSystem();
$LS->logout();