Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('database.php');
- require('auth.php');
- require('smartproxy.php');
- $email = $_SESSION['email'];
- $sql = "SELECT * FROM users WHERE email='$email'";
- $result = mysqli_query($connection,$sql);
- $row = mysqli_fetch_assoc($result);
- if($row['role'] != 'admin')
- {
- header('Location: dashboard.php');
- }
- if(isset($_POST['username']) && isset($_POST['password']) && isset($_POST['traffic_limit']))
- {
- $username = $_POST['username'];
- $password = $_POST['password'];
- $traffic_limit = $_POST['traffic_limit'];
- $data = CreateSubUser($username,$password,$traffic_limit);
- print_r($data);
- }
- ?>
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>Cop-A-Lot Proxies</title>
- <meta charset="UTF-8"/>
- <meta name="viewport" content="width=device-width; initial-scale=1.0;">
- <link rel="stylesheet" type="text/css" href="css/main.css"/>
- <link rel="stylesheet" type="text/css" href="css/panel.css"/>
- <link rel="shortcut icon" type="image/png" href="images/Icon.png"/>
- </head>
- <body>
- <div class="container">
- <div class="form-container">
- <form action="panel.php" method="POST">
- <input type="text" name="username" class="form-input" placeholder="New Username..." required/>
- <input type="password" name="password" class="form-input" placeholder="New Password..." required/>
- <input type="number" name="traffic_limit" class="form-input" min="0" placeholder="Traffic Limit..." required/>
- <input type="submit" class="btn btn-white" value="Create"/>
- </form>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement