View file themes_switch.php

File size: 14.61Kb
<?php
#==============================================================================================#
#                                   Name  :  Imperial CHAT                                     #
#                               Made by  :  MaZaFaKa (___хакер___)                             #
#                                  MODED :  vipsds  (   BOT  )                                 #
#                                  ICQ  :  350502220 (vipsds)                                  #
#                                E-mai :  [email protected]                                     #
# По всем вопросам и дополнительным модам обращайтесь на выше указанные данные                 #
#==============================================================================================#
	//
		$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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #CCCCCC;}
     a { color: #4F9DD1; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}a.b2{color:#000000;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #f4fcd3; border-bottom: 1px dotted #1A0023; border: 1px dotted #0083BD}
    .d2 {color:#073E01; padding: 3px; background-color: #54DB6E; border-bottom: 1px solid #FFFFFF}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#89A558; color:#ffffff;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #ffffff}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #CCCCCC;}
     a { color: #4F9DD1; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}a.b2{color:#000000;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #ffffff; border-bottom: 1px dotted #0083BD; border: 1px dotted #0083BD}
    .d2 {color:#0083BD; padding: 3px; background-color: #CEF0FF; border-bottom: 1px solid #FFFFFF}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#6CB6FF; color:#FFFFFF;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #FFFFFF}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #000000;}
     a { color: #434644; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}
     .b2{color:#000000;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #f4fcd3; border-bottom: 1px dotted #0083BD; border: 1px dotted #0083BD}
    .d2 {color:#000001; padding: 3px; background-color: #C0C0C0; border-bottom: 1px solid #FFFFFF}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#646264; color:#ffffff;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #ffffff}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #000000;}
     a { color: #000000; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}
     a.b2{color:#ffffff;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #F1F1ED; border-bottom: 1px dotted #0083BD; border: 1px dotted #0083BD}
    .d2 {color:#000001; padding: 3px; background-color: #D0C8B3; border-bottom: 1px solid #ffffff}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#8E8671; color:#ffffff;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #ffffff}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #000000;}
     a { color: #0000ff; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}
     a.b2{color:#ffffff;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #FCF3FF; border-bottom: 1px dotted #0083BD; border: 1px dotted #0083BD}
    .d2 {color:#000001; padding: 3px; background-color: #C36BA4; border-bottom: 1px solid #ffffff}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#6C144D; color:#ffffff;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #ffffff}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #F162EF;}
     a { color: #ED6192; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}
     a.b2{color:#F36363;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #ffe3ed; border-bottom: 1px dotted #0083BD; border: 1px dotted #0083BD}
    .d2 {color:#000001; padding: 3px; background-color: #fdacc6; border-bottom: 1px solid #F36363}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#f98ab3; color:#000000;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #ffffff}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #F162EF;}
     a { color: #D80033; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}
     a.b2{color:#F36363;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #FBBC8A; border-bottom: 1px dotted #FD0000; border: 1px dotted #0083BD}
    .d2 {color:#000001; padding: 3px; background-color: #F01111; border-bottom: 1px solid #F34D4D}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#D10000; color:#000000;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #FF5858}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #8CB179;}
     a { color: #000000; text-decoration: none; font-size:11px; padding: 2px;}
     a.b3{color:#ffffff;}
     a.b2{color:#000000;}
     a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
     form{padding:0px;margin:0px;}
     div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #EEFBDE; border-bottom: 1px dotted #FD0000; border: 1px dotted #58B246}
    .d2 {color:#000001; padding: 3px; background-color: #D2DFC2; border-bottom: 1px solid #85CE84}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#A8B598; color:#000000;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #ffffff}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </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."; margin: 0px; background-color: #fff; font-size: 11px; font-family: Tahoma, Trebuchet MS; border: 1px dotted #CCCCCC;}
     a { color: #4F9DD1; text-decoration: none; font-size:11px; padding: 2px;}
    .user{color:#0000ff;}
    .admin{color:#696969;}
    .moder{color:#B05747;}
    .robot{color:#FF6347;}
    a.b3{color:#ffffff;}a.b2{color:#000000;}
    a:hover { color: #4F9DD1; text-decoration: underline; padding: 2px; }
    form{padding:0px;margin:0px;}
    div{padding-left:3px;padding-right:3px;}
    .d1 {padding: 3px; background-color: #ffffff; border-bottom: 1px dotted #0083BD; border: 1px dotted #0083BD}
    .d2 {color:#0083BD; padding: 3px; background-color: #CEF0FF; border-bottom: 1px solid #FFFFFF}
    .d3 {border-bottom: 1px double white;  padding: 5px;  background-color:#6CB6FF; color:#FFFFFF;}
    .d4{background-color:#ffffff;}
    .d5 {color:#fff; padding: 3px; background-color: #ff0000; border-bottom: 1px solid #FFFFFF}
    img{vertical-align:middle;}
    input[type=\"submit\"], input[type=\"button\"], input[type~=\"submit\"],input[type~=\"button\"]
    {background-color: #36638E; color: #FFFFFF; font-size: 11px; padding:3px; font-family: tahoma, tahoma, verdana, arial, sans-serif; border:0}
    </style></head><body>";
break;
}
?>