<?php $tesle=microtime(0); $sot_db_host='localhost'; $sot_db_user_name='123456'; $sot_db_password='123456'; $sot_db_name='123456'; if(!($db=@mysql_connect($sot_db_host, $sot_db_user_name, $sot_db_password))){ include_once "sys/eror/db_eror.php"; exit; } if (!@mysql_select_db($sot_db_name,$db)){ include_once "sys/eror/db_eror.php"; 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); if(!isset($_SESSION)) { session_name('SESS'); session_start(); $sess=mysql_real_escape_string(session_id()); if (!preg_match('#[A-z0-9]{32}#i',$sess))$sess=md5(rand(09009,999999)); $ku = mysql_fetch_assoc(mysql_query('SELECT * FROM `farm_user` WHERE `id`="'.$_SESSION['id_user'].'"')); $user = mysql_fetch_assoc(mysql_query('SELECT * FROM `farm_user` WHERE `id`="'.$_SESSION['id_user'].'"')); if($ku['id']==''){$ku = null;} } ?>