Размер файла: 5.41Kb
<?php
#==============================================================================================#
# Name : Imperial CHAT #
# Made by : MaZaFaKa (___хакер___) #
# MODED : vipsds ( BOT ) #
# ICQ : 350502220 (vipsds) #
# E-mai : [email protected] #
# По всем вопросам и дополнительным модам обращайтесь на выше указанные данные #
#==============================================================================================#
define('MYSQLHOST', 'localhost');
define('DBNAME', 'lizni');
define('DBUSER', 'lizni');
define('DBPASS', 'motnya');
$wmlfoot="<a href=\"http://uzver.info\">© uzver.info</a> 2009<br/>";
$sitemenu="<a href=\"http://uzver.info\"><font color=\"white\">© UZVER</font></a> 2009<br/>";
$sitefoot = '© uzver.info 2009<br/>';//Копирайт
$siteurl = 'http://uzver.info';//Ссылка на глывную
$sitename = "UZVER";//Название ссылки
$coll = 10; // Количество статей в газете
$passadmin = 'pizda';
$zvezda0 = '<img src="/res/raiting/00.gif" alt="" /><br/>';
$zvezda1 = '<img src="/res/raiting/01.gif" alt="" /><br/>';
$zvezda2 = '<img src="/res/raiting/02.gif" alt="" /><br/>';
$zvezda3 = '<img src="/res/raiting/03.gif" alt="" /><br/>';
$zvezda4 = '<img src="/res/raiting/04.gif" alt="" /><br/>';
$zvezda5 = '<img src="/res/raiting/05.gif" alt="" /><br/>';
$zvezda6 = '<img src="/res/raiting/06.gif" alt="" /><br/>';
$zvezda7 = '<img src="/res/raiting/07.gif" alt="" /><br/>';
$zvezda8 = '<img src="/res/raiting/08.gif" alt="" /><br/>';
$zvezda9 = '<img src="/res/raiting/09.gif" alt="" /><br/>';
$zvezda10 = '<img src="/res/raiting/10.gif" alt="" /><br/>';
if(strpos($_SERVER['HTTP_USER_AGENT'], "'") !== false) exit;
//if(substr($_SERVER['HTTP_USER_AGENT'], 0 , 7) == "SamSunf") die();
//if(preg_match("'Nokia(\d{3})/'", $_SERVER['HTTP_USER_AGENT'])) die();
mysql_connect(MYSQLHOST, DBUSER, DBPASS);
mysql_query('SET NAMES `utf8`');
//mysql_query("set character_set_client='utf8'");
//mysql_query("set character_set_results='utf8'");
//mysql_query("set collation_connection='utf8_general_ci'");
mysql_select_db(DBNAME) or die('Error select the database');
//SWITCH VERSION
if($_GET['ver'] != 'wml' && $_GET['ver'] != 'html')
{
$model = strtok($_SERVER['HTTP_USER_AGENT'],'/');
if($model=='Opera'){
$_GET['ver'] = 'html';
}
elseif($model=='Mozilla'){
$_GET['ver'] = 'html';
}
else{
$_GET['ver'] = 'wml';
}
}
$ver = $_GET['ver'];
if($_GET['ver'] == 'html')
{
if(!isset($_COOKIE['theme']))
{
//////////////////////////////////////////////////////
$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))
{
$user = mysql_fetch_assoc($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'];
if(!$fsize){
$fsize = 'small';
}
elseif($fsize == 1){
$fsize = 'normal';
}
elseif($fsize == 2){
$fsize = 'large';
}
else{
$fsize = 'small';
}
}
$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: :#FFFFFF; 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: #D98D16; text-decoration: underline; padding: 2px; }
form{padding:0px;margin:0px;}
div{padding-left:3px;padding-right:3px;}
.d1 {padding: 3px; background-color: #dddddd; border-bottom: 1px dotted #0083BD; border: 1px dotted #0083BD}
.d2 {color:#ffffff; padding: 3px; background-color: #6189C4; border-bottom: 1px solid #FFFFFF}
.d3 {color:#ffffff; padding: 3px; background-color: #0A326D; border-bottom: 1px dotted #000000; border: 1px dotted #000000}
.d4{background-color:#ffffff;}
.d5 {color:#ffffff; 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>';
}
else{
include 'themes_switch.php';
}
$favicon = 'favicon.ico';
}
if(!function_exists('iconv')){
include 'includes/functions/iconv.function';
}
$wicked_quiz = 3;
$unlim = 4;
include 'includes/functions/gzip.function';
?>