Размер файла: 8.42Kb
<?php
//
$id = intval($_SESSION['id']);
$password = mysql_escape_string($_SESSION['password']);
$q = mysql_query("SELECT * FROM `chat_users` WHERE `id` = '".$id."' AND `password` = '".md5($password)."';");
//
if(mysql_num_rows($q) != 0)
{
//USER DATA
$user = mysql_fetch_array($q);
$id = $user['id'];
$nickname = $user['nickname'];
$level = $user['level'];
$status = $user['status'];
$time = $user['time'];
$fsize = $user['fsize'];
$ip = $user['ip'];
$ua = $user['ua'];
$security = $user['security'];
//END USER DATA
if($fsize == 0)
{
$fsize = "small";
}
if($fsize == 1)
{
$fsize = "normal";
}
if($fsize == 2)
{
$fsize = "large";
} }
else
{
$fsize = "small";
}
switch($_COOKIE['theme'])
{
case 'green':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#0000ff;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#000000;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#f4fcd3;}.d2{background-color:#EFEE52;}.d3{background-color:#89A558;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
case 'blue':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#0000ff;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#ffffff;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#F0F8FF;}.d2{background-color:#6189C4;color:#ffffff;}.d3{background-color:#0A326D;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
case 'brown':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#000000;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#ffffff;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#F3F1D4;}.d2{background-color:#DCC140;color:#ffffff;}.d3{background-color:#AC9110;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
case 'gray':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#000000;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#ffffff;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#F1F1ED;}.d2{background-color:#D0C8B3;color:#ffffff;}.d3{background-color:#8E8671;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
case 'purple':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#0000ff;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#ffffff;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#FCF3FF;}.d2{background-color:#C36BA4;color:#ffffff;}.d3{background-color:#6C144D;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
case 'pink':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#0000ff;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#000000;}a.b2{color:#000000;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#ffe3ed;}.d2{background-color:#fdacc6;color:#000000;}.d3{background-color:#f98ab3;color:#000000;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
case 'red':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#8C0805;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#ffffff;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#FBDCC3;}.d2{background-color:#D14D4A;color:#ffffff;}.d3{background-color:#8C0805;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
case 'teal':
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#000000;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#000000;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#EEFBDE;}.d2{background-color:#D2DFC2;color:#000000;}.d3{background-color:#A8B598;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
default:
$css="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10-flat.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><style type=\"text/css\">body{font-size:".$fsize.";color:#000000;font-family:sans-serif;background-color:#FFFFFF;margin:0;}a{color:#0000ff;text-decoration:none;}.user{color:#0000ff;}.admin{color:#696969;}.moder{color:#B05747;}.robot{color:#FF6347;}a.b3{color:#ffffff;}a.b2{color:#000000;}a:hover{text-decoration:underline;}form{padding:0px;margin:0px;}div{padding-left:3px;padding-right:3px;}.d1{background-color:#f4fcd3;}.d2{background-color:#EFEE52;}.d3{background-color:#89A558;color:#ffffff;}.d4{background-color:#ffffff;}.d5{background-color:#ff0000;color:#ffffff;}img{vertical-align:middle;}</style></head><body>";
break;
}
?>