- Joined
- Jul 22, 2008
- Messages
- 9
- Reaction score
- 0
when i log out and them try to login again always have same problem account in use why?
Truncate table currentuser
<?php
include('./log_maker.php');
parth1tr();
parth1('100%',4,'center');
echo 'Account In-use';
parth2();
parth2tr();
if ($security == 1)
{
if ($_GET['do'] == 'inuse')
{
if ($_SESSION['editOk'] != "canEdit") {
echo "<script>self.location = 'index.php?act=user&actu=inuse'</script>";
} else {
$_SESSION['editOk'] = "";
}
error_reporting(E_ALL ^ E_NOTICE);
$Acc = ($_POST['Acc']);
$Acc = test($Acc);
if (empty($Acc) || empty($Acc))
{
parth1tr();
part1('100%',1,1,'center');
echo "U have to fill all fields. <br><a href='$PHP_SELF?act=user&actu=inuse'>Edit again.</a>";
parth2();
parth2tr();
die();
}
{
$msquery="DELETE FROM CURRENTUSER WHERE strAccountID='$Acc'";
$msresults=odbc_exec($msconnect,$msquery);
odbc_fetch_row($msresults);
$gmchar = odbc_result($msresult, 1);
log_item('item_log', $Acc);
parth1tr();
part1('100%',1,1,'center');
echo "Account refreshed!!";
parth2();
parth2tr();
}
{
parth1tr();
part1('100%',1,1,'center');
echo "Account refreshed!!";
parth2();
parth2tr();
}
}else
{
$_SESSION['editOk'] = "canEdit";
echo '<td class="alt1"><center><FORM method=post name=regform action=index.php?act=user&actu=inuse&do=inuse style="margin:0px; padding:0px">
<table width="300px">
<tr>
<td>Account Name:</td>
<td><input type="text" class="input" name="Acc" value="" maxlength="21" size="20"></td>
<tr>
<tr>
</table>
<center><input class="input" type="submit" value="Submit"></center></br></br>
</form>
</center>
</td>
';
echo '<p align="center"><b>Tool made by Superior