ОШИБКА: Не могу соединиться с MYSQL сервером 'localhost'

( ! ) Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/www.rexstar.ru/htdocs/lib/search_forma.php on line 13
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.0057683248search_forma( )../index.php:103
30.0057683632mysql_query ( )../search_forma.php:13
Dump $_SERVER
$_SERVER['REQUEST_METHOD'] =
string 'GET' (length=3)
$_SERVER['REQUEST_URI'] =
string '/content/id37699' (length=16)
$_SERVER['HTTP_USER_AGENT'] =
string 'CCBot/2.0 (http://commoncrawl.org/faq/)' (length=39)
Dump $_REQUEST
$_REQUEST['header'] =
string 'content' (length=7)
$_REQUEST['id'] =
string '37699' (length=5)
Variables in local scope (#2)
$arr =
Undefined
$find =
string '' (length=0)
$i =
Undefined
$mytext =
Undefined
$option =
Undefined
$query2 =
string 'SELECT id, caption FROM rexstar_category_usercontent WHERE root=-1 AND invisible=0 ORDER BY sort_order, caption' (length=111)
$razd =
string '' (length=0)
$result2 =
Undefined
$selected =
Undefined
$selected_autor =
Undefined
$selected_rex =
Undefined

( ! ) Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: A link to the server could not be established in /var/www/www.rexstar.ru/htdocs/lib/search_forma.php on line 13
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.0057683248search_forma( )../index.php:103
30.0057683632mysql_query ( )../search_forma.php:13
Variables in local scope (#2)
$arr =
Undefined
$find =
string '' (length=0)
$i =
Undefined
$mytext =
Undefined
$option =
Undefined
$query2 =
string 'SELECT id, caption FROM rexstar_category_usercontent WHERE root=-1 AND invisible=0 ORDER BY sort_order, caption' (length=111)
$razd =
string '' (length=0)
$result2 =
Undefined
$selected =
Undefined
$selected_autor =
Undefined
$selected_rex =
Undefined

( ! ) Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in /var/www/www.rexstar.ru/htdocs/lib/search_forma.php on line 32
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.0057683248search_forma( )../index.php:103
30.00641084128mysql_free_result ( )../search_forma.php:32
Variables in local scope (#2)
$arr =
Undefined
$find =
string '' (length=0)
$i =
int 0
$mytext =
Undefined
$option =
string '' (length=0)
$query2 =
string 'SELECT id, caption FROM rexstar_category_usercontent WHERE root=-1 AND invisible=0 ORDER BY sort_order, caption' (length=111)
$razd =
string '' (length=0)
$result2 =
boolean false
$selected =
Undefined
$selected_autor =
Undefined
$selected_rex =
Undefined

( ! ) Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/www.rexstar.ru/htdocs/lib/common_function.php on line 101
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.00671088776db_query( )../index.php:112
30.00671088920mysql_query ( )../common_function.php:101
Variables in local scope (#2)
$finish =
Undefined
$mtime =
float 1427845646.1119
$queries_log =
&string '' (length=0)
$queries_num =
&int 0
$result =
Undefined
$sql =
string '(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)' (length=142)
$start =
float 1427845646.1119
$time =
Undefined
$time_str =
Undefined
$totaltime =
&int 0

( ! ) Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: A link to the server could not be established in /var/www/www.rexstar.ru/htdocs/lib/common_function.php on line 101
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.00671088776db_query( )../index.php:112
30.00671088920mysql_query ( )../common_function.php:101
Variables in local scope (#2)
$finish =
Undefined
$mtime =
float 1427845646.1119
$queries_log =
&string '' (length=0)
$queries_num =
&int 0
$result =
Undefined
$sql =
string '(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)' (length=142)
$start =
float 1427845646.1119
$time =
Undefined
$time_str =
Undefined
$totaltime =
&int 0

( ! ) Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /var/www/www.rexstar.ru/htdocs/index.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.00731089176mysql_fetch_row ( )../index.php:114
Variables in local scope (#1)
$add_css =
string '' (length=0)
$add_js =
string '' (length=0)
$array =
Undefined
$array_keys =
Undefined
$array_keys_param =
Undefined
$array_param =
Undefined
$array_result =
Undefined
$array_status =
array (size=5)
  -1 => string 'Неактивированный пользователь' (length=29)
  0 => string 'Пользователь' (length=12)
  1 => string 'Модератор' (length=9)
  2 => string 'Администратор' (length=13)
  3 => string 'Настройщик сайта' (length=16)
$arrd_array =
Undefined
$autor =
string '
			<div class="enter">
			<form action="" name="aut" method="post">
			<input type="text" name="mzlogin" id="mzlogin" maxlength="50" value="E-mail" onfocus="EmptyInput();" onBlur="CheckInput();">
			<span id="pass"><input type="text" id="mpass" name="mzpassword" maxlength="14" value="Пароль" onfocus="MyPass();"></span>
			<input type="submit" name="autorize_x" value="" class="submit">
			</form>
				<a href="/recovery">Забыли пароль</a>
				<a href="/registration" style="margin-left: 10px;">Регистр'... (length=533)
$autorization =
Undefined
$connection =
&boolean false
$content =
Undefined
$db_host =
string 'localhost' (length=9)
$db_name =
string 'rexstar' (length=7)
$db_pass =
string 'Fwsvsd45' (length=8)
$db_user =
string 'rexstar' (length=7)
$folder =
Undefined
$header =
Undefined
$href =
Undefined
$html =
Undefined
$is_connect =
boolean false
$item_id =
Undefined
$key =
string 'id' (length=2)
$left_menu =
Undefined
$main_header =
Undefined
$main_menu =
Undefined
$message =
string '' (length=0)
$meta =
Undefined
$module =
Undefined
$myglobalcontent =
Undefined
$name_template =
Undefined
$o =
Undefined
$opt =
Undefined
$param =
Undefined
$param_all =
array (size=44)
  'email1' => string '' (length=0)
  'email2' => string '' (length=0)
  'plugin_roller' => string '0' (length=1)
  'moderate' => string '0' (length=1)
  'moderate_advert' => string '0' (length=1)
  'moderate_foto' => string '0' (length=1)
  'guest_pre_page' => string '10' (length=2)
  'advert_pre_page' => string '10' (length=2)
  'post_pre_page' => string '10' (length=2)
  'plugin_video' => string '0' (length=1)
  'plugin_anons' => string '0' (length=1)
  'anons_сaption' => string 'Новости' (length=7)
  'anons_header' => string 'news' (length=4)
  'anons_count' => string '15' (length=2)
  'plugin_anons_adv' => string '1' (length=1)
  'anons_adv_сaption' => string 'Новости' (length=7)
  'anons_adv_header' => string 'news' (length=4)
  'anons_adv_count' => string '5' (length=1)
  'plugin_autorization' => string '0' (length=1)
  'plugin_counter' => string '0' (length=1)
  'plugin_valuta' => string '0' (length=1)
  'plugin_pogoda' => string '0' (length=1)
  'plugin_banner_vert' => string '0' (length=1)
  'plugin_banner_horz' => string '0' (length=1)
  'plugin_advert_tools' => string '0' (length=1)
  'plugin_advert_day' => string '0' (length=1)
  'plugin_poll' => string '0' (length=1)
  'email_callback' => string 'setk06@mail.ru' (length=14)
  'email_comment' => string 'setk06@mail.ru' (length=14)
  'email_zakaz' => string 'setk06@mail.ru' (length=14)
  'gallery_signature' => string '0' (length=1)
  'register_comment' => string '0' (length=1)
  'moderate_guest' => string '0' (length=1)
  'guest_direct' => string '1' (length=1)
  'guest_per_page' => string '10' (length=2)
  'advert_per_page' => string '15' (length=2)
  'good_per_page' => string '' (length=0)
  'post_per_page' => string '10' (length=2)
  'db_host' => string 'localhost' (length=9)
  'db_user' => string 'rexstar' (length=7)
  'db_pass' => string 'Fwsvsd45' (length=8)
  'db_name' => string 'rexstar' (length=7)
  'db_prefix' => string 'rexstar_' (length=8)
  'site_name' => string 'rexstar.ru' (length=10)
$queries_log =
string '<hr>1) 0.0005 сек.<pre>(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)</pre>' (length=171)
$queries_num =
int 1
$query =
string '(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)' (length=142)
$result =
boolean false
$right_menu =
Undefined
$root_id =
Undefined
$root_title =
Undefined
$sape =
Undefined
$sape_context =
Undefined
$saplink =
Undefined
$search =
Undefined
$search_field =
string '<div>
			<form action="/searchresult" name="bye" method="post" style="margin: 0px; padding: 0px;">
			<table align="center" cellspacing=0 cellpadding=0 style="width: 650px; float: auto;"><tr height="16px;">
			<td valign="middle" style="width: 70px; text-align: right;">Я ищу: </td>
			<td style="border:1px #4c4c4c solid; border-right: 0px #fff solid; background-color: #fff; width: 320px;">
			<input type="text" name="myfind" id="myfind" maxlength="40" value="" style="top: 0px; margin: 0px; padding: 0px'... (length=1147)
$site_name =
string 'rexstar.ru' (length=10)
$table_page =
string 'rexstar_page' (length=12)
$table_template =
string 'rexstar_template' (length=16)
$totaltime =
float 0.00054001808166504
$tpl =
object(template)[1]
  public 'var_names' => 
    array (size=0)
      empty
  public 'files' => 
    array (size=0)
      empty
  public 'start' => string '{' (length=1)
  public 'end' => string '}' (length=1)
$trustick =
Undefined
$trustlink =
Undefined
$uri =
Undefined
$val =
string '37699' (length=5)
$value =
Undefined
$winclass =
Undefined
$year =
Undefined

( ! ) Notice: Undefined variable: array_param in /var/www/www.rexstar.ru/htdocs/index.php on line 117
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
Variables in local scope (#1)
$add_css =
string '' (length=0)
$add_js =
string '' (length=0)
$array =
null
$array_keys =
Undefined
$array_keys_param =
Undefined
$array_param =
Undefined
$array_result =
Undefined
$array_status =
array (size=5)
  -1 => string 'Неактивированный пользователь' (length=29)
  0 => string 'Пользователь' (length=12)
  1 => string 'Модератор' (length=9)
  2 => string 'Администратор' (length=13)
  3 => string 'Настройщик сайта' (length=16)
$arrd_array =
Undefined
$autor =
string '
			<div class="enter">
			<form action="" name="aut" method="post">
			<input type="text" name="mzlogin" id="mzlogin" maxlength="50" value="E-mail" onfocus="EmptyInput();" onBlur="CheckInput();">
			<span id="pass"><input type="text" id="mpass" name="mzpassword" maxlength="14" value="Пароль" onfocus="MyPass();"></span>
			<input type="submit" name="autorize_x" value="" class="submit">
			</form>
				<a href="/recovery">Забыли пароль</a>
				<a href="/registration" style="margin-left: 10px;">Регистр'... (length=533)
$autorization =
Undefined
$connection =
&boolean false
$content =
Undefined
$db_host =
string 'localhost' (length=9)
$db_name =
string 'rexstar' (length=7)
$db_pass =
string 'Fwsvsd45' (length=8)
$db_user =
string 'rexstar' (length=7)
$folder =
Undefined
$header =
Undefined
$href =
Undefined
$html =
Undefined
$is_connect =
boolean false
$item_id =
Undefined
$key =
string 'id' (length=2)
$left_menu =
Undefined
$main_header =
Undefined
$main_menu =
Undefined
$message =
string '' (length=0)
$meta =
Undefined
$module =
Undefined
$myglobalcontent =
Undefined
$name_template =
Undefined
$o =
Undefined
$opt =
Undefined
$param =
Undefined
$param_all =
array (size=44)
  'email1' => string '' (length=0)
  'email2' => string '' (length=0)
  'plugin_roller' => string '0' (length=1)
  'moderate' => string '0' (length=1)
  'moderate_advert' => string '0' (length=1)
  'moderate_foto' => string '0' (length=1)
  'guest_pre_page' => string '10' (length=2)
  'advert_pre_page' => string '10' (length=2)
  'post_pre_page' => string '10' (length=2)
  'plugin_video' => string '0' (length=1)
  'plugin_anons' => string '0' (length=1)
  'anons_сaption' => string 'Новости' (length=7)
  'anons_header' => string 'news' (length=4)
  'anons_count' => string '15' (length=2)
  'plugin_anons_adv' => string '1' (length=1)
  'anons_adv_сaption' => string 'Новости' (length=7)
  'anons_adv_header' => string 'news' (length=4)
  'anons_adv_count' => string '5' (length=1)
  'plugin_autorization' => string '0' (length=1)
  'plugin_counter' => string '0' (length=1)
  'plugin_valuta' => string '0' (length=1)
  'plugin_pogoda' => string '0' (length=1)
  'plugin_banner_vert' => string '0' (length=1)
  'plugin_banner_horz' => string '0' (length=1)
  'plugin_advert_tools' => string '0' (length=1)
  'plugin_advert_day' => string '0' (length=1)
  'plugin_poll' => string '0' (length=1)
  'email_callback' => string 'setk06@mail.ru' (length=14)
  'email_comment' => string 'setk06@mail.ru' (length=14)
  'email_zakaz' => string 'setk06@mail.ru' (length=14)
  'gallery_signature' => string '0' (length=1)
  'register_comment' => string '0' (length=1)
  'moderate_guest' => string '0' (length=1)
  'guest_direct' => string '1' (length=1)
  'guest_per_page' => string '10' (length=2)
  'advert_per_page' => string '15' (length=2)
  'good_per_page' => string '' (length=0)
  'post_per_page' => string '10' (length=2)
  'db_host' => string 'localhost' (length=9)
  'db_user' => string 'rexstar' (length=7)
  'db_pass' => string 'Fwsvsd45' (length=8)
  'db_name' => string 'rexstar' (length=7)
  'db_prefix' => string 'rexstar_' (length=8)
  'site_name' => string 'rexstar.ru' (length=10)
$queries_log =
string '<hr>1) 0.0005 сек.<pre>(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)</pre>' (length=171)
$queries_num =
int 1
$query =
string '(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)' (length=142)
$result =
boolean false
$right_menu =
Undefined
$root_id =
Undefined
$root_title =
Undefined
$sape =
Undefined
$sape_context =
Undefined
$saplink =
Undefined
$search =
Undefined
$search_field =
string '<div>
			<form action="/searchresult" name="bye" method="post" style="margin: 0px; padding: 0px;">
			<table align="center" cellspacing=0 cellpadding=0 style="width: 650px; float: auto;"><tr height="16px;">
			<td valign="middle" style="width: 70px; text-align: right;">Я ищу: </td>
			<td style="border:1px #4c4c4c solid; border-right: 0px #fff solid; background-color: #fff; width: 320px;">
			<input type="text" name="myfind" id="myfind" maxlength="40" value="" style="top: 0px; margin: 0px; padding: 0px'... (length=1147)
$site_name =
string 'rexstar.ru' (length=10)
$table_page =
string 'rexstar_page' (length=12)
$table_template =
string 'rexstar_template' (length=16)
$totaltime =
float 0.00054001808166504
$tpl =
object(template)[1]
  public 'var_names' => 
    array (size=0)
      empty
  public 'files' => 
    array (size=0)
      empty
  public 'start' => string '{' (length=1)
  public 'end' => string '}' (length=1)
$trustick =
Undefined
$trustlink =
Undefined
$uri =
Undefined
$val =
string '37699' (length=5)
$value =
Undefined
$winclass =
Undefined
$year =
Undefined

( ! ) Warning: array_keys() expects parameter 1 to be array, null given in /var/www/www.rexstar.ru/htdocs/index.php on line 117
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.01031103704array_keys ( )../index.php:117
Variables in local scope (#1)
$add_css =
string '' (length=0)
$add_js =
string '' (length=0)
$array =
null
$array_keys =
Undefined
$array_keys_param =
Undefined
$array_param =
Undefined
$array_result =
Undefined
$array_status =
array (size=5)
  -1 => string 'Неактивированный пользователь' (length=29)
  0 => string 'Пользователь' (length=12)
  1 => string 'Модератор' (length=9)
  2 => string 'Администратор' (length=13)
  3 => string 'Настройщик сайта' (length=16)
$arrd_array =
Undefined
$autor =
string '
			<div class="enter">
			<form action="" name="aut" method="post">
			<input type="text" name="mzlogin" id="mzlogin" maxlength="50" value="E-mail" onfocus="EmptyInput();" onBlur="CheckInput();">
			<span id="pass"><input type="text" id="mpass" name="mzpassword" maxlength="14" value="Пароль" onfocus="MyPass();"></span>
			<input type="submit" name="autorize_x" value="" class="submit">
			</form>
				<a href="/recovery">Забыли пароль</a>
				<a href="/registration" style="margin-left: 10px;">Регистр'... (length=533)
$autorization =
Undefined
$connection =
&boolean false
$content =
Undefined
$db_host =
string 'localhost' (length=9)
$db_name =
string 'rexstar' (length=7)
$db_pass =
string 'Fwsvsd45' (length=8)
$db_user =
string 'rexstar' (length=7)
$folder =
Undefined
$header =
Undefined
$href =
Undefined
$html =
Undefined
$is_connect =
boolean false
$item_id =
Undefined
$key =
string 'id' (length=2)
$left_menu =
Undefined
$main_header =
Undefined
$main_menu =
Undefined
$message =
string '' (length=0)
$meta =
Undefined
$module =
Undefined
$myglobalcontent =
Undefined
$name_template =
Undefined
$o =
Undefined
$opt =
Undefined
$param =
Undefined
$param_all =
array (size=44)
  'email1' => string '' (length=0)
  'email2' => string '' (length=0)
  'plugin_roller' => string '0' (length=1)
  'moderate' => string '0' (length=1)
  'moderate_advert' => string '0' (length=1)
  'moderate_foto' => string '0' (length=1)
  'guest_pre_page' => string '10' (length=2)
  'advert_pre_page' => string '10' (length=2)
  'post_pre_page' => string '10' (length=2)
  'plugin_video' => string '0' (length=1)
  'plugin_anons' => string '0' (length=1)
  'anons_сaption' => string 'Новости' (length=7)
  'anons_header' => string 'news' (length=4)
  'anons_count' => string '15' (length=2)
  'plugin_anons_adv' => string '1' (length=1)
  'anons_adv_сaption' => string 'Новости' (length=7)
  'anons_adv_header' => string 'news' (length=4)
  'anons_adv_count' => string '5' (length=1)
  'plugin_autorization' => string '0' (length=1)
  'plugin_counter' => string '0' (length=1)
  'plugin_valuta' => string '0' (length=1)
  'plugin_pogoda' => string '0' (length=1)
  'plugin_banner_vert' => string '0' (length=1)
  'plugin_banner_horz' => string '0' (length=1)
  'plugin_advert_tools' => string '0' (length=1)
  'plugin_advert_day' => string '0' (length=1)
  'plugin_poll' => string '0' (length=1)
  'email_callback' => string 'setk06@mail.ru' (length=14)
  'email_comment' => string 'setk06@mail.ru' (length=14)
  'email_zakaz' => string 'setk06@mail.ru' (length=14)
  'gallery_signature' => string '0' (length=1)
  'register_comment' => string '0' (length=1)
  'moderate_guest' => string '0' (length=1)
  'guest_direct' => string '1' (length=1)
  'guest_per_page' => string '10' (length=2)
  'advert_per_page' => string '15' (length=2)
  'good_per_page' => string '' (length=0)
  'post_per_page' => string '10' (length=2)
  'db_host' => string 'localhost' (length=9)
  'db_user' => string 'rexstar' (length=7)
  'db_pass' => string 'Fwsvsd45' (length=8)
  'db_name' => string 'rexstar' (length=7)
  'db_prefix' => string 'rexstar_' (length=8)
  'site_name' => string 'rexstar.ru' (length=10)
$queries_log =
string '<hr>1) 0.0005 сек.<pre>(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)</pre>' (length=171)
$queries_num =
int 1
$query =
string '(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)' (length=142)
$result =
boolean false
$right_menu =
Undefined
$root_id =
Undefined
$root_title =
Undefined
$sape =
Undefined
$sape_context =
Undefined
$saplink =
Undefined
$search =
Undefined
$search_field =
string '<div>
			<form action="/searchresult" name="bye" method="post" style="margin: 0px; padding: 0px;">
			<table align="center" cellspacing=0 cellpadding=0 style="width: 650px; float: auto;"><tr height="16px;">
			<td valign="middle" style="width: 70px; text-align: right;">Я ищу: </td>
			<td style="border:1px #4c4c4c solid; border-right: 0px #fff solid; background-color: #fff; width: 320px;">
			<input type="text" name="myfind" id="myfind" maxlength="40" value="" style="top: 0px; margin: 0px; padding: 0px'... (length=1147)
$site_name =
string 'rexstar.ru' (length=10)
$table_page =
string 'rexstar_page' (length=12)
$table_template =
string 'rexstar_template' (length=16)
$totaltime =
float 0.00054001808166504
$tpl =
object(template)[1]
  public 'var_names' => 
    array (size=0)
      empty
  public 'files' => 
    array (size=0)
      empty
  public 'start' => string '{' (length=1)
  public 'end' => string '}' (length=1)
$trustick =
Undefined
$trustlink =
Undefined
$uri =
Undefined
$val =
string '37699' (length=5)
$value =
Undefined
$winclass =
Undefined
$year =
Undefined

( ! ) Warning: extract() expects parameter 1 to be array, null given in /var/www/www.rexstar.ru/htdocs/index.php on line 119
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.01151103960extract ( )../index.php:119
Variables in local scope (#1)
$add_css =
string '' (length=0)
$add_js =
string '' (length=0)
$array =
null
$array_keys =
Undefined
$array_keys_param =
null
$array_param =
&null
$array_result =
Undefined
$array_status =
array (size=5)
  -1 => string 'Неактивированный пользователь' (length=29)
  0 => string 'Пользователь' (length=12)
  1 => string 'Модератор' (length=9)
  2 => string 'Администратор' (length=13)
  3 => string 'Настройщик сайта' (length=16)
$arrd_array =
Undefined
$autor =
string '
			<div class="enter">
			<form action="" name="aut" method="post">
			<input type="text" name="mzlogin" id="mzlogin" maxlength="50" value="E-mail" onfocus="EmptyInput();" onBlur="CheckInput();">
			<span id="pass"><input type="text" id="mpass" name="mzpassword" maxlength="14" value="Пароль" onfocus="MyPass();"></span>
			<input type="submit" name="autorize_x" value="" class="submit">
			</form>
				<a href="/recovery">Забыли пароль</a>
				<a href="/registration" style="margin-left: 10px;">Регистр'... (length=533)
$autorization =
Undefined
$connection =
&boolean false
$content =
Undefined
$db_host =
string 'localhost' (length=9)
$db_name =
string 'rexstar' (length=7)
$db_pass =
string 'Fwsvsd45' (length=8)
$db_user =
string 'rexstar' (length=7)
$folder =
Undefined
$header =
Undefined
$href =
Undefined
$html =
Undefined
$is_connect =
boolean false
$item_id =
Undefined
$key =
string 'id' (length=2)
$left_menu =
Undefined
$main_header =
Undefined
$main_menu =
Undefined
$message =
string '' (length=0)
$meta =
Undefined
$module =
Undefined
$myglobalcontent =
Undefined
$name_template =
Undefined
$o =
Undefined
$opt =
Undefined
$param =
Undefined
$param_all =
array (size=44)
  'email1' => string '' (length=0)
  'email2' => string '' (length=0)
  'plugin_roller' => string '0' (length=1)
  'moderate' => string '0' (length=1)
  'moderate_advert' => string '0' (length=1)
  'moderate_foto' => string '0' (length=1)
  'guest_pre_page' => string '10' (length=2)
  'advert_pre_page' => string '10' (length=2)
  'post_pre_page' => string '10' (length=2)
  'plugin_video' => string '0' (length=1)
  'plugin_anons' => string '0' (length=1)
  'anons_сaption' => string 'Новости' (length=7)
  'anons_header' => string 'news' (length=4)
  'anons_count' => string '15' (length=2)
  'plugin_anons_adv' => string '1' (length=1)
  'anons_adv_сaption' => string 'Новости' (length=7)
  'anons_adv_header' => string 'news' (length=4)
  'anons_adv_count' => string '5' (length=1)
  'plugin_autorization' => string '0' (length=1)
  'plugin_counter' => string '0' (length=1)
  'plugin_valuta' => string '0' (length=1)
  'plugin_pogoda' => string '0' (length=1)
  'plugin_banner_vert' => string '0' (length=1)
  'plugin_banner_horz' => string '0' (length=1)
  'plugin_advert_tools' => string '0' (length=1)
  'plugin_advert_day' => string '0' (length=1)
  'plugin_poll' => string '0' (length=1)
  'email_callback' => string 'setk06@mail.ru' (length=14)
  'email_comment' => string 'setk06@mail.ru' (length=14)
  'email_zakaz' => string 'setk06@mail.ru' (length=14)
  'gallery_signature' => string '0' (length=1)
  'register_comment' => string '0' (length=1)
  'moderate_guest' => string '0' (length=1)
  'guest_direct' => string '1' (length=1)
  'guest_per_page' => string '10' (length=2)
  'advert_per_page' => string '15' (length=2)
  'good_per_page' => string '' (length=0)
  'post_per_page' => string '10' (length=2)
  'db_host' => string 'localhost' (length=9)
  'db_user' => string 'rexstar' (length=7)
  'db_pass' => string 'Fwsvsd45' (length=8)
  'db_name' => string 'rexstar' (length=7)
  'db_prefix' => string 'rexstar_' (length=8)
  'site_name' => string 'rexstar.ru' (length=10)
$queries_log =
string '<hr>1) 0.0005 сек.<pre>(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)</pre>' (length=171)
$queries_num =
int 1
$query =
string '(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)' (length=142)
$result =
boolean false
$right_menu =
Undefined
$root_id =
Undefined
$root_title =
Undefined
$sape =
Undefined
$sape_context =
Undefined
$saplink =
Undefined
$search =
Undefined
$search_field =
string '<div>
			<form action="/searchresult" name="bye" method="post" style="margin: 0px; padding: 0px;">
			<table align="center" cellspacing=0 cellpadding=0 style="width: 650px; float: auto;"><tr height="16px;">
			<td valign="middle" style="width: 70px; text-align: right;">Я ищу: </td>
			<td style="border:1px #4c4c4c solid; border-right: 0px #fff solid; background-color: #fff; width: 320px;">
			<input type="text" name="myfind" id="myfind" maxlength="40" value="" style="top: 0px; margin: 0px; padding: 0px'... (length=1147)
$site_name =
string 'rexstar.ru' (length=10)
$table_page =
string 'rexstar_page' (length=12)
$table_template =
string 'rexstar_template' (length=16)
$totaltime =
float 0.00054001808166504
$tpl =
object(template)[1]
  public 'var_names' => 
    array (size=0)
      empty
  public 'files' => 
    array (size=0)
      empty
  public 'start' => string '{' (length=1)
  public 'end' => string '}' (length=1)
$trustick =
Undefined
$trustlink =
Undefined
$uri =
Undefined
$val =
string '37699' (length=5)
$value =
Undefined
$winclass =
Undefined
$year =
Undefined

( ! ) Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/www.rexstar.ru/htdocs/lib/common_function.php on line 101
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.01311104136db_query( )../index.php:134
30.01311104232mysql_query ( )../common_function.php:101
Variables in local scope (#2)
$finish =
Undefined
$mtime =
float 1427845646.1183
$queries_log =
&string '<hr>1) 0.0005 сек.<pre>(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)</pre>' (length=171)
$queries_num =
&int 1
$result =
boolean false
$sql =
string 'SELECT p.id, p.root, p.content, p.menu, p.title, p.keywords, p.description, 
			t.caption as name_template, p.template_id, 
			p.module, p.header, p.autorization FROM rexstar_page p
		LEFT JOIN rexstar_template t ON t.id = p.template_id
		WHERE (p.header = 'content')' (length=271)
$start =
float 1427845646.1183
$time =
Undefined
$time_str =
Undefined
$totaltime =
&float 0.00054001808166504

( ! ) Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: A link to the server could not be established in /var/www/www.rexstar.ru/htdocs/lib/common_function.php on line 101
Call Stack
#TimeMemoryFunctionLocation
10.0000634208{main}( )../index.php:0
20.01311104136db_query( )../index.php:134
30.01311104232mysql_query ( )../common_function.php:101
Variables in local scope (#2)
$finish =
Undefined
$mtime =
float 1427845646.1183
$queries_log =
&string '<hr>1) 0.0005 сек.<pre>(SELECT 'main_header', header as value FROM rexstar_page
ORDER BY sort_order, id
LIMIT 0,1)
UNION
(SELECT param, value FROM rexstar_param)</pre>' (length=171)
$queries_num =
&int 1
$result =
boolean false
$sql =
string 'SELECT p.id, p.root, p.content, p.menu, p.title, p.keywords, p.description, 
			t.caption as name_template, p.template_id, 
			p.module, p.header, p.autorization FROM rexstar_page p
		LEFT JOIN rexstar_template t ON t.id = p.template_id
		WHERE (p.header = 'content')' (length=271)
$start =
float 1427845646.1183
$time =
Undefined
$time_str =
Undefined
$totaltime =
&float 0.00054001808166504
Ошибка SQL1
SELECT p.id, p.root, p.content, p.menu, p.title, p.keywords, p.description, t.caption as name_template, p.template_id, p.module, p.header, p.autorization FROM rexstar_page p LEFT JOIN rexstar_template t ON t.id = p.template_id WHERE (p.header = 'content')