Fume
wag1 piff ting
- Dec 4, 2014
- 172
- 33
I feel that some skins for revcms are missing one, or just have an ugly one already there,
so I thought I would release the one I use on my hotel
Screen:
Code:
so I thought I would release the one I use on my hotel
Screen:
Code:
Code:
<body background="{url}/app/tpl/skins/{skin}/images/bg.png"><table width="200" bgcolor="#FFFFFF" align="center" style="border-radius:10px; padding:15PX;">
<title>{hotelName} - Banned</title>
<td><center><img src="http://www.imageupload.co.uk/images/2014/11/30/HABCLOUDqbvuo.gif" align="center">
</center></font></td>
</table>
<br>
<table width="200" border="0" bgcolor="#FFFFFF" align="center" style="border-radius:10px; padding:15PX;">
<tr>
<td><center> <img src="http://www.imageupload.co.uk/images/2014/11/30/bannedm8.gif" align="center"></center></td>
</tr></table>
<br>
<br>
<table width="600" border="0" bgcolor="#FFFFFF" align="center" style="border-radius:10px; padding:15PX;">
<tr>
<td><center><font color="ff0000"><strong><font size="5">YOU HAVE BEEN BANNED FROM {hotelName}</font></strong></center></font>
<br>
<img src="http://www.imageupload.co.uk/images/2014/11/30/Untitled4TDma.png" align="right">
You have been banned from {hotelName} because you've not read through {hotelName}'s Policy and you've decided to break them.
If this ban wasn't permanent then feel free to come back when the ban has expired but if you do come back, remember to read the policy next time
and follow them appropriately.
<br>
<br>
<strong><u>Full Details Below:</u><br></strong>
<br>
<?php
if($_SESSION['user']['id']){
$getuserinfo = mysql_query("SELECT * FROM users WHERE id='".$_SESSION['user']['id']."'");
while($row = mysql_fetch_array($getuserinfo)){
$usernameban = $row['username'];
}
$getuserinfo= mysql_query("SELECT * FROM bans WHERE value='{$usernameban}'");
while($row = mysql_fetch_array($getuserinfo)){
$username2 = $row['value'];
$bantype = $row['bantype'];
$reason = $row['reason'];
$expire = $row['expire'];
$addedby = $row['added_by'];
echo '';
echo "<b>Reason:</b> " . $reason;
echo '<br /><br />';
echo "<b>Type:</b> " . $bantype;
echo '<br /><br />';
echo "<b></i>Banned by:</b> " . $addedby;
echo '<br /><br />';
$getuserinfo2= mysql_query("SELECT * FROM bans WHERE value='{$usernameban}'");
while($row = mysql_fetch_array($getuserinfo2)){
$expire = $row['expire'];
if($expire < time()){
header('Location: me');
exit;
}
else {
}
}
// Now we convert the Unix timestamp to a humanley readable time
$date = date("l d F Y H:i:s", $expire);
echo "<b>Expires on:</b> " . $date;
}
}
?>
</td>
</tr></table>
Last edited: