Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>g4ldu's Admin</title>
  4. <style type="text/css">
  5. body{
  6. background-color: #1f1f1f;
  7. font-family: Courier;
  8. color: #FFFFFF;
  9. }
  10. #logo{
  11. font-family: Courier;
  12. color: #c0c0c0;
  13. font-size: 40px;
  14. text-align: center;
  15.  
  16. }
  17. #logo:link{
  18. text-decoration: none;
  19. color: #c0c0c0;guar
  20. }
  21. #logo:visited{
  22. text-decoration: none;
  23. color: #c0c0c0;
  24. }
  25. #menu:link{
  26. text-decoration: none;
  27. color: #FFFFFF;
  28. }
  29. #menu:visited{
  30. text-decoration: none;
  31. color: #9F9F9F;
  32. }
  33. #menu:hover{
  34. text-decoration: none;
  35. color: #FF0000;
  36. }
  37. #ul{
  38. margin: 0px;
  39. margin-left: -60px;
  40. margin-top: 50px;
  41. }
  42. #li{
  43. font-size: 15px;
  44. float: center;
  45. display: Inline;
  46. width: 100px;
  47. margin-left: 30px;
  48. }
  49. #pagex{
  50. background-color: #0d0d0d;
  51. margin-top: 60px;
  52. }
  53. #mystory{
  54. background-color: #0d0d0d;
  55. text-align: left;
  56. margin-top: 60px;
  57. color: #5f5f5f;
  58. font-size: 12px;
  59. text-align: top;
  60. border-color: #808080;
  61. border-style: dashed;
  62. border-collapse: collapse;
  63. }
  64. #title{
  65. width: auto;
  66. border-color: #FFFFFF;
  67. border-style: dotted;
  68. text-align: center;
  69. color: #FFFFFF;
  70. font-size: 20px;
  71. }
  72. #mpages{
  73. list-style-type: none;
  74. }
  75. #mpages :link{
  76. list-style-type: none;
  77. text-decoration: none;
  78. color: #5f5f5f;
  79. }
  80. #mpages :visited{
  81. list-style-type: none;
  82. text-decoration: none;
  83. color: #9f9f9f;
  84. }
  85. #mpages :hover{
  86. list-style-type: none;
  87. text-decoration: none;
  88. color: #FF0000;
  89. }
  90. .input {
  91. color: #8C0000;
  92. border: 1px dashed #808080;
  93. background: #0c0c0c;
  94. }
  95. .button {
  96. border: 1px solid #666666;
  97. background-color: #1f1f1f;
  98. color: #000000;
  99. }
  100. .button:hover {
  101. border: 1px solid #868686;
  102. background-color: #0f0f0f;
  103. color: #808080;
  104. }
  105. .label {
  106. color: #808080;
  107. display: block;
  108. width: 150px;
  109. float: left;
  110. margin: 2px 4px 6px 4px;
  111. text-align: right;
  112. }
  113. br { clear: left; }
  114. </style>
  115. </head>
  116.  
  117.  
  118. <?PHP
  119. error_reporting(0);
  120.  
  121. $op = $_GET['op'];
  122.  
  123. if($op == ""){
  124.  
  125. echo '<form method="post" action="">
  126. <fieldset>
  127. <legend>Login</legend>
  128. Username<br>
  129. <input type="text" name="username" class="input"><br>
  130. Password<br>
  131. <input type="password" name="password" class="input"><br><br>
  132. <input type="submit" value="Login" class="button">
  133. </form></html>';
  134. $user = "g4ldu";
  135. $pass = "scuolaZOO";
  136.  
  137. $username = $_POST["username"];
  138. $password = $_POST["password"];
  139.  
  140. if ($username == $user && $password == $pass)
  141. {
  142. setcookie("login",$username.$password, time() + 9999999);
  143. print '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=?op=1">';
  144. }
  145. else
  146. {
  147. print "Accesso negato";
  148. }
  149. }
  150.  
  151. if($op == "1"){
  152.  
  153. if ($_COOKIE["login"] == "g4lduscuolaZOO" )
  154. {
  155. print '<html><body>
  156. <!-- head -->
  157. <div align="center">
  158. <!-- logo -->
  159. <div><a id="logo" href="index.html"><b>g4ldu space</b></a></div>
  160. <!-- menu -->
  161. <div style=" margin-top: -20px; margin-left:-5px;">
  162. <ul id="ul">
  163. <li id="li"><a id="menu" href="index.php">Home</a></li>
  164. <li id="li">|</li>
  165. <li id="li"><a id="menu" href="/gallery/index.html">Gallery</a></li>
  166. <li id="li">|</li>
  167. <li id="li"><a id="menu" href="/blog/altro/generale/generale_articles.php">Blog</a></li>
  168. </ul>
  169. </div>
  170. </div>
  171. <!-- admin cp -->
  172. <table border="1" id="mystory" align="center">
  173. <tr><td id="title">Hi g4ldu!</td></tr>
  174. <td>
  175. <div style="margin-top: 0px; width: 500px;">
  176. <h1>Articoli</h1>
  177. <ul>
  178. <li id="mpages"><a href="/admin/insert_post.php">Aggiungi Articolo</a></li>
  179. </ul>
  180. </div>
  181. </td>
  182. </tr>
  183. </table>
  184. <br />
  185. </body>
  186. </html>';
  187. }
  188. }
  189.  
  190.  
  191. ?>
  192. <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>
  193. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement