Файл: inc/conn.php
Строк: 41
<?
include 'config/conf.ini';
If (!($db=mysql_connect('localhost',b_user,b_pass))){
echo'<? xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<link rel="shortcut icon" href="style/favicon.PNG" />
<link rel="stylesheet" type="text/css" href="style/style.css" /></head>';
echo'<div class="umenu">В игре проводятся технические работы...</div>';exit;}If(!mysql_select_db((bd),$db)){
echo'<? xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<link rel="shortcut icon" href="style/favicon.PNG" />
<link rel="stylesheet" type="text/css" href="style/style.css" /></head>';
echo'<div class="umenu">В игре проводятся технические работы...</div>';exit;}
mysql_query('set charset utf8',$db);
mysql_query('SET names utf8',$db);
mysql_query('set character_set_client="utf8"',$db);
mysql_query('set character_set_connection="utf8"',$db);
mysql_query('set character_set_result="utf8"',$db); @session_start();
if (isset($_SESSION['id_user']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$_SESSION[id_user]' LIMIT 1"), 0)==1)
{$user=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = '$_SESSION[id_user]'"));}
?>