Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. <?php
  2.  
  3. # "ANTI SQL INJECTION" PROPRIEDADES
  4.  
  5. function anti_injection($CATCH_SQL) {
  6. $CATCH_SQL = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$CATCH_SQL);
  7. $CATCH_SQL = trim($CATCH_SQL);
  8. $CATCH_SQL = strip_tags($CATCH_SQL);
  9. $CATCH_SQL = addslashes($CATCH_SQL);
  10. return $CATCH_SQL;
  11. }
  12.  
  13. # "DATABASE" PROPRIEDADES
  14.  
  15. $MYSQL_CONFIG['SQL']['SERVER_HOST'] = "localhost";
  16. $MYSQL_CONFIG['SQL']['SERVER_USER'] = "root";
  17. $MYSQL_CONFIG['SQL']['SERVER_PASS'] = "123";
  18. $MYSQL_CONFIG['SQL']['SERVER_NAME'] = "mercer_project";
  19. $CONNECTION = @mysql_connect($MYSQL_CONFIG['SQL']['SERVER_HOST'], $MYSQL_CONFIG['SQL']['SERVER_USER'], $MYSQL_CONFIG['SQL']['SERVER_PASS']) or die("<h1>Could not connect to MySQL</h1><br /><h3>Please Try Again Later.</h3><p>é comum este erro acontecer devido alguns programas na vps o mysql automaticamente se desliga.<br />Nao va achando que o server foi hackiado ou algo assim por que nao foi rs ele apenas caiu só isso mas voltara em breve aguarde!!!.<br /><br />~ Mercer Project Staff ~</p><br />");
  20. mysql_select_db($MYSQL_CONFIG['SQL']['SERVER_NAME'], $CONNECTION) or die();
  21. error_reporting(0);
  22.  
  23. # "CMS" PROPRIEDADES
  24.  
  25. $CMS_AUTHOR = "Kvetechz Napoles";
  26. $CMS_TEAM = "AQWorlds.org";
  27. $CMS_VERSION= "Server English!";
  28. $CMS_TITILE = "Legend of Mutants";
  29. $CMS_CONTENT = "$CMS_TITILE FREE MMORPG - 2016 Online 24 Hours, $CMS_TITILE Is The Best Game Flash Of Browser,Invite Your Friends And Play";
  30. $CMS_ABOUT = "$CMS_TITILE One server Is Fantastic And Righteous One Community Oriented What Is Organized And Implemented By Professionals . We Have a Team Of Custom Development , Which Ensures The Best Possible Players Our Quality In Battles , Among This Adventure You Too!";
  31. $CMS_FOOTER = "© <a>$CMS_TEAM</a> Copyright 2011-2016 <a>$CMS_TITILE</a> All Rights Reserved. Owner: <a>$CMS_AUTHOR</a>";
  32. $CMS_ICON = "images/valencia.ico";
  33.  
  34. # "GAME" PROPRIEDADES
  35.  
  36. $DISPLAY_LEVEL_MAX = "100";
  37.  
  38. # "LOGIN" PROPRIEDADES
  39.  
  40. session_start();
  41. if(isset($_GET['Action']) && $_GET['Action'] == 'Exit'){
  42. unset($_SESSION['Useron']);
  43. unset($_SESSION['Passon']);
  44. unset($_SESSION['Logon']);
  45. session_destroy();
  46. echo "<script>javascript:history.back(1);</script>";
  47. }
  48.  
  49. # "PLAYER_ONLINE" DATABASE PROPERTIES
  50.  
  51. $PLAYER_ID = $_GET['id'];
  52. $PLAYER = $_SESSION['Player'];
  53. $PLAYERS_ONLINE = $_SESSION['Online'];
  54. $GAME_NAME = $_SERVER['SERVER_NAME'];
  55. $GAME_URI = $_SERVER ['REQUEST_URI'];
  56.  
  57. # "IP_BANNED" DATABASE PROPERTIES
  58.  
  59. if($_SERVER['HTTP_X_FORWARD_FOR']) {
  60. $USER_IP = $_SERVER['HTTP_X_FORWARD_FOR'];
  61. } else {
  62. $USER_IP = $_SERVER['REMOTE_ADDR'];
  63. }
  64. $USER_SEARCH =mysql_query("SELECT * FROM `meh_ban_ip` WHERE `ip` = '".$USER_IP."'");
  65. $USER_SEARCHED =mysql_num_rows($USER_SEARCH);
  66. if($USER_SEARCHED >= 1) {
  67. echo "<meta http-equiv='refresh' content='0;url=http://www.shafou.com/'>";
  68. die ("You have been banned from $CMS_TITILE.If you feel this is in error, please contact the Administrator at <a href=\"https://www.facebook.com/higor.mercers?ref=bookmarks\">$CMS_AUTHOR</a>."); ;
  69. }
  70.  
  71. # "NO-IP" PROPERTIES
  72.  
  73. $GAME_NAME = $_SERVER['SERVER_NAME'];
  74. if($GAME_NAME == '5.135.42.35') {
  75. echo "<meta http-equiv='refresh' content='0;URL=http://lom.aqworlds.org/'>";
  76. }
  77.  
  78. # "PLAYER ONLINE" PROPERTIES
  79.  
  80. $PLAYER_SERVER = $_SERVER['SERVER_NAME'];
  81. $PLAYER_LOCATION = $_SERVER ['REQUEST_URI'];
  82. $online = $_SESSION['Connection'];
  83. $PLAYER_ID = $_SESSION['Useron'];
  84. $PLAYER_PASS = $_SESSION['Passon'];
  85.  
  86. # "LOAD_USER" DATABASE PROPERTIES
  87.  
  88. $PLAYER = addslashes($PLAYER_ID);
  89. $LOAD_USER_DATABASE = mysql_query("SELECT * FROM `meh_users` WHERE `Username`= '".$PLAYER."'");
  90. $LOAD_USER_2 = mysql_query("SELECT * FROM `meh_users` WHERE `Username`= '".$PLAYER."'");
  91. $LOAD_USER = mysql_fetch_assoc($LOAD_USER_2);
  92. $i = 0;
  93.  
  94. while ($LOAD_USER_GAME = mysql_fetch_array($LOAD_USER_DATABASE)) {
  95. $i = $i + 1;
  96. } if ($i != "") {
  97.  
  98. $USER_ID = addslashes($LOAD_USER['id']);
  99. $USER_NAME = addslashes($LOAD_USER['Username']);
  100. $USER_PASSWORD = addslashes(md5($LOAD_USER['Password']));
  101. $USER_AGE= addslashes($LOAD_USER['Age']);
  102. $USER_ACTION_FLAG= addslashes($LOAD_USER['ActivationFlag']);
  103. $USER_EMAIL = addslashes($LOAD_USER['Email']);
  104. $USER_GENDER = addslashes($LOAD_USER['Gender']);
  105. $USER_ACCESS = addslashes($LOAD_USER['Access']);
  106. $USER_COINS = addslashes($LOAD_USER['Coins']);
  107. $USER_GOLD = addslashes($LOAD_USER['Gold']);
  108. $USER_LEVEL = addslashes($LOAD_USER['Level']);
  109. $USER_EXP = addslashes($LOAD_USER['Exp']);
  110. $USER_KILLS = addslashes($LOAD_USER['Kills']);
  111. $USER_DEATHS = addslashes($LOAD_USER['Deaths']);
  112. $USER_REWARD = addslashes($LOAD_USER['Reward']);
  113. $USER_GUILD_ID = addslashes($LOAD_USER['GuildID']);
  114. $USER_UPG = addslashes($LOAD_USER['Upg']);
  115. $USER_UPG_DAYS = addslashes($LOAD_USER['UpgradeDays']);
  116. $USER_BAGSLOTS = addslashes($LOAD_USER['BagSlots']);
  117. $USER_BANKSLOTS = addslashes($LOAD_USER['BankSlots']);
  118. $USER_HOUSESLOTS = addslashes($LOAD_USER['HouseSlots']);
  119. $USER_LAST_AREA = addslashes($LOAD_USER['LastArea']);
  120. $USER_COUNTRY = addslashes($LOAD_USER['Country']);
  121. }
  122.  
  123. # "DISPLAY PORCENTAGE" PROPERTIES
  124.  
  125. $DISPLAY_PORCENTAGE = 1;
  126. if($USER_LEVEL <= 5)
  127. $DISPLAY_PORCENTAGE = 1;
  128. else if($USER_LEVEL <= 20)
  129. $DISPLAY_PORCENTAGE = 50;
  130. else if($USER_LEVEL <= 40)
  131. $DISPLAY_PORCENTAGE = 100;
  132. else if($USER_LEVEL <= 60)
  133. $DISPLAY_PORCENTAGE = 150;
  134. else if($USER_LEVEL <= 80)
  135. $DISPLAY_PORCENTAGE = 200;
  136. else if($USER_LEVEL <= 100)
  137. $DISPLAY_PORCENTAGE = 250;
  138. else
  139. $DISPLAY_PORCENTAGE = 250;
  140.  
  141.  
  142. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement