Advertisement
comelx123

Fix Stuck ID RYL2

Mar 12th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.32 KB | None | 0 0
  1. <?
  2. include("../Includes/Config.php");
  3. ?>
  4.         <center><u><b><font size=2 color=Black>FIX ID STUCK</b></u></font><br><br><br>
  5. <table border=0 align="center" cellpadding=0 cellspacing=5>
  6.         <td width='500'>
  7.             <form name="form1" method="post" action="fixid.php?op=DoFIX">
  8.           <table width="100%" border="0" cellspacing="0" cellpadding="0">
  9.             <tr>
  10.               <td width="100"><font color=white>Login ID:</td><td width="100">
  11.             <input name="login" type="text" id="login" maxlength="20">
  12.         </td>
  13.             </tr>
  14.             <tr>
  15.               <td width="100">&nbsp;</td>
  16.             </tr>
  17.             <tr>
  18.               <td width="100" align="right">                <input type="submit" name="Submit" value="Submit">                </td>
  19.               <td>                <input type="reset" name="Submit2" value="Reset">                </td>
  20.             </tr>
  21.           </table>
  22.         </form>
  23. </div>
  24. </td>
  25. </table>
  26. </body>
  27. <?php
  28. $op = stripslashes($_REQUEST['op']);
  29. if ($op == DoFIX)
  30. { ?>
  31. <?php
  32.   mssql_select_db('pay_gamemyth', $msconnect);
  33.   $login = stripslashes($_POST['login']);
  34. if ((eregi("[^a-zA-Z0-9_-]", $login)) )
  35.     {
  36.     echo("<font color='#FFFFFF'>SQL Injection Detected. Make sure to ONLY use letters (a-Z) and numbers (0-9)!");
  37.         exit();
  38.     }
  39.   $sql = "DELETE FROM TblCurrentUser WHERE strClientID = '$login'";
  40.   $res = mssql_query($sql,$msconnect);
  41.   if (!$res) {
  42.     print("SQL statement failed with error:\n");
  43.     print("   ".mssql_get_last_message()."\n");
  44.   } else {
  45.     $number_of_rows = mssql_rows_affected($msconnect);
  46.     print("Your id has been fix succesfully.\n");
  47.   }
  48.  
  49.   mssql_close($msconnect);
  50. ?><br>
  51. <?php
  52.   mssql_select_db('pay_gamemyth', $msconnect);
  53.   $login = stripslashes($_POST['login']);
  54. if ((eregi("[^a-zA-Z0-9_-]", $login)) )
  55.     {
  56.     echo("<font color='#FFFFFF'>SQL Injection Detected. Make sure to ONLY use letters (a-Z) and numbers (0-9)!");
  57.         exit();
  58.     }
  59.   $sql = "DELETE FROM TblCurrentUser_Temp WHERE strClientID = '$login'";
  60.   $res = mssql_query($sql,$msconnect);
  61.   if (!$res) {
  62.     print("SQL statement failed with error:\n");
  63.     print("   ".mssql_get_last_message()."\n");
  64.   } else {
  65.     $number_of_rows = mssql_rows_affected($msconnect);
  66.     print("Your id has been fix succesfully.\n");
  67.   }
  68.  
  69.   mssql_close($msconnect);
  70. ?>
  71. <?
  72. }
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement