Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <? include 'included2.php';
- error_reporting(0);
- $adress = $_SERVER['REMOTE_ADDR'];
- $timenow = time();
- $allowedref = "/[^0-9]/i";
- $refraw = $_GET['ref'];
- $locraw= mysqli_real_escape_string($connection,$_POST['loc']);
- $ref = preg_replace($allowedref,"",$refraw);
- $loc = preg_replace($allowedref,"",$locraw);
- if($loc == 1){ $loc = rand(2,4); if($loc == 2){ $location = 'Las Vegas'; }elseif($loc == 3){ $location = 'Los Angeles';}elseif($loc == 4){ $location = 'New York';}}
- elseif($loc == 2){ $location = 'Las Vegas'; }
- elseif($loc == 3){ $location = 'Los Angeles'; }
- elseif($loc == 4){ $location = 'New York'; }
- else{ $location = 'Las Vegas'; }
- ?>
- <html>
- <head><title>:: State Gangsters</title><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><link rel="shortcut icon" href="/more/icon.png" type="image/x-icon" />
- <style type="text/css">
- body{ background-color: black; }
- .textbox{background-color: #333333; border-bottom: 1px solid #626262; border-left: 1px solid #040404; border-right: 1px solid #626262; border-top: 1px solid #040404; color: silver; font-family: verdana; font-size: 10px; font-weight: bold;}
- .textboxs{background-color: #414141; border-bottom: 1px solid #626262; border-left: 1px solid #040404; border-right: 1px solid #626262; border-top: 1px solid #040404; color: white; font-family: verdana; font-size: 10px; }
- .mainmenutable{border-style: solid; border-bottom: 1px solid #626262; border-left: 1px solid #040404; border-right: 1px solid #626262; border-top: 1px solid #040404;}
- a {color: white; font-weight:bold;text-decoration: none;}
- a:hover {color: white; text-decoration: underline;}
- #buttonpos{ position: absolute; position: fixed; position: center; bottom: 10px; width:100%; align:center; }
- </style>
- <meta name="description" content="Like Mafia Games? State Gangsters, you can kill, gamble, complete mission tasks, own casinos, crews, chat and much much more!" />
- </head>
- <?php
- $allowedtwo = "/[^a-z0-9\\040\\.\\[\\]\\=\\<\\>\\£\\$\\@\\&\\{\\}\\%\\+\\|\\(\\)\\?\\~\\:\\/\\-\\;\\_\\\\]/i";
- $playerbrowserbefore = $_SERVER['HTTP_USER_AGENT'];
- $newpasse = $_POST['password']."5432543___32432";
- $userpass = md5($newpasse);
- $playerbrowser = preg_replace($allowedtwo,"",$playerbrowserbefore);
- $time=time();
- mysqli_query($connection,"DELETE FROM registerlog WHERE error < '$time'");
- $usor=mysqli_real_escape_string($connection,$_POST['desireduser']);
- $allowed = "/[^a-z0-9]/i";
- $username = preg_replace($allowed,"",$usor);
- $check = mysqli_query($connection,"SELECT username FROM users WHERE username = '$username'");
- $check2 = mysqli_num_rows($check);
- $dsjiada = mysqli_query($connection,"SELECT username FROM suggestions WHERE username = '$username'");
- $fdsfs = mysqli_num_rows($dsjiada);
- $checkthree = mysqli_query($connection,"SELECT * FROM registerlog WHERE ip = '$adress'");
- $checkfour = mysqli_num_rows($checkthree);
- $charlimit = 50;
- if (isset($_POST['desireduser'])){
- $gethdo = mysqli_query($connection,"SELECT * FROM users WHERE hdo > '0' AND status = 'Alive' LIMIT 1");
- $gethisname = mysqli_fetch_array($gethdo);
- $doitnamehehe = $gethisname['username'];
- if (!$_POST['desireduser']) { $onload=" onload=document.freg.desireduser.select()";
- echo('<div align=center><font face="verdana" size="1" color="red"><b>A username was not entered.</b></font></div>');
- }
- elseif (!$_POST['password']) { $onload=" onload=document.freg.password.select()";
- echo('<div align=center><font face="verdana" size="1" color="red"><b>A password was not chosen.</b></font></div>');
- }
- elseif (!preg_match("/^[a-z0-9]{1,15}$/i", $_POST["desireduser"])) { $onload=" onload=document.freg.desireduser.select()";
- echo('<div align=center><font face="verdana" size="1" color="red"><b>Usernames can only contain 0-9, A-Z characters, and be a maximum of 15 characters.</b></font></div>');
- }
- elseif (strlen($_POST['password']) > '50'){ $onload=" onload=document.freg.password.select()";
- echo('<div align=center><font face="verdana" size="1" color="red"><b>Passwords can only be a maximum of 50 characters.</b></font></div>');
- }
- elseif ($_POST['password'] == $_POST['desireduser']) { $onload=" onload=document.freg.desireduser.select()";
- echo('<div align=center><font face="verdana" size="1" color="red"><b>Your password can not be the same as your username.</b></font></div>');
- }
- elseif (($check2 != 0)&&($fdsfs != 0)) { $onload=" onload=document.freg.desireduser.select()";
- echo('<div align=center><font face="verdana" size="1" color="red"><b>The username you entered is already in use.</b></font></div>');
- }
- elseif ($checkfour != 0) { $onload="lol";
- echo('<div align=center><br><font face="verdana" size="1" color="red"><b>You have recently registered an account on this IP, you must wait a while before creating a new one.</b></font></div>');
- }
- else{ $onload="lol";
- mysqli_query($connection,"UPDATE statis SET allof = (allof+1)");
- echo('<div align=center><font face="verdana" size="1" color="white"><b>Successful!</font><font face="verdana" size="1" color="khaki"> '.$_POST['desireduser'].'</font> <font face="verdana" size="1" color="white">can now login <a href="/index.php?n='.$_POST['desireduser'].'"><u><font color=white size=1>here...</u></font></a></b></font></div>');
- $error= $time + 1800;
- $rawinsertlog = "INSERT INTO registerlog (ip,error)
- VALUES ('$adress','$error')";
- $insertlog = mysqli_query($connection,$rawinsertlog);
- $alphanum = "ABCDEFGHIJKLMNPQRSTUVWXYZ123456789";
- $randver = substr(str_shuffle($alphanum), 0, 5);
- mysqli_query($connection,"DELETE FROM users WHERE username = '$usor'");
- $createcrewraw = mysqli_real_escape_string($connection,$_POST['useremail']);
- $newemail = htmlentities($createcrewraw, ENT_QUOTES);
- $newtime = time();
- $ctimer = time()+(60*60*12);
- mysqli_query($connection,"INSERT INTO `protection` (username,time) VALUES ('$username','$newtime')");
- $insert = "INSERT INTO `users` (username, password, email, location) VALUES ('$username', '$userpass', '$newemail', '$location')";
- $add_member = mysqli_query($connection,$insert);
- mysqli_query($connection,"INSERT INTO `missiontasks` (username) VALUES ('$username')");
- if($_GET['ref']){ mysqli_query($connection,"INSERT INTO `referral` (username,referred) VALUES ('$refraw', '$username')"); }
- $inserta = "INSERT INTO datesjoined (username,ip,browser)
- VALUES ('$username','$adress','$playerbrowser')";
- $addamember = mysqli_query($connection,$inserta);
- $uname = mysqli_real_escape_string($connection,$_POST['desireduser']);
- $ysid = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM users WHERE username = '$usor'"));
- $toid = $ysid['ID'];
- $sendinfo = "\[br\]\[center\]Welcome to State Gangsters!\[br\]If you click Game Network, then click on FAQ on your leftmenu it will give you all basic information on the game.\[br\]You are currently under 48 hours protection from being killed.\[\/center\]\[br\]\[br\]\[b\]\[color=khaki\]Tips:\[\/color\]\[\/b\] Make money fast by doing \[b\]\[color=khaki\]Crimes\[\/color\]\[\/b\], \[b\]\[color=khaki\]City Crime\[\/color\]\[\/b\] and \[b\]\[color=khaki\]Property Investment\[\/color\]\[\/b\]\[br\]\[br\]If you are not sure what to do or how to do something, you can ask a question on the \[b\]\[color=yellow\]Get Help\[\/color\]\[\/b\] page and wait for a staff member to answer :)\[br\] NOTE: You can block casinos by going to Edit Profile and clicking Casino Settings and then click Block.";
- mysqli_query($connection,"INSERT INTO messages(sentto,sentfrom,new,sentip,info)
- VALUES ('$username','State Gangsters','1','$adress','$sendinfo')");
- }}
- ?></center>
- <body style="background-image: url('http://i52.tinypic.com/16bc8it.jpg');background-repeat: no-repeat; background-position: center center;">
- <div style="display:none">state gangsters is a free web based Massive Multiplayer Online Mafia Game. Chat, gamble, hustle and kill other users.</div>
- <table><tr><td height="230"></td></tr></table>
- <table align=center><tr><td height="300">
- <?if(!$onload){ $onload=" onload=document.freg.desireduser.select()";}?>
- <table cellpadding="0" cellspacing="2" class="mainmenutable" align=center bgcolor="#222222">
- <? if($_GET['ref']){ $addthis = "?ref=$refraw"; }else{ $addthis = ""; } ?>
- <tr><td height="15" bgcolor="#282828" colspan="2"><center><font size="1" face="verdana" color="white">State Gangsters</font></center></td></tr>
- <form action="register.php<?echo$addthis?>" method="post">
- <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=2><font color="white" face="verdana" size="1"> Username:</font></label></td><td height="8" bgcolor="#282828"><input type="text" name="desireduser" id="1" class="textbox"></td></tr>
- <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=3><font color="white" face="verdana" size="1"> Password:</font></td><td height="8" bgcolor="#282828"><input type="text" name="password" id=2 class="textbox"></label></td></tr>
- <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=3><font color="white" face="verdana" size="1"> Email (optional):</font></td><td height="8" bgcolor="#282828"><input type="text" name="useremail" id=3 class="textbox"></label></td></tr>
- <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=3><font color="white" face="verdana" size="1"> City:</font></td><td height="8" bgcolor="#282828"><SELECT NAME="loc" class="textbox" style="width:100%;">
- <OPTION value=1>Random</OPTION>
- <OPTION value=2>Las Vegas</OPTION>
- <OPTION value=3>Los Angeles</OPTION>
- <OPTION value=4>New York</OPTION>
- </SELECT>
- </label></td></tr>
- <tr><td height="8" bgcolor="#161616" colspan="2"><center><input type="submit" name="login" class="textboxs" onClick=this.value='Processing...' value="Register"></center></td></tr>
- </form>
- </table></td></tr></table>
- <div id=buttonpos><table width=100% align=center>
- <table width=70% align=center><tr><td valign=top width=20%>
- <table cellpadding="4" cellspacing="0" style="border: 1px SOLID #444444;border-top-left-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-right-radius: 5px; margin-left: 25px; margin-right: 25px;" width=100% bgcolor=#111111>
- <tr><td align=center><a href="index.php"><font face=verdana size=1 style="font-weight:normal;"><br>Login<br><br></a></td></tr>
- </table><table><tr><td height=-1></td></tr></table></td>
- <td valign=top width=20%>
- <table cellpadding="4" cellspacing="0" style="border: 1px SOLID #444444;border-top-left-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-right-radius: 5px; margin-left: 25px; margin-right: 25px;" width=100% bgcolor=#222222>
- <tr><td align=center><a href="register.php" onclick="register();return false;" href=#><font face=verdana size=1 style="font-weight:normal;"><br>Register<br><br></a></td></tr>
- </table></td>
- <td valign=top width=20%>
- <table cellpadding="4" cellspacing="0" style="border: 1px SOLID #444444;border-top-left-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-right-radius: 5px; margin-left: 25px; margin-right: 25px;" width=100% bgcolor=#111111>
- <tr><td align=center><a href=lostpass.php href=#><font face=verdana size=1 style="font-weight:normal;"><br>Lost Password<br><br></a></td></tr>
- </table></td>
- <td valign=top width=20%>
- <table cellpadding="4" cellspacing="0" style="border: 1px SOLID #444444;border-top-left-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-right-radius: 5px; margin-left: 25px; margin-right: 25px;" width=100% bgcolor=#111111>
- <tr><td align=center><a href=screenshots.php?screenshot=1 href=#><font face=verdana size=1 style="font-weight:normal;"><br>Screen Shots<br><br></a></td></tr>
- </table></td></tr></table></table></div>
- </body>
- <head><META HTTP-EQUIV="Pragma" CONTENT="no-cache"></head></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement