Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.67 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5. include 'htmlhead.php';?>
  6. </head>
  7. <body id="top">
  8. <div class="wrapper">
  9. <div id="header-alt" class="w-sidebar"> <!-- header -->
  10. <div id="black-fill">
  11. <h1><a href="index.php">Blue Entertainment</a></h1>
  12. <ul id="main-nav" class="right ffmedium">
  13. <?php include 'menu.php';?>
  14. </ul>
  15. </div>
  16. </div> <!-- end header -->
  17.  
  18.  
  19. <?php
  20.  
  21. if (isset($_GET['logout'])) {
  22. unset($_SESSION['userid']);
  23. unset($_SESSION['username']);
  24. unset($_SESSION['password']);
  25. }
  26.  
  27.  
  28. if (isset($_POST['username']) && isset($_POST['password']) {
  29. //Lets check to see if their username is all correct and stuff
  30. $users = mysql_query("SELECT * FROM clients");
  31. $exists = false;
  32. while ($userrow = mysql_fetch_array($users)) {
  33. $jsondata = json_decode($userrow['data'], true);
  34. if ($_POST['username'] == $jsondata['username'] && $_POST['password'] == $jsondata['password']) {
  35. $_SESSION['userid'] = $userrow['id'];
  36. $_SESSION['username'] = $jsondata['username'];
  37. $_SESSION['password'] = $jsondata['password'];
  38. $exists = true;
  39. break; //Break the while loop because we found the user.
  40. }
  41. }
  42. if (!$exists) {
  43. echo "Username/Password Fail";
  44. }
  45. //$_SESSION["sessid"] = rand(); Your 'later' stuff
  46. //$_SESSION["valid_id"] = $obj->id;
  47. //$_SESSION["valid_time"] = time();
  48. }
  49.  
  50. if (isset($_SESSION["userid"])) { ?>
  51.  
  52. <div id="content" class="w-sidebar">
  53. <div class="one-fourth sidebar"> <!-- sidebar -->
  54. <h4 class="m-top-sb">Quick Links</h4>
  55. <ul class="sidelist">
  56. <li><a href="login.php" title="">Main Menu</a></li>
  57. <li><a href="login.php?act=logins" title="">Manage Logins</a></li>
  58. <li><a href="#" title="">Forgotten Password</a></li>
  59. </ul>
  60. </div> <!-- end sidebar -->
  61.  
  62. <div class="wide">
  63. <h2 class="heading ffthin">Welcome Bob,</h2>
  64. <p class="sub-head">You are now logged in. Preform a task below.</p>
  65.  
  66.  
  67.  
  68. <?php if ($_GET['act'] == "logins" ) {?>
  69.  
  70. <table summary="Table summary">
  71. <caption>
  72. Please make sure your logins are up to date and correct. If they do not work they will be marked dead and production will stop until we obtain new login info.
  73. </caption>
  74. <thead>
  75. <tr>
  76. <th width="1354">Service</th>
  77. <th width="452">Credentials</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <tr>
  82. <td><h3>Facebook Login</h3>
  83. <p>Please Enter your username and password for facebook</p></td>
  84. <td>
  85. <div>
  86. <div style="margin: 4px;"> Username:<input type="text" name="username" id="username"></div>
  87. <div style="margin: 4px;"> Password:<input type="text" name="username2" id="username2"></div>
  88. </div>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td><h3>Twitter Login</h3>
  93. Please enter your username and password for twitter</td>
  94. <td> <div>
  95. <div style="margin: 4px;"> Username:<input type="text" name="username" id="username"></div>
  96. <div style="margin: 4px;"> Password:<input type="text" name="username2" id="username2"></div>
  97. </div></td>
  98. </tr>
  99. <tr>
  100. <td><h3>Old hosting Provider</h3>
  101. Please Enter the name, username and password of your old host if you want us to pull content from your old site.</td>
  102. <td><div>
  103. <div style="margin: 4px;"> Username:
  104. <input type="text" name="username3" id="username3">
  105. </div>
  106. <div style="margin: 4px;"> Password:
  107. <input type="text" name="username3" id="username4">
  108. </div>
  109. <div style="margin: 4px;"> Host domain:
  110. <input type="text" name="username3" id="username4">
  111. </div>
  112. </div></td>
  113. </tr>
  114. <tr>
  115. <td><h3>Your old blog Login</h3>
  116. Did you have a old Blog? What is the login for it we may be able to redeem the posts. (in this industry we cant make any ganretees on this though)</td>
  117. <td><div>
  118. <div style="margin: 4px;"> Username:
  119. <input type="text" name="username4" id="username5">
  120. </div>
  121. <div style="margin: 4px;"> Password:
  122. <input type="text" name="username4" id="username6">
  123. </div>
  124. </div></td>
  125. </tr>
  126. <tr>
  127. <td><h3>Your youtube Login</h3>
  128. If you want your Homepage video to syndicate to yourtube we will have to have the login for this system.</td>
  129. <td><div>
  130. <div style="margin: 4px;"> Username:
  131. <input type="text" name="username5" id="username7">
  132. </div>
  133. <div style="margin: 4px;"> Password:
  134. <input type="text" name="username5" id="username8">
  135. </div>
  136. </div></td>
  137. </tr>
  138. </tbody>
  139. </table>
  140.  
  141.  
  142.  
  143. <?php } else if ($_GET['act'] == "contact" ) {?>
  144. <div> You are in the leads Section</div>
  145.  
  146. <?php } else { ?>
  147.  
  148. <div id="slogan" style="width:600px;"> <!-- Slideshow section -->
  149. <p class="ffthin">Pay for your website</p>
  150. <a class="btn left big btn-red ffmedium" href="?act=payment">Make a Payment</a>
  151.  
  152.  
  153. </div> <!-- end slogan section -->
  154.  
  155. <div id="slogan" style="width:600px;"> <!-- Slideshow section -->
  156. <p class="ffthin">Contact your Project Manager</p>
  157. <a class="btn left big btn-red ffmedium" href="?act=contact">Contact Jesse</a>
  158.  
  159. </div> <!-- end slogan section -->
  160.  
  161. <div id="slogan" style="width:600px;" ><!-- Slideshow section -->
  162. <p class="ffthin">Submit a ticket for Matainence</p>
  163. <a class="btn left big btn-red ffmedium" href="pricing.php">Create Ticket</a>
  164.  
  165. </div> <!-- end slogan section -->
  166.  
  167. <div id="slogan" style="width:600px;"> <!-- Slideshow section -->
  168. <p class="ffthin">Submit content for your site</p>
  169. <a class="btn left big btn-red ffmedium" href="pricing.php">Submit content</a>
  170.  
  171. </div> <!-- end slogan section -->
  172.  
  173. <div id="slogan" style="width:600px;"> <!-- Slideshow section -->
  174. <p class="ffthin">Manage Logins for the Dev Team</p>
  175. <a class="btn left big btn-red ffmedium" href="?act=logins">Update Login Info</a>
  176.  
  177. </div> <!-- end slogan section -->
  178.  
  179. <div id="slogan" style="width:600px;"> <!-- Slideshow section -->
  180. <p class="ffthin">View Your site In progress</p>
  181. <a class="btn left big btn-red ffmedium" href="pricing.php">Peek at site.</a>
  182.  
  183. </div> <!-- end slogan section -->
  184.  
  185.  
  186. <?php }} else { ?>
  187.  
  188.  
  189.  
  190. <div id="content" class="w-sidebar">
  191. <div class="one-fourth sidebar"> <!-- sidebar -->
  192. <h4 class="m-top-sb">Quick Links</h4>
  193. <ul class="sidelist">
  194.  
  195. <li><a href="#" title="">Forgotten Password</a></li>
  196. </ul>
  197. </div> <!-- end sidebar -->
  198.  
  199. <div class="wide">
  200. <h2 class="heading ffthin">Client Login</h2>
  201. <p class="sub-head">Please login here.</p>
  202. <div>
  203. <form action="?submit=true" method="post">
  204. <div>Username:
  205. <br />
  206. <input name="username" type="text" />
  207. </div>
  208. <div>password:
  209. <br />
  210. <input name="password" type="password" />
  211. </div>
  212. <div>
  213. <br />
  214. <input name="" type="submit" />
  215. </div>
  216. </form>
  217. </div>
  218. </div>
  219.  
  220. <?php } ?>
  221.  
  222.  
  223. <span class="clear"></span>
  224.  
  225. <a href="#top" title="go top" class="gotop"><span>top</span></a>
  226. </div> <!-- end wide -->
  227.  
  228. <span class="clear"></span>
  229. </div> <!-- end content -->
  230. </div> <!-- end wrapper -->
  231.  
  232. <span class="clear"></span>
  233.  
  234. <?php include 'footer.php';?>
  235. </body>
  236. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement