| Apache Linux webd001.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 uid=2234(oyaide) gid=100(users) groups=100(users) server ip : 213.186.33.18 | your ip : 216.73.216.109 safemode OFF > / home / oyaide / www / colab.be / admin / |
| Filename | /home/oyaide/www/colab.be/admin/index.php |
| Size | 1.98 kb |
| Permission | rw----r-- |
| Owner | oyaide : users |
| Create time | 28-Apr-2013 15:12 |
| Last modified | 01-Apr-2012 23:34 |
| Last accessed | 01-Apr-2012 23:34 |
| Actions | edit | rename | delete | download (gzip) |
| View | text | code | image |
<?
session_start();
include('globals/inc.mysql.php');
include('globals/inc_functions.php');
if(isset($_POST['Submit'])){
//Check user
if (verif_user($_POST['username'],md5($_POST['password'])) > 0){
//Go to admin home + Sessions
$_SESSION['tac_id'] = get_id($_POST['username']);
$_SESSION['tac_username'] = $_POST['username'];
$_SESSION['tac_pwd'] = md5($_POST['password']);
//redirection javascript
header("Location: edit.php");
}
else {
//Error message
$err_message = "Invalid username or password";
}
}
if ((isset($_GET['logout']))&&($_GET['logout'] == "true")){
session_destroy();
header("Location: index.php");
}
if (isset($_SESSION['tac_username'])){ header("Location: edit.php"); }
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Colab.be - Administration</title>
<link href="../css/colab2/default.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-image:none; background-color:#231f20;">
<div style="text-align:center; ">
<p><img src="../img/images/colab_logo.jpg" /></p>
<p> </p>
<form id="form1" name="form1" method="post" action=""><div style="width:200px; border:1px solid #FFF; color:#fff; background-color:#333; text-align:left; padding:15px; margin:0 auto;">
<p><img src="../img/admin/user_gray.png" alt="Identifiant" width="16" height="16" align="absmiddle" /> Identifiant</p>
<input name="username" type="text" id="username" style="width:190px;" />
<p><img src="../img/admin/key.png" alt="Mot de passe" width="16" height="16" align="absmiddle" /> Mot de passe :</p>
<p>
<input type="password" name="password" style="width:190px;" />
</p>
<p>
<input type="submit" name="Submit" style="width:200px;" value="Connexion" />
</p>
</div></form>
</div>
</body>
</html>
session_start();
include('globals/inc.mysql.php');
include('globals/inc_functions.php');
if(isset($_POST['Submit'])){
//Check user
if (verif_user($_POST['username'],md5($_POST['password'])) > 0){
//Go to admin home + Sessions
$_SESSION['tac_id'] = get_id($_POST['username']);
$_SESSION['tac_username'] = $_POST['username'];
$_SESSION['tac_pwd'] = md5($_POST['password']);
//redirection javascript
header("Location: edit.php");
}
else {
//Error message
$err_message = "Invalid username or password";
}
}
if ((isset($_GET['logout']))&&($_GET['logout'] == "true")){
session_destroy();
header("Location: index.php");
}
if (isset($_SESSION['tac_username'])){ header("Location: edit.php"); }
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Colab.be - Administration</title>
<link href="../css/colab2/default.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-image:none; background-color:#231f20;">
<div style="text-align:center; ">
<p><img src="../img/images/colab_logo.jpg" /></p>
<p> </p>
<form id="form1" name="form1" method="post" action=""><div style="width:200px; border:1px solid #FFF; color:#fff; background-color:#333; text-align:left; padding:15px; margin:0 auto;">
<p><img src="../img/admin/user_gray.png" alt="Identifiant" width="16" height="16" align="absmiddle" /> Identifiant</p>
<input name="username" type="text" id="username" style="width:190px;" />
<p><img src="../img/admin/key.png" alt="Mot de passe" width="16" height="16" align="absmiddle" /> Mot de passe :</p>
<p>
<input type="password" name="password" style="width:190px;" />
</p>
<p>
<input type="submit" name="Submit" style="width:200px;" value="Connexion" />
</p>
</div></form>
</div>
</body>
</html>