Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>g4ldu's Admin</title>
- <style type="text/css">
- body{
- background-color: #1f1f1f;
- font-family: Courier;
- color: #FFFFFF;
- }
- #logo{
- font-family: Courier;
- color: #c0c0c0;
- font-size: 40px;
- text-align: center;
- }
- #logo:link{
- text-decoration: none;
- color: #c0c0c0;guar
- }
- #logo:visited{
- text-decoration: none;
- color: #c0c0c0;
- }
- #menu:link{
- text-decoration: none;
- color: #FFFFFF;
- }
- #menu:visited{
- text-decoration: none;
- color: #9F9F9F;
- }
- #menu:hover{
- text-decoration: none;
- color: #FF0000;
- }
- #ul{
- margin: 0px;
- margin-left: -60px;
- margin-top: 50px;
- }
- #li{
- font-size: 15px;
- float: center;
- display: Inline;
- width: 100px;
- margin-left: 30px;
- }
- #pagex{
- background-color: #0d0d0d;
- margin-top: 60px;
- }
- #mystory{
- background-color: #0d0d0d;
- text-align: left;
- margin-top: 60px;
- color: #5f5f5f;
- font-size: 12px;
- text-align: top;
- border-color: #808080;
- border-style: dashed;
- border-collapse: collapse;
- }
- #title{
- width: auto;
- border-color: #FFFFFF;
- border-style: dotted;
- text-align: center;
- color: #FFFFFF;
- font-size: 20px;
- }
- #mpages{
- list-style-type: none;
- }
- #mpages :link{
- list-style-type: none;
- text-decoration: none;
- color: #5f5f5f;
- }
- #mpages :visited{
- list-style-type: none;
- text-decoration: none;
- color: #9f9f9f;
- }
- #mpages :hover{
- list-style-type: none;
- text-decoration: none;
- color: #FF0000;
- }
- .input {
- color: #8C0000;
- border: 1px dashed #808080;
- background: #0c0c0c;
- }
- .button {
- border: 1px solid #666666;
- background-color: #1f1f1f;
- color: #000000;
- }
- .button:hover {
- border: 1px solid #868686;
- background-color: #0f0f0f;
- color: #808080;
- }
- .label {
- color: #808080;
- display: block;
- width: 150px;
- float: left;
- margin: 2px 4px 6px 4px;
- text-align: right;
- }
- br { clear: left; }
- </style>
- </head>
- <?PHP
- error_reporting(0);
- $op = $_GET['op'];
- if($op == ""){
- echo '<form method="post" action="">
- <fieldset>
- <legend>Login</legend>
- Username<br>
- <input type="text" name="username" class="input"><br>
- Password<br>
- <input type="password" name="password" class="input"><br><br>
- <input type="submit" value="Login" class="button">
- </form></html>';
- $user = "g4ldu";
- $pass = "scuolaZOO";
- $username = $_POST["username"];
- $password = $_POST["password"];
- if ($username == $user && $password == $pass)
- {
- setcookie("login",$username.$password, time() + 9999999);
- print '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=?op=1">';
- }
- else
- {
- print "Accesso negato";
- }
- }
- if($op == "1"){
- if ($_COOKIE["login"] == "g4lduscuolaZOO" )
- {
- print '<html><body>
- <!-- head -->
- <div align="center">
- <!-- logo -->
- <div><a id="logo" href="index.html"><b>g4ldu space</b></a></div>
- <!-- menu -->
- <div style=" margin-top: -20px; margin-left:-5px;">
- <ul id="ul">
- <li id="li"><a id="menu" href="index.php">Home</a></li>
- <li id="li">|</li>
- <li id="li"><a id="menu" href="/gallery/index.html">Gallery</a></li>
- <li id="li">|</li>
- <li id="li"><a id="menu" href="/blog/altro/generale/generale_articles.php">Blog</a></li>
- </ul>
- </div>
- </div>
- <!-- admin cp -->
- <table border="1" id="mystory" align="center">
- <tr><td id="title">Hi g4ldu!</td></tr>
- <td>
- <div style="margin-top: 0px; width: 500px;">
- <h1>Articoli</h1>
- <ul>
- <li id="mpages"><a href="/admin/insert_post.php">Aggiungi Articolo</a></li>
- </ul>
- </div>
- </td>
- </tr>
- </table>
- <br />
- </body>
- </html>';
- }
- }
- ?>
- <div style="background-color: #5f5f5f;" align="center"><h1 width="100px"><font size="1" color="#2F2F2F" align="center">Copyleft ? 2011 g4ldu | PHP, HTML/CSS & Grafics create by g4ldu</font>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement