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
| <?
if(@$_POST["pass"]=="katescakes") {
setcookie("passe2","ok");
Header("Location: ".$_SERVER["PHP_SELF"]);
} elseif(@$_GET["pass"]=="no") {
setcookie("passe2");
Header("Location: ".$_SERVER["PHP_SELF"]);
}
$isOK = (@$_COOKIE["passe2"]!="");
if($isOK) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>add document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="format.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header2">
</div>
<ul id="menu">
<li ><a href="home.html" type=>Home</a></li>
<li style="font-size:0.9em"><a href="Head-Resources.html">Human Resources</a></li>
<li><a href="index1.html"> Health & Safety </a></li>
<li><a href="index1.html">Technical QA</a></li>
<li><a href="index1.html">KPIS</a></li>
<li><a href="index1.html">News</a></li>
<li><a href="Contacts.php">Contacts</a></li>
</ul>
<div id="background">
<br />
<h2 style="margin:20px ;font-weight:high; font-size:1em">Add a new document on the Intranet</h2>
<div>
</select>
</div>
<p style="margin:20px; font-size:0.7em" >select a page</p>
<form method="post" action="upload.php">
<select name="choice" >
<option value="Alcohol">Alcohol</option>
<option value="Others">Others</option>
</select>
</form>
<p style="margin:20px; font-size:0.7em">
<form method="post" enctype="multipart/form-data" action="upload.php" style="margin:20px">
<input type="file" name="fichier" size="30">
<input type="submit" name="upload" value="Upload">
</form>
<p style= "margin:20px; font-size:0.8em">
<a href="filemanager.php" class="type1">Go to the File Manager </a>
<hr />
<p style= "margin:20px; font-size:0.7em">
Allowed people Only !!
</p>
<center>
<A href="?pass=no" class="type1">Déconnecter</A> -
</center><hr>
</div>
</div>
<div id="cake">
</div>
</body>
</html>
<?
} else { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>add document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="format.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header2">
</div>
<ul id="menu">
<li ><a href="home.html" type=>Home</a></li>
<li style="font-size:0.9em"><a href="Head-Resources.html">Human Resources</a></li>
<li><a href="index1.html"> Health & Safety </a></li>
<li><a href="index1.html">Technical</a></li>
<li><a href="index1.html">KPIs</a></li>
<li><a href="index1.html">Company News</a></li>
<li><a href="Contacts.php">Contacts</a></li>
</ul>
<div id="background">
<br />
<form method="post">
<table><tr>
<td><input style="margin:10px" type="password" name="pass"></td>
<td><input style="margin:10px" type="Submit" value="Entrer"></td>
</tr></table>
</form>
</div>
</div>
<div id="cake">
</div>
</body>
</html>
<? } ?> |