Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once("/ssh/function/helper.php");
- include_once("/ssh/function/connection.php");
- $username = $_POST['username'];
- $password = $_POST['password'];
- $server = "INDONESIA";
- $status = "mati";
- $dataForm = http_build_query($_POST);
- $query = mysqli_query($connection, "SELECT * FROM user WHERE username='$username'");
- if (empty($username) || empty($password)) {
- header("location: /ssh/index.php?page=main¬if=require&$data");
- }elseif (mysqli_num_rows($query) == 1) {
- header("location: /ssh/index.php?page=main¬if=username&data");
- }else{
- mysqli_query($connection, "INSERT INTO user (username, password, server, status)
- VALUES ('$username', '$password', '$server', '$status')");
- header("location: /ssh/index.php?page=konfirm");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement