";
if($user[template]!="darkrealmsie"){
?>
body {
background: #fff;
margin: 0;
padding: 0;
border: 0;
font-family: "Verdana", sans-serif;
font-size: 11px;
color: #36454B;
}
a:link {
color: #287A8A;
text-decoration: underline;
font-weight: bold;
}
a:visited {
color: #5C858A;
text-decoration: underline;
font-weight: bold;
}
a:hover {
text-decoration: none;
font-weight: bold;
}
a:active {
color: #5C858A;
text-decoration: none;
font-weight: bold;
}
}else{
?>
body {
background: #000;
margin: 0;
padding: 0;
border: 0;
font-family: "Verdana", sans-serif;
font-size: 11px;
color: #6A55A1;
}
p {
padding: 3px 0px;
margin: 8px 0px 0px 0px;
}
a:link {
color: #6A55A1;
text-decoration: underline;
font-weight: bold;
}
a:visited {
color: #9A3581;
text-decoration: underline;
font-weight: bold;
}
a:hover {
text-decoration: none;
font-weight: bold;
}
a:active {
color: #9A85F1;
text-decoration: none;
font-weight: bold;
}
}
print"\n";
$stat = mysql_fetch_array(mysql_query("select * from characters where id='$user[activechar]'"));
$ctime = time();
if($user[position]=="Admin"||$user[position]=="Staff"||$user[position]=="Moderator"){
$staff="yes";
ini_set(display_errors,on);
}else{
$staff="HELL NO FOOL";
}
if($version!="low"){
mysql_query("update users set lastseen=$ctime where id=$stat[id]");
mysql_query("update characters set lastseen=$ctime where id=$stat[id]");
$ip = "$HTTP_SERVER_VARS[REMOTE_ADDR]";
mysql_query("update users set ip='$ip' where id=$stat[id]");
mysql_query("update users set page='chat' where id=$stat[id]");
}
if($action==chat){
print"";
}else{
$backtime=$ctime-600;
$csel = mysql_query("select * from chat where timem>$backtime order by timem desc");
while ($chat = mysql_fetch_array($csel)) {
if ($user[position] == Admin) {
$starter = "$user[username]";
} else {
$starter = "$user[username]";
}
if($chat[user]==$starter){
$go=1;
}
}
if($go==1){
print"";
}else{
$trek=rand(1,10);
if($trek==1&&$staff!="yes"){
print"anti-bot action, please say something
";
}else{
print"";
}
}
}
?>
" , $msg);
$msg = str_replace("[bigsmile]" , "
" , $msg);
$msg = str_replace("[cry]" , "
" , $msg);
$msg = str_replace("[forward]" , "
" , $msg);
$msg = str_replace("[frown]" , "
" , $msg);
$msg = str_replace("[frustrated]" , "
" , $msg);
$msg = str_replace("[mad]" , "
" , $msg);
$msg = str_replace("[pause]" , "
" , $msg);
$msg = str_replace("[play]" , "
" , $msg);
$msg = str_replace("[smile]" , "
" , $msg);
$msg = str_replace("[stop]" , "
" , $msg);
$msg = str_replace("[suprised]" , "
" , $msg);
$msg = str_replace("[tongue]" , "
" , $msg);
$msg = str_replace("[b]" , "" , $msg);
$msg = str_replace("[u]" , "" , $msg);
$msg = str_replace("[i]" , "" , $msg);
$msg = str_replace("[s]" , "