SHARE
TWEET

Untitled

a guest Jun 14th, 2017 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <title>WoW-Crysis Changelog</title>
  2. <?php error_reporting(E_ALL ^ E_NOTICE);
  3. /* Script by Lss, and for Lss's use only. */
  4. if (!isset($_SESSION))
  5. {
  6.   session_start();
  7. }
  8. if (!$_SESSION["Gm"]) {
  9. print'<center><form action="" method="post">
  10. Username: <input type="text" name="username"/><br/>
  11. Password: <input type="password" name="password"/><br/>
  12. <input name="redirect" type="hidden" value="./"><br/>
  13. <input type="submit" value="Login"/></form></center>';
  14.  
  15. $l="crysis_accounts";//Logon Db
  16. $t="accounts";//Accounts Table
  17.  
  18. $con = mysql_connect("logon.wowcrysis.com", "crysis_admin", "crysis4life") or die(mysql_error());
  19. mysql_select_db("$l", $con) or die(mysql_error());
  20.  
  21. if (isset($_POST['username'])) {
  22. $user=$_POST['username'];
  23. $pass=$_POST['password'];
  24. $user = stripslashes($user);
  25. $pass = stripslashes($pass);
  26. $user = mysql_real_escape_string($user);
  27. $pass = mysql_real_escape_string($pass);
  28. $user = ucfirst($user);
  29.  
  30. $result = mysql_query("SELECT * FROM $l.$t WHERE login='$user' and password='$pass' and gm='a' and banned='0'");
  31. $count = mysql_num_rows($result);
  32.  
  33. $result1 = mysql_query("SELECT * FROM $l.$t WHERE login='$user' and password='$pass' and gm='3' and banned='0'");
  34. $count1 = mysql_num_rows($result1);
  35.  
  36. $result2 = mysql_query("SELECT * FROM $l.$t WHERE login='$user' and password='$pass' and gm='az' and banned='0'");
  37. $count2 = mysql_num_rows($result2);
  38.  
  39. if($count == 1){//Allow Users Access To Member Features
  40.     //session_register("MM_Username");
  41.         header("Location: ");
  42.         //Set session data
  43.         $_SESSION["valid_id"] = $obj->id;
  44.         $_SESSION["Gm"] = "$user";
  45.         $_SESSION["valid_time"] = time();
  46.         }
  47.         else if($count1 == 1){//Allow Users Access To Member Features
  48.     //session_register("MM_Username");
  49.         header("Location: ");
  50.         //Set session data
  51.         $_SESSION["valid_id"] = $obj->id;
  52.         $_SESSION["Gm"] = "$user";
  53.         $_SESSION["valid_time"] = time();
  54.         }
  55.         else if($count2 == 1){//Allow Users Access To Member Features
  56.     //session_register("MM_Username");
  57.         header("Location: ");
  58.         //Set session data
  59.         $_SESSION["valid_id"] = $obj->id;
  60.         $_SESSION["Gm"] = "$user";
  61.         $_SESSION["valid_time"] = time();
  62.         }
  63.         else
  64.         {echo"Access Denied!";}
  65.        
  66. }} else{
  67.  
  68. //Script Here!
  69. $user_name = "crysis_admin";
  70.     $password = "crysis4life";
  71.     $database = "crysis_website";
  72.     $server = "logon.wowcrysis.com";
  73.  
  74. $db_handle = mysql_connect($server, $user_name, $password);
  75. $db_found = mysql_select_db($database, $db_handle);
  76.  
  77. if ($db_found) {
  78.  
  79. $SQL = "SELECT * FROM paypal_data";
  80. $result = mysql_query($SQL);
  81.  
  82. while ($db_field = mysql_fetch_assoc($result)) {
  83. print $db_field['id'] . "<BR>Login ID:&nbsp; ";
  84. print $db_field['login'] . "<BR>TxNid:&nbsp;";
  85. print $db_field['txnid'] . "<BR>Ammount:&nbsp;";
  86. print $db_field['amount'] . "<BR>Email:&nbsp;";
  87. print $db_field['who'] . "<BR>When:&nbsp;";
  88. print $db_field['whendon'] . "<BR>Comment:&nbsp;";
  89. print $db_field['comment'] . "<BR><BR><BR>";
  90. }
  91.  
  92. mysql_close($db_handle);
  93.  
  94. }
  95. else {
  96. print "Database NOT Found ";
  97. mysql_close($db_handle);
  98. }
  99. //Edit No Further!
  100. print'<br/><br/><form action="" method="post"><input type="submit" name="logout" value="Logout"</form>';
  101. if (isset($_POST['logout'])) {
  102. session_start();
  103. session_unset();
  104. error_reporting(0);
  105.  
  106. session_destroy();
  107. // Logged out, return home.
  108. Header("Location: ");
  109. }
  110. }?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top