Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include("../Includes/Config.php");
- ?>
- <center><u><b><font size=2 color=Black>FIX ID STUCK</b></u></font><br><br><br>
- <table border=0 align="center" cellpadding=0 cellspacing=5>
- <td width='500'>
- <form name="form1" method="post" action="fixid.php?op=DoFIX">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="100"><font color=white>Login ID:</td><td width="100">
- <input name="login" type="text" id="login" maxlength="20">
- </td>
- </tr>
- <tr>
- <td width="100"> </td>
- </tr>
- <tr>
- <td width="100" align="right"> <input type="submit" name="Submit" value="Submit"> </td>
- <td> <input type="reset" name="Submit2" value="Reset"> </td>
- </tr>
- </table>
- </form>
- </div>
- </td>
- </table>
- </body>
- <?php
- $op = stripslashes($_REQUEST['op']);
- if ($op == DoFIX)
- { ?>
- <?php
- mssql_select_db('pay_gamemyth', $msconnect);
- $login = stripslashes($_POST['login']);
- if ((eregi("[^a-zA-Z0-9_-]", $login)) )
- {
- echo("<font color='#FFFFFF'>SQL Injection Detected. Make sure to ONLY use letters (a-Z) and numbers (0-9)!");
- exit();
- }
- $sql = "DELETE FROM TblCurrentUser WHERE strClientID = '$login'";
- $res = mssql_query($sql,$msconnect);
- if (!$res) {
- print("SQL statement failed with error:\n");
- print(" ".mssql_get_last_message()."\n");
- } else {
- $number_of_rows = mssql_rows_affected($msconnect);
- print("Your id has been fix succesfully.\n");
- }
- mssql_close($msconnect);
- ?><br>
- <?php
- mssql_select_db('pay_gamemyth', $msconnect);
- $login = stripslashes($_POST['login']);
- if ((eregi("[^a-zA-Z0-9_-]", $login)) )
- {
- echo("<font color='#FFFFFF'>SQL Injection Detected. Make sure to ONLY use letters (a-Z) and numbers (0-9)!");
- exit();
- }
- $sql = "DELETE FROM TblCurrentUser_Temp WHERE strClientID = '$login'";
- $res = mssql_query($sql,$msconnect);
- if (!$res) {
- print("SQL statement failed with error:\n");
- print(" ".mssql_get_last_message()."\n");
- } else {
- $number_of_rows = mssql_rows_affected($msconnect);
- print("Your id has been fix succesfully.\n");
- }
- mssql_close($msconnect);
- ?>
- <?
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement