예제 #1
0
<?php

require_once 'index_header.php';
use Bourse\Controllers\Controller;
if (isset($_GET['p'])) {
    $page = $_GET['p'];
} else {
    $page = "home";
    //$titre="Page d'accueil";
}
$controller = new Controller();
//s$titre="home";
if ($page === "home") {
    $titre = "Page";
    // var_dump($titre);
    $controller->index();
    //require ROOT.'/views/pages/home.php';
}
//affichage de la page d'inscription
if ($page === "inscription") {
    $titre = "Inscription";
    $controller->inscription();
} else {
    if ($page === "sinscrire") {
        //traitement inscription
        $controller->sinscrire();
    } else {
        if ($page === "connexion") {
            //affichage de la page de connexion
            $controller->connexion();
        } else {
예제 #2
0
파일: index.php 프로젝트: samira2016/bourse
<?php

require_once 'index_header.php';
use Bourse\Controllers\Controller;
if (isset($_GET['p'])) {
    $page = $_GET['p'];
} else {
    $page = "home";
    //$titre="Page d'accueil";
}
$controller = new Controller();
//s$titre="home";
if ($page === "home") {
    $titre = "Page";
    $controller->index();
}
//affichage de la page d'inscription
if ($page === "inscription") {
    $titre = "Inscription";
    $controller->inscription();
} else {
    if ($page === "sinscrire") {
        //traitement inscription
        $controller->sinscrire();
    } else {
        if ($page === "connexion") {
            //affichage de la page de connexion
            $controller->connexion();
        } else {
            if ($page === "confirmInsciption") {
                //affichage de la page de confirmation d'inscription
예제 #3
0
파일: menu.php 프로젝트: samira2016/bourse
<?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>
예제 #4
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']);
}
예제 #5
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);
*/