This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php.old
68 lines (64 loc) · 2.12 KB
/
index.php.old
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
<?php
$_SESSION['INDEX__']= 1;
if (isset($_POST["log"]))
{
$_SESSION["attempLog"] = 1;
}
require_once('./includes/constant.inc.php');
require_once('./includes/functions.inc.php');
require_once('./includes/request.sql.php');
//require_once('./includes/secure.php');
//En atende de reparation
$_SESSION["id_admin"] = 1;
$anti_path = return_anti_path();
if (isset($_POST["log"]))
{
$_POST["pass"] = md5($_POST["pass"]);
Secure_identification($_POST["log"], $_POST["pass"]);
}
?>
<html>
<head>
<title>~Arcanis | Plateforme de dev</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div id="content">
<? if(isset($_SESSION["id_admin"]) && $_SESSION["id_admin"] != 0)
{?>
<div class="onglets">
<div class="ongletcadre"><a href="./src/Marchand/admin_liste_marchand.src.php">Liste des marchand</a></div>
<div class="ongletcadre"><a href="./src/Inventaire/admin_liste_objet.src.php">Liste des Objets</a></div>
<div class="ongletcadre"><a href="./src/map/admin_world.src.php">Editeur de région</a></div>
</div>
<? } ?>
<div class="cadreaveconglet">
<img src="images/autres/under_construction.jpg" class="under">
<hr />
<? if(!isset($_SESSION["id_admin"]) || $_SESSION["id_admin"] == 0)
{?>
<h1>Vous devez vous identifiez</h1>
<form action="" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Login</td>
<td><input width="300" type="text" name="log" id="log"></td>
</tr>
<tr>
<td>Password</td>
<td><input width="300" type="password" name="pass" id="pass"></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" name="submit" value="Identification"></td>
</tr>
</table>
</form>
<hr />
<? } ?>
<div class="copy">
~Arcane-steam © 2007 - <? echo date("Y"); ?> © - PFE <a href="http://www.etna-alternance.net" title="ECOLE DES TECHNOLOGIE NUMERIQUE APLIQUER" />ETNA</a>
</div>
</div>
</div>
</body>
</html>