Some commit message
This commit is contained in:
parent
6be5358247
commit
e888b04d50
|
@ -20,7 +20,7 @@
|
|||
|
||||
|
||||
// Loads the build facade
|
||||
require_once __BUILD__.'/Builder.php';
|
||||
// require_once __BUILD__.'/Builder.php';
|
||||
|
||||
|
||||
/* AUTOLOADER
|
||||
|
@ -52,7 +52,6 @@
|
|||
\manager\sessionManager::session_start();
|
||||
|
||||
|
||||
|
||||
/* [3] Gestion des droits des utilisateurs
|
||||
=========================================================*/
|
||||
/* (1) Retourne si l'utilisateur est connecte ou non */
|
||||
|
|
|
@ -13,5 +13,5 @@
|
|||
|
||||
class Builder{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -78,13 +78,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
// On definit l'id session si donne en argument
|
||||
if( $session_id != null )
|
||||
session_id( $session_id );
|
||||
|
||||
|
||||
// Precaution: on met a jour le cookie
|
||||
setcookie( 'PHPSESSID', session_id(), time()+60*30, '/');
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
|||
/*******************/
|
||||
private static function update_token(){
|
||||
$token = self::$prefix.self::sha1(uniqid());
|
||||
|
||||
|
||||
// On definit le token en session
|
||||
$_SESSION['session_token'] = $token;
|
||||
|
||||
|
@ -53,13 +53,12 @@
|
|||
$_COOKIE['session_token'] = $_SESSION['session_token'];
|
||||
setcookie( 'session_token', $_COOKIE['session_token'], time()+60*30, '/');
|
||||
}
|
||||
|
||||
|
||||
/************/
|
||||
/* AMORCEUR */
|
||||
/************/
|
||||
public static function session_start(){
|
||||
\session_start();
|
||||
return;
|
||||
return \session_start();
|
||||
|
||||
|
||||
/* [1] Génération et Gestion des donnees a utiliser
|
||||
|
@ -85,12 +84,12 @@
|
|||
// On verifie l'id session (5 premiers chars du hash des donnees perso)
|
||||
$valid_sessid = strpos( session_id(), substr(self::$prefix,0,5) ) === 0;
|
||||
|
||||
// Si id session incorrect ou pas de token
|
||||
// Si id session incorrect ou pas de token
|
||||
if( !$valid_sessid )
|
||||
self::reset_session( $sessid ); // On initialise la session (bon id session)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* [3] Verification du token
|
||||
==============================================================*/
|
||||
// On verifie que le token est valide
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<title>SOCIOVIEW - Tableau de bord</title>
|
||||
<title>NxTIC - Tableau de bord</title>
|
||||
|
||||
<!-- Informations de la page -->
|
||||
<meta name='Content-Type' content='text/html; charset=utf-8'>
|
||||
|
@ -28,7 +28,7 @@
|
|||
<script type='text/javascript' src='/js/lib/min/input-checker.js' ></script> <!-- Gestion dynamique des saisies -->
|
||||
<script type='text/javascript' src='/js/lib/min/form-deflater.js' ></script> <!-- Gestion des formulaires js-friendly -->
|
||||
<script type='text/javascript' src='/js/lib/min/reset.js' ></script> <!-- Corrections Javascript natif (ajouts) -->
|
||||
<script type='text/javascript' src='/js/lib/api.js' ></script> <!-- Gestion des transactions avec le serveur -->
|
||||
<script type='text/javascript' src='/js/lib/api.js' ></script> <!-- Gestion des transactions avec le serveur -->
|
||||
<script type='text/javascript' src='/js/lib/min/page-manager.js' ></script> <!-- Gestion réseau/chargement/liens/URL -->
|
||||
<script type='text/javascript' src='/js/lib/min/notif.js' ></script> <!-- Gestion des notifications -->
|
||||
<script type='text/javascript' src='/js/lib/min/shortcut-manager.js' ></script> <!-- Gestion des raccourcis clavier -->
|
||||
|
|
Loading…
Reference in New Issue