Exemplo n.º 1
0
<?php

use Bourse\Controllers\Controller;
require_once '../../../index_header.php';
$controller = new Controller();
//donne ledroit d'access a l'espace admin
$controller->allow("intermediaire");
?>
    <header class="div_header">
    
    <nav role="navigation" class="nav_header">

        <ul>
            
            <li class="left" ><a title ="home Bourse" href="index.php?p=homeSite">BOURSE @NET</a></li>
             <li  class="center"><a href="index.php?p=homeSite">Accueil  </a></li>
                <li> <a href="index.php?p=listeUser">La liste des inscrits </a></li>
                   <li><a href="index.php?p=addUser">Ajouter un utilisateur </a></li>
                <li> <a href="index.php?p=addSociete">Ajouter une societe </a></li>
               
                <li class="right"> <a href="index.php?p=deconnexion" >
                        Se deconnecter <span class="glyphicon glyphicon-log-out""></span></a></li>
            </ul>
       
    </nav>

</header>
Exemplo n.º 2
0
<?php

use Bourse\Controllers\Controller;
use Bourse\Views\Forms\FormBootstrap;
require_once '../../../index_header.php';
$levels = (require '../../../Config/ConfigLevel.php');
$controller = new Controller();
//donne le droit d'access a l'espace admin
$controller->allow("admin");
$post = null;
/*
 if (isset($_SESSION['post'])) {
 $post = $_SESSION['post'];
 $id = isset($post['id'])?$post['id']:'';
 }
*/
if (isset($data['post'])) {
    $post = $data['post'];
}
if (isset($_GET['id'])) {
    $id = $_GET['id'];
}
$form = new FormBootstrap($post);
if (isset($_SESSION['success'])) {
    echo '<p class="bg-success">' . $_SESSION['success'] . '</p>';
    unset($_SESSION['success']);
}
if (isset($_SESSION['error'])) {
    echo '<p class="bg-danger">' . $_SESSION['error'] . '</p>';
    unset($_SESSION['error']);
}
Exemplo n.º 3
0
<?php

use Bourse\Controllers\Controller;
require_once '../../../index_header.php';
$controller = new Controller();
//donne ledroit d'access a l'espace admin
$level = $controller->allow("user");
echo 'home page espace';
?>
    <hr>
<h1>Bienvenu sur l'espace personnel</h1>
<?php 
var_dump("oooooooooooookkkkkkk");
// var
var_dump($_SESSION['user']);
$user = unserialize($_SESSION['user']);
var_dump("iciiiiiiii");
var_dump($user->niveauAccess());
/*
$user=new Utilisateur();
//$user= unserialize($_SESSION['user']);
var_dump($user);
*/