Advertisement
Guest User

Untitled

a guest
Sep 13th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. <?PHP
  2. ///////* ERROR REPORTING */////
  3. ini_set('display_errors', 'On');
  4. ini_set('html_errors', 0);
  5.  
  6. date_default_timezone_set('America/Los_Angeles');
  7. $x = null;
  8. function addUser() {
  9. $username = isset($_GET['username']);
  10. $password = isset($_GET['password']);
  11. $passwordlength = strlen($password);
  12.  
  13. if (isset($_GET["username"]) && !empty($_GET["username"])) {
  14. echo "Welcome : " . $username . "<br>";
  15. echo "Password: " . $password . "<br>";
  16. echo "Uncensored emailed to you..";
  17. }
  18. }
  19. /* Add User to linux MASTER system, soon..
  20. function adduser($username,$password,$server){
  21. shell_exec("adduser $username; echo $password | passwd $username --stdin");
  22. }
  23.  
  24. function chpass($username,$password,$server){
  25. shell_exec("echo $password | passwd $username --stdin");
  26. }
  27. */
  28.  
  29. function Online() {
  30. $ip = $_SERVER['REMOTE_ADDR'];
  31. echo "Your ip: $ip; <br> Current date: " . date("H");
  32. $nextWeek = time() + (7 * 24 * 60 * 60);
  33. // 7 days; 24 hours; 60 mins; 60 secs
  34. echo '<br>Now: '. date('Y-m-d') ."\n";
  35. echo '<br>Next Week: '. date('Y-m-d', $nextWeek) ."\n";
  36. }
  37.  
  38. /* databas hantering.... */
  39.  
  40. ?>
  41. <!DOCTYPE html>
  42. <head>
  43. <meta charset="utf-8">
  44. <title>nono</title>
  45. <style>
  46. .container {
  47. margin: auto;
  48. width: 50%;
  49. border: 3px solid green;
  50. padding: 10px;
  51.  
  52. }
  53. .info {
  54. background-color: #4CAF50!important;
  55. width: 280px;
  56.  
  57. }
  58. </style>
  59. </head>
  60. <body>
  61. <div class="container">
  62. <p> Welcome to the PHP inlogging för extremt behövande. <img src="https://s-media-cache-ak0.pinimg.com/736x/51/b7/c0/51b7c058f9eabec6384bc8b270e4c030.jpg" width=32" height="32"/> <br></p>
  63. <div class="info">
  64. <?php
  65. online();
  66. ?>
  67. </div>
  68. <form action="poo.php" method="get" >
  69. Account: <br>
  70. <input type="text" name="username"><br>
  71. Password: <br>
  72. <input type="text" name="password" type="password">
  73. <input type="submit">
  74. <a href="register.php"> Register</a>
  75. </form>
  76. <?php addUser();?>
  77. </div>
  78. </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement