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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OUR-Blog.net | News | Administration des Articles</title>
<meta name="DESCRIPTION" content="" />
<meta name="KEYWORDS" content="" />
<link rel="icon" type="image/png" href="design/mafavicon.png" />
<link rel="stylesheet" type="text/css" href="div.css" />
</head>
<body>
<div id="container">
<div class="head">
<div class="banner"></div>
</div>
<?php
include_once 'nav_top.php';
?>
<?php
// ***************************************************************
// ADMIN NEWS : IDENTIFICATION
// ***************************************************************
// Protection de page index ADMIN
<?php session_start();
// ***************************************************************
// Connection a la partie "administration"
// ***************************************************************
// ==> CONFIGURATION de VOS parametres PERSO
// login et mot de passe de l'ADMINISTRATEUR :
$AdminIdentifiant = 'demo';
$AdminMotDePasse = 'test';
// ***************************************************************
$login = '';
$pass = '';
$msgerreur = '';
// ------------------------------
// si le visiteur (administrateur ?) a validé le formulaire
// on recupere les donnees
if (isset($_POST['login']) && $_POST['login']!='' && isset($_POST['pass']) && $_POST['pass']!='')
{
$login = $_POST['login'];
$pass = $_POST['pass'];
// --------------------
if ($login == $AdminIdentifiant && $pass == $AdminMotDePasse)
{
// Si le login et le mot de passe sont corrects
// on met true dans une variable de session
$_SESSION["news_SESSION"] = true;
// --------------------
} else {
$_SESSION["news_SESSION"] = false;
$msgerreur = 'Identifiant ou mot de passe incorrect';
}
}
// ------------------------------
?>
// **************************************
// CONFIGURATION de la NEWS
include_once('./PHP-GESTION-NEWS-v3/fonctions/news_config.php');
// **************************************
// Accès autorisé si identifié
if (isset($_SESSION['news_SESSION']) && $_SESSION['news_SESSION']==true)
{
// Redirection vers la page d administration
header("location: ./PHP-GESTION-NEWS-v3/news_ADMIN/news_admin.php");
exit;
}
// ------------------------------------------------------
// sinon affichage du formulaire d'identification
?>
<!-- identification - connexion -->
<div class="login_box">
<center>
<form id="identification" method="post" action="./admin_alone.php">
<fieldset>
<LEGEND align=top>ADMINISTRATION DES ARTICLES</LEGEND>
<h3><img src="./PHP-GESTION-NEWS-v3/news_ADMIN/icones/verrouiller.png" alt="" /> Identifiez-vous :</h3>
<table>
<tr>
<td align="right"><label class="label15" for="idlogin" ">Identifiant : </label></td>
<td><input class="champobligatoire" id="idlogin" name="login" size="20" /></td>
</tr>
<br />
<tr>
<td align="right"><label class="label15" for="idpass" ">Mot de passe : </label></td>
<td><input class="champobligatoire" id="idpass" name="pass" type="password" size="20" /></td>
</tr>
<tr>
<td></td><td align="right"><button name="btsubmit" type="submit" title="Connexion"><img src="./PHP-GESTION-NEWS-v3/news_ADMIN/icones/arrow_next.png" alt="" /> Connexion</button></td>
</tr>
</table>
</fieldset>
</form>
</center>
</div>
<div class="footer_bg" align="center">
<div class="footer_txt">OUR-blog.net a Benjamin Prost Entreprises company, all rights reserved 2011.</div>
</div>
</div>
</body>
</html> |