1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
session_start() ;
//niveau de sécurité de la page
$securite = '4';
//
include('admin/inc_config.php');
if (isset($_SESSION['login']))
{
if(isset($_SESSION['securite']) && $_SESSION['securite']>=$securite)
{
mysql_connect($serveur_bdd, $login_bdd, $mdp_bdd);
mysql_select_db($nom_bdd);
mysql_query("SET NAMES 'utf8'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Bulletin informatisé - Gestion des matières</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/admin.css" media="all">
</head>
<body>
<div id="global">
<div id="head">
</div>
<div id="menu">
<li><a href="matiere.php">Gestion des matières</a></li>
</div>
<div id="statut">
<?php echo 'Bienvenue '.$_SESSION['prenom'].' '.$_SESSION['nom'];
?>[ <a href="deconnect.php">Log Out</a> ]
</div>
<div id="main">
partie principale de la page
</div>
<?php
mysql_close();
?>
</div>
</body>
</html>
<?php
}
else
{
header('Location: test.php');
}
}
else
{
header('Location: admin.php');
}
?> |
Partager