PV.Pat File Manager
Kernel Version: Linux webm010.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Domains: CANT READ named.confSites Server IP: 10.127.20.10 [Bing Search] [Zone-H]
| Path : /home/sptporgazz/www/ |
| Current File : /home/sptporgazz/www/login.php |
<?php
session_start();
include('_inc/connect.php');
if(!isset($_SESSION['conn'])) {
$_SESSION['conn']=0;
}
$tab_pages = array('index.php','historique.php','missions.php','representativites.php','conseil_administration.php','membres.php','chiffres_cles.php','contact.php','search.php');
if(isset($_GET['page'])&&in_array($_GET['page'],$tab_pages)) {
$the_page = $_GET['page'];
} else {
$the_page = "index.php";
}
if(isset($_POST['password'])) {
$identifiant = $_POST['identifiant'];
$password = $_POST['password'];
if(($identifiant!="")&&($password!="")) {
$sql_c = "SELECT * FROM user WHERE login='$identifiant' and password='$password'";
$res_c = mysql_query($sql_c) or die(mysql_error());
$nbre_c = mysql_num_rows($res_c);
if($nbre_c!=0) {
$_SESSION['conn']=1;
?>
<script type="text/javascript">location.href='connexion_ok.php';</script>
<?
} else {
?>
<script type="text/javascript">alert("Les identifiants transmis sont incorrects. Merci de les v\351rifier et de recommencer.");location.href='<?echo $the_page?>';</script>
<?
}
} else {
?>
<script type="text/javascript">alert("Les identifiants transmis sont incorrects. Merci de les v\351rifier et de recommencer.");location.href='<?echo $the_page?>';</script>
<?
}
}
?>
<html>
<head>
<link media="all" type="text/css" href="_css/style.css" rel="stylesheet">
</head>
<body>
<div class="corps_login">
<div class="haut_corps_login">
<div class="titre_login"><span>Connexion</span></div>
<div class="sous_titre_login"><p>Veuillez entrer votre identifiant et votre mot<br>de passe pour accéder a l'espace adhérants.</p></div>
</div>
<div class="separ_corps_login"></div>
<div class="bas_corps_login">
<form action="login.php" method="post">
<table cellpadding="10" cellspacing="10" width="360px" height="110px" style="margin-left:20px;">
<tr>
<!--<td width="130px"><span>Identifiant : </span></td>--><td><input type="hidden" name="identifiant" value="sptp" /></td>
</tr>
<tr>
<td width="130px"><span>Mot de passe : </span></td><td><input type="password" name="password" value="" /></td>
</tr>
<tr>
<td width="130px"></td><td style="text-align:right;"><input src="_images/entrer.jpg" type="image" name="submit" value="submit" /> </td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>