Ban page help

Flizzy

New Member
Feb 4, 2013
8
0
Hello i am using RevCMS and the ban page makes it seem like its a perm ban it will not load the session properly does not tell them when the ban is over just tells them "You're Banned" can anyone give me a hand with this?
 

Flizzy

New Member
Feb 4, 2013
8
0
Code:
<body bgcolor="#000000"><table width="900" border="0" bgcolor="#FFFFFF" align="center" style="border-radius:10px; padding:15PX;">
  <tr>
    <td><font style="font-size:36px;
  font-weight:500;
  color:#F00;
  text-align:center;" ><center><br />You're banned!<br /></center></font></td>
 
  </tr>
  <tr>
    <td><center>
    <?php
 
 
if($_SESSION['user']['id']){
 
 
$getuserinfo = mysql_query("SELECT * FROM users WHERE id='".$_SESSION['user']['id']."'");
while($row = mysql_fetch_array($getuserinfo)){
 
 
 
 
 
}
 
 
 
$getuserinfo= mysql_query("SELECT * FROM bans WHERE value='{$bans}'");
 
 
 
  while($row = mysql_fetch_array($getuserinfo)){
 
$ip = $row['value'];
$bantype = $row['bantype'];
$reason = $row['reason'];
$expire = $row['expire'];
$addedby = $row['added_by'];
echo '<center>';
echo "IP: " . $ip;
echo '<br /><br />';
echo "Reason: " . $reason;
echo '<br /><br />';
echo "Type: " . $bantype;
echo '<br /><br />';
echo "Banned by: " . $addedby;
echo '<br /><br />';
 
$getuserinfo2= mysql_query("SELECT * FROM bans WHERE value='{$bans}'");
 
 
 
  while($row = mysql_fetch_array($getuserinfo2)){
 
 
  $expire = $row['expire'];
 
 
 
  if($expire < time()){
  header('Location: me');
}
  else {
 
  }
}
 
 
                        // Now we convert the Unix timestamp to a humanley readable time
                           
                                $date = date("l d F Y H:i(worry)", $expire);
                             
                                echo "Ban expires on: " . $date;
}
}
 
 
 
?></center></td>
  </tr>
</table>
 

1990

90s > Present
Jun 18, 2012
118
33
Code:
<body bgcolor="#000000"><table width="900" border="0" bgcolor="#FFFFFF" align="center" style="border-radius:10px; padding:15PX;">
  <tr>
    <td><font style="font-size:36px;
  font-weight:500;
  color:#F00;
  text-align:center;" ><center><br />You're banned!<br /></center></font></td>
 
  </tr>
  <tr>
    <td><center>
    <?php
 
 
if($_SESSION['user']['id']){
 
 
$getuserinfo = mysql_query("SELECT * FROM users WHERE id='".$_SESSION['user']['id']."'");
while($row = mysql_fetch_array($getuserinfo)){
 
 
 
 
 
}
 
 
 
$getuserinfo= mysql_query("SELECT * FROM bans WHERE value='{$bans}'");
 
 
 
  while($row = mysql_fetch_array($getuserinfo)){
 
$ip = $row['value'];
$bantype = $row['bantype'];
$reason = $row['reason'];
$expire = $row['expire'];
$addedby = $row['added_by'];
echo '<center>';
echo "IP: " . $ip;
echo '<br /><br />';
echo "Reason: " . $reason;
echo '<br /><br />';
echo "Type: " . $bantype;
echo '<br /><br />';
echo "Banned by: " . $addedby;
echo '<br /><br />';
 
$getuserinfo2= mysql_query("SELECT * FROM bans WHERE value='{$bans}'");
 
 
 
  while($row = mysql_fetch_array($getuserinfo2)){
 
 
  $expire = $row['expire'];
 
 
 
  if($expire < time()){
  header('Location: me');
}
  else {
 
  }
}
 
 
                        // Now we convert the Unix timestamp to a humanley readable time
                     
                                $date = date("l d F Y H:i(worry)", $expire);
                       
                                echo "Ban expires on: " . $date;
}
}
 
 
 
?></center></td>
  </tr>
</table>

That Ban system is designed for Phoenix. What emulator are you using?
 

Users who are viewing this thread

Top