Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.76 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <? include 'included2.php';
  3. error_reporting(0);
  4. $adress = $_SERVER['REMOTE_ADDR'];
  5.  
  6. $timenow = time();
  7. $allowedref = "/[^0-9]/i";
  8. $refraw = $_GET['ref'];
  9. $locraw= mysqli_real_escape_string($connection,$_POST['loc']);
  10. $ref = preg_replace($allowedref,"",$refraw);
  11. $loc = preg_replace($allowedref,"",$locraw);
  12. 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';}}
  13. elseif($loc == 2){ $location = 'Las Vegas'; }
  14. elseif($loc == 3){ $location = 'Los Angeles'; }
  15. elseif($loc == 4){ $location = 'New York'; }
  16. else{ $location = 'Las Vegas'; }
  17. ?>
  18.  
  19. <html>
  20. <head><title>:: State Gangsters</title><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><link rel="shortcut icon" href="/more/icon.png" type="image/x-icon" />
  21. <style type="text/css">
  22. body{ background-color: black; }
  23. .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;}
  24. .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; }
  25. .mainmenutable{border-style: solid; border-bottom: 1px solid #626262; border-left: 1px solid #040404; border-right: 1px solid #626262; border-top: 1px solid #040404;}
  26. a {color: white; font-weight:bold;text-decoration: none;}
  27. a:hover {color: white; text-decoration: underline;}
  28. #buttonpos{ position: absolute; position: fixed; position: center; bottom: 10px; width:100%; align:center; }
  29. </style>
  30. <meta name="description" content="Like Mafia Games? State Gangsters, you can kill, gamble, complete mission tasks, own casinos, crews, chat and much much more!" />
  31. </head>
  32. <?php
  33. $allowedtwo = "/[^a-z0-9\\040\\.\\[\\]\\=\\<\\>\\&#163;\\$\\@\\&\\{\\}\\%\\+\\|\\(\\)\\?\\~\\:\\/\\-\\;\\_\\\\]/i";
  34. $playerbrowserbefore = $_SERVER['HTTP_USER_AGENT'];
  35. $newpasse = $_POST['password']."5432543___32432";
  36. $userpass = md5($newpasse);
  37. $playerbrowser = preg_replace($allowedtwo,"",$playerbrowserbefore);
  38.  
  39. $time=time();
  40. mysqli_query($connection,"DELETE FROM registerlog WHERE error < '$time'");
  41.  
  42. $usor=mysqli_real_escape_string($connection,$_POST['desireduser']);
  43.  
  44. $allowed = "/[^a-z0-9]/i";
  45. $username = preg_replace($allowed,"",$usor);
  46.  
  47. $check = mysqli_query($connection,"SELECT username FROM users WHERE username = '$username'");
  48. $check2 = mysqli_num_rows($check);
  49.  
  50. $dsjiada = mysqli_query($connection,"SELECT username FROM suggestions WHERE username = '$username'");
  51. $fdsfs = mysqli_num_rows($dsjiada);
  52.  
  53.  
  54.  
  55. $checkthree = mysqli_query($connection,"SELECT * FROM registerlog WHERE ip = '$adress'");
  56. $checkfour = mysqli_num_rows($checkthree);
  57.  
  58. $charlimit = 50;
  59.  
  60.  
  61. if (isset($_POST['desireduser'])){
  62.  
  63. $gethdo = mysqli_query($connection,"SELECT * FROM users WHERE hdo > '0' AND status = 'Alive' LIMIT 1");
  64. $gethisname = mysqli_fetch_array($gethdo);
  65. $doitnamehehe = $gethisname['username'];
  66.  
  67.  
  68. if (!$_POST['desireduser']) { $onload=" onload=document.freg.desireduser.select()";
  69. echo('<div align=center><font face="verdana" size="1" color="red"><b>A username was not entered.</b></font></div>');
  70. }
  71. elseif (!$_POST['password']) { $onload=" onload=document.freg.password.select()";
  72. echo('<div align=center><font face="verdana" size="1" color="red"><b>A password was not chosen.</b></font></div>');
  73. }
  74. elseif (!preg_match("/^[a-z0-9]{1,15}$/i", $_POST["desireduser"])) { $onload=" onload=document.freg.desireduser.select()";
  75. 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>');
  76. }
  77. elseif (strlen($_POST['password']) > '50'){ $onload=" onload=document.freg.password.select()";
  78. echo('<div align=center><font face="verdana" size="1" color="red"><b>Passwords can only be a maximum of 50 characters.</b></font></div>');
  79. }
  80. elseif ($_POST['password'] == $_POST['desireduser']) { $onload=" onload=document.freg.desireduser.select()";
  81. 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>');
  82. }
  83. elseif (($check2 != 0)&&($fdsfs != 0)) { $onload=" onload=document.freg.desireduser.select()";
  84. echo('<div align=center><font face="verdana" size="1" color="red"><b>The username you entered is already in use.</b></font></div>');
  85. }
  86.  
  87. elseif ($checkfour != 0) { $onload="lol";
  88. 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>');
  89. }
  90.  
  91. else{ $onload="lol";
  92.  
  93. mysqli_query($connection,"UPDATE statis SET allof = (allof+1)");
  94.  
  95. 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>');
  96. $error= $time + 1800;
  97. $rawinsertlog = "INSERT INTO registerlog (ip,error)
  98. VALUES ('$adress','$error')";
  99. $insertlog = mysqli_query($connection,$rawinsertlog);
  100.  
  101.  
  102.  
  103. $alphanum = "ABCDEFGHIJKLMNPQRSTUVWXYZ123456789";
  104. $randver = substr(str_shuffle($alphanum), 0, 5);
  105.  
  106. mysqli_query($connection,"DELETE FROM users WHERE username = '$usor'");
  107.  
  108. $createcrewraw = mysqli_real_escape_string($connection,$_POST['useremail']);
  109. $newemail = htmlentities($createcrewraw, ENT_QUOTES);
  110. $newtime = time();
  111. $ctimer = time()+(60*60*12);
  112. mysqli_query($connection,"INSERT INTO `protection` (username,time) VALUES ('$username','$newtime')");
  113. $insert = "INSERT INTO `users` (username, password, email, location) VALUES ('$username', '$userpass', '$newemail', '$location')";
  114. $add_member = mysqli_query($connection,$insert);
  115.  
  116. mysqli_query($connection,"INSERT INTO `missiontasks` (username) VALUES ('$username')");
  117. if($_GET['ref']){ mysqli_query($connection,"INSERT INTO `referral` (username,referred) VALUES ('$refraw', '$username')"); }
  118.  
  119. $inserta = "INSERT INTO datesjoined (username,ip,browser)
  120. VALUES ('$username','$adress','$playerbrowser')";
  121. $addamember = mysqli_query($connection,$inserta);
  122. $uname = mysqli_real_escape_string($connection,$_POST['desireduser']);
  123.  
  124. $ysid = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM users WHERE username = '$usor'"));
  125. $toid = $ysid['ID'];
  126.  
  127. $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.";
  128. mysqli_query($connection,"INSERT INTO messages(sentto,sentfrom,new,sentip,info)
  129. VALUES ('$username','State Gangsters','1','$adress','$sendinfo')");
  130. }}
  131. ?></center>
  132. <body style="background-image: url('http://i52.tinypic.com/16bc8it.jpg');background-repeat: no-repeat; background-position: center center;">
  133. <div style="display:none">state gangsters is a free web based Massive Multiplayer Online Mafia Game. Chat, gamble, hustle and kill other users.</div>
  134.  
  135. <table><tr><td height="230"></td></tr></table>
  136. <table align=center><tr><td height="300">
  137. <?if(!$onload){ $onload=" onload=document.freg.desireduser.select()";}?>
  138. <table cellpadding="0" cellspacing="2" class="mainmenutable" align=center bgcolor="#222222">
  139. <? if($_GET['ref']){ $addthis = "?ref=$refraw"; }else{ $addthis = ""; } ?>
  140. <tr><td height="15" bgcolor="#282828" colspan="2"><center><font size="1" face="verdana" color="white">State Gangsters</font></center></td></tr>
  141. <form action="register.php<?echo$addthis?>" method="post">
  142. <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=2><font color="white" face="verdana" size="1">&nbsp;Username:</font></label></td><td height="8" bgcolor="#282828"><input type="text" name="desireduser" id="1" class="textbox"></td></tr>
  143. <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=3><font color="white" face="verdana" size="1">&nbsp;Password:</font></td><td height="8" bgcolor="#282828"><input type="text" name="password" id=2 class="textbox"></label></td></tr>
  144. <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=3><font color="white" face="verdana" size="1">&nbsp;Email (optional):</font></td><td height="8" bgcolor="#282828"><input type="text" name="useremail" id=3 class="textbox"></label></td></tr>
  145. <tr><td width="100" height="8" bgcolor="#333333" align=left><label for=3><font color="white" face="verdana" size="1">&nbsp;City:</font></td><td height="8" bgcolor="#282828"><SELECT NAME="loc" class="textbox" style="width:100%;">
  146. <OPTION value=1>Random</OPTION>
  147. <OPTION value=2>Las Vegas</OPTION>
  148. <OPTION value=3>Los Angeles</OPTION>
  149. <OPTION value=4>New York</OPTION>
  150. </SELECT>
  151. </label></td></tr>
  152. <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>
  153. </form>
  154. </table></td></tr></table>
  155.  
  156. <div id=buttonpos><table width=100% align=center>
  157. <table width=70% align=center><tr><td valign=top width=20%>
  158. <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>
  159. <tr><td align=center><a href="index.php"><font face=verdana size=1 style="font-weight:normal;"><br>Login<br><br></a></td></tr>
  160. </table><table><tr><td height=-1></td></tr></table></td>
  161. <td valign=top width=20%>
  162. <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>
  163. <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>
  164. </table></td>
  165. <td valign=top width=20%>
  166. <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>
  167. <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>
  168. </table></td>
  169. <td valign=top width=20%>
  170. <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>
  171. <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>
  172. </table></td></tr></table></table></div>
  173. </body>
  174. <head><META HTTP-EQUIV="Pragma" CONTENT="no-cache"></head></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement