Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- ///////* ERROR REPORTING */////
- ini_set('display_errors', 'On');
- ini_set('html_errors', 0);
- date_default_timezone_set('America/Los_Angeles');
- $x = null;
- function addUser() {
- $username = isset($_GET['username']);
- $password = isset($_GET['password']);
- $passwordlength = strlen($password);
- if (isset($_GET["username"]) && !empty($_GET["username"])) {
- echo "Welcome : " . $username . "<br>";
- echo "Password: " . $password . "<br>";
- echo "Uncensored emailed to you..";
- }
- }
- /* Add User to linux MASTER system, soon..
- function adduser($username,$password,$server){
- shell_exec("adduser $username; echo $password | passwd $username --stdin");
- }
- function chpass($username,$password,$server){
- shell_exec("echo $password | passwd $username --stdin");
- }
- */
- function Online() {
- $ip = $_SERVER['REMOTE_ADDR'];
- echo "Your ip: $ip; <br> Current date: " . date("H");
- $nextWeek = time() + (7 * 24 * 60 * 60);
- // 7 days; 24 hours; 60 mins; 60 secs
- echo '<br>Now: '. date('Y-m-d') ."\n";
- echo '<br>Next Week: '. date('Y-m-d', $nextWeek) ."\n";
- }
- /* databas hantering.... */
- ?>
- <!DOCTYPE html>
- <head>
- <meta charset="utf-8">
- <title>nono</title>
- <style>
- .container {
- margin: auto;
- width: 50%;
- border: 3px solid green;
- padding: 10px;
- }
- .info {
- background-color: #4CAF50!important;
- width: 280px;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <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>
- <div class="info">
- <?php
- online();
- ?>
- </div>
- <form action="poo.php" method="get" >
- Account: <br>
- <input type="text" name="username"><br>
- Password: <br>
- <input type="text" name="password" type="password">
- <input type="submit">
- <a href="register.php"> Register</a>
- </form>
- <?php addUser();?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement