Guest User

Untitled

a guest
Apr 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. <?php
  2. include("include/_mysql.php");
  3. $db = mysql_connect($host,$username,$password);
  4. mysql_select_db($database,$db) or die ("Unable to select database");
  5. session_start();
  6. if(!session_is_registered(myusername))
  7. {
  8. $query=" Select * from DatabaseCuentas where key=$myusername";
  9. $result=mysql_query($query);
  10. echo mysql_error();
  11. $lol = $this1;
  12. $lol = $lol - 19;
  13. $tabelle = "DatabaseCuentas";
  14. if ($_POST["suchbegriff"])
  15. {
  16.  
  17. $sql = "SELECT * FROM ".$tabelle." WHERE key=$myusername LIKE ('%".mysql_real_escape_string(utf8_decode($_POST["suchbegriff"]))."%')";
  18.  
  19.  
  20. $result = mysql_query($sql);
  21.  
  22. while($row = mysql_fetch_object($result))
  23. {
  24.  
  25. $lastname = stripslashes($row->key);
  26. $data = $row->data;
  27. //echo "$lastname - $data";
  28. //echo utf8_encode($row->key);
  29. list($pass,$ammopacks,$exp,$level,$null,$status2,) = split(" ",$data,6);
  30.  
  31. if($status > 1)
  32. {
  33. $status = 1;
  34. }
  35. if($XP < 0)
  36. {
  37. $XP = 0;
  38. }
  39. $TeamPower = substr($data,-3,-1);
  40. $Awarnes = substr($data,-5,-3);
  41. $gravity = substr($data,-8,-5);
  42. }
  43. }
  44. else
  45. {
  46. while($row = mysql_fetch_array($result))
  47. {
  48.  
  49. $player = gg_get_player('rank',$lol++);
  50. if($player === false) break;
  51. $i = $lol -1 ;
  52. $lastname = stripslashes($player['key']);
  53. $data = $player['data'];
  54.  
  55. list($pass,$ammopacks,$exp,$level,$null,$status2,) = split(" ",$data,6);
  56.  
  57. if($status > 9999)
  58. {
  59. $status = 9999;
  60. }
  61. if($XP < 0)
  62. {
  63. $XP = 0;
  64. }
  65. }
  66. }
  67.  
  68. //echo "<p>&nbsp;</p>";
  69. echo "<table align='center' cellpadding='0' cellspacing='1'>";
  70. echo "<tr>";
  71. echo "<form name='form1' method='post' action='checklogin.php'>";
  72. echo "<td>";
  73. echo "<table width='20%' border='0' cellpadding='0' cellspacing='0'>";
  74. echo "<tr>";
  75. //echo "<td colspan='3'><strong><font color='#FF0000'>Member Login</strong></font></td>";
  76. echo "</tr>";
  77. echo "<tr>";
  78. echo "<td width='20'><font color='#FF0000'><b>Usuario</b></font></td>";
  79. echo "<td width='6'>:&nbsp;</td>";
  80. echo "<td width='294'>";
  81. echo "<input name='myusername' type='text' id='myusername' size='20' value='Username'></td>";
  82. echo "<td><font color='#FF0000'><b>&nbsp;Contraseña</b></font></td>";
  83. echo "<td>:&nbsp;</td>";
  84. echo "<td>";
  85. echo "<input name='mypassword' type='text' id='mypassword' size='20' value='******'></td>";
  86. echo "<td><input type='submit' name='Submit' value='Login'></td>";
  87. echo "</tr>";
  88. echo "</table>";
  89. echo "</td>";
  90. echo "</form>";
  91. echo "</tr>";
  92. echo "</table>";
  93.  
  94. //echo "<div align='center'>";
  95. //echo "<table style='border-collapse: collapse; border-top-width: 0px' border='0' cellpadding='6' cellspacing='0' width='500' bordercolor='#111111'>";
  96. //echo " <tr align='left'>";
  97. //echo "<td class='vbmenu_control' width='125'>";
  98. //echo " <a href='index.php'><font color='#000000'>Home</a></font></td>";
  99. //echo " <td class='vbmenu_control' width='150'>";
  100. //echo " <a href='index.php'><font color='#000000'>User List</a></font></td>";
  101. //echo " <td style='cursor: pointer;' id='navbar_search' class='vbmenu_control' width='75'>";
  102. //echo " <a accesskey='4' rel='nofollow' href='search.php'><font color='#000000'>Search</font></a> ";
  103. //echo " <td style='cursor: pointer;' id='navbar_search' class='vbmenu_control' width='105'>";
  104. //echo " <a href='login.php'><font color='#000000'>Login</font></a> ";
  105. //echo " </td>";
  106. //echo " </tr>";
  107. //echo "</table>";
  108. //echo "</div>";
  109.  
  110.  
  111. }
  112. else
  113. {
  114. //echo "<p>&nbsp;</p>";
  115. echo "<p align='center'><font color='#FF0000' font size='1'><b>Logueado como <font color='#360000' font size='1'>$myusername&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></b><font color='#000000' font size='1'>Ammopacks: $ammopacks - Experiencia: $exp - Nivel: $level - Estado: $status2</font></p>";
  116. echo "<div align='center'>";
  117. //echo "<table style='border-collapse: collapse; border-top-width: 0px' border='0' cellpadding='6' cellspacing='0' width='500' bordercolor='#111111'>";
  118. //echo " <tr align='left'>";
  119. //echo "<td class='vbmenu_control' width='125'>";
  120. //echo " <a href='index.php'><font color='#000000'>Home</a></font></td>";
  121. //echo "<td class='vbmenu_control' width='125'>";
  122. //echo " <a href='edit_skills.php'><font color='#000000'>My Skills</a></font></td>";
  123. //echo " <td class='vbmenu_control' width='75'>";
  124. //echo " <a href='settings.php'><font color='#000000'>Settings</a></font></td>";
  125. //echo " <td class='vbmenu_control' width='150'>";
  126. //echo " <a href='index.php'><font color='#000000'>User List</a></font></td>";
  127. //echo " <td style='cursor: pointer;' id='navbar_search' class='vbmenu_control' width='75'>";
  128. //echo " <a accesskey='4' rel='nofollow' href='search.php'><font color='#000000'>Search</font></a> ";
  129. //echo " <td style='cursor: pointer;' id='navbar_search' class='vbmenu_control' width='105'>";
  130. //echo " <a href='logout.php'><font color='#000000'>Log Out</font></a> ";
  131. //echo " </td>";
  132. //echo " </tr>";
  133. //echo "</table>";
  134. //echo "</div>";
  135.  
  136. }
  137. $page_name="index.php?site=stats";
  138. $page=$_GET['page'];
  139. if(strlen($page) > 0 and !is_numeric($page))
  140. {
  141. echo "Data Error";
  142. exit;
  143. }
  144.  
  145. $eu = ($page - 0);
  146. $limit = 30; // No of records to be shown per page.
  147. $this1 = $eu + $limit;
  148. $back = $eu - $limit;
  149. $next = $eu + $limit;
  150.  
  151. $query2=" SELECT * FROM DatabaseCuentas";
  152. $result2=mysql_query($query2);
  153. echo mysql_error();
  154. $nume=mysql_num_rows($result2);
  155.  
  156.  
  157. echo ("<title>MonsterMod stats by One</title>");
  158. ?>
Add Comment
Please, Sign In to add comment