Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Developed by IlluSec [Schiz0ide]
- *
- */
- <?php
- $ip = $_SERVER['REMOTE_ADDR'];
- if ($ip !== gethostbyaddr($ip)) {
- Die("GEEN VPN TOEGESTAAN");
- }
- ?>
- <html>
- <form action="" method="post">
- <input type="text" placeholder="Username" name="user" /><br>
- <input type="password" name="pass" /><br>
- <input type="submit" name="login" value="Log nu in!" />
- </form>
- </html>
- <?
- function Clean($stat) {
- return mysql_real_escape_string(htmlentities($stat));
- }
- $username = Clean($stat);
- $password = md5(Clean($_POST['pass']));
- if(isset($username) && isset($password)) {
- define("HOST", 'jouw host hier');
- define("USER", 'jouw mysql_username');
- define("PASS", 'jouw mysql_password);
- define("DB", 'jouw db name');
- $con = mysql_connect(HOST, USER, PASS);
- mysql_select_db(DB, $con);
- $query = mysql_query("SELECT * FROM users where username = $username and password = $password");
- $result = mysql_fetch_assoc($query);
- if(!$result) {
- die("er is iets mis gegaan");
- }else{
- echo 'succesvol ingelogt';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement