include('enter/inc/123456.php'); include('enter/inc/mysql.php'); include('enter/inc/functions.php'); if (request_url() == 'http://pharmaxi.uz/en/') { header('HTTP/1.1 301 Moved Permanently'); header("Location: http://pharmaxi.uz/en"); exit; } if (request_url() == 'http://pharmaxi.uz/ru/') { header('HTTP/1.1 301 Moved Permanently'); header("Location: http://pharmaxi.uz/ru"); exit; } if (isset($_GET['l'])) {$l=htmlspecialchars(strip_tags(trim($_GET['l'])),ENT_QUOTES);} else {$l='ru';} if (isset($_GET['s'])) {$s=htmlspecialchars(strip_tags(trim($_GET['s'])),ENT_QUOTES);} else {$s='';} if (isset($_GET['s_news'])) {$s_news=htmlspecialchars(strip_tags(trim($_GET['s_news'])),ENT_QUOTES);} else {$s_news=0;} if ($l=='ru') {$lang0=""; $lang01='1'; $lang_='ru/';} else {$l='en'; $lang0="2"; $lang01='2'; $lang_='en/'; } $lang_=$URL.$lang_; $query_texts1=mysql_query("SELECT name".$lang0.",head".$lang0.",text".$lang0.",title".$lang0.",description".$lang0.",keywords".$lang0.",id,parent_id FROM `text` WHERE `link` = '$s' and `level` <> '-1' LIMIT 1",$dbcnx); $arr_rez_texts1=array(); while ($rez_texts1=mysql_fetch_array($query_texts1, MYSQL_NUM)) { $arr_rez_texts1[]=$rez_texts1; } $count_texts1=count($arr_rez_texts1); if ($count_texts1==0) { @header("Location: ".$URL."404.php"); } else { $name_texts1=stripslashes($arr_rez_texts1[0][0]); $head_texts1=stripslashes($arr_rez_texts1[0][1]); $text_texts1=text_read($arr_rez_texts1[0][2], $URL); $title_texts1=stripslashes($arr_rez_texts1[0][3]); $description_texts1=stripslashes($arr_rez_texts1[0][4]); $keywords_texts1=stripslashes($arr_rez_texts1[0][5]); $id_texts1=$arr_rez_texts1[0][6]; $parent_texts1=$arr_rez_texts1[0][7]; } if (($s=='news') and ($s_news!='')) { $query_news3=mysql_query("SELECT datetime,header".$lang0.",big".$lang0.",title".$lang0.",description".$lang0.",keywords".$lang0.",id FROM `news` WHERE `link`='$s_news' and `show`='1' LIMIT 1",$dbcnx); $arr_rez_news3=array(); while ($rez_news3=mysql_fetch_array($query_news3, MYSQL_NUM)) { $arr_rez_news3[]=$rez_news3; } $count_news3=count($arr_rez_news3); if ($count_news3!=0) { $datetime_texts1=stripslashes($arr_rez_news3[0][0]); $head_texts1=stripslashes($arr_rez_news3[0][1]); $text_texts1=text_read($arr_rez_news3[0][2], $URL); $title_texts1=stripslashes($arr_rez_news3[0][3]); $description_texts1=stripslashes($arr_rez_news3[0][4]); $keywords_texts1=stripslashes($arr_rez_news3[0][5]); $id_news=stripslashes($arr_rez_articles3[0][6]); $parent_texts1=6; } } $query_opensite=mysql_query("SELECT value FROM `options` WHERE `id`='2' LIMIT 1",$dbcnx); $rez_opensite=mysql_fetch_array($query_opensite, MYSQL_NUM); $opensite=$rez_opensite[0]; $query_ipsite=mysql_query("SELECT value FROM `options` WHERE `id`='5' LIMIT 1",$dbcnx); $rez_ipsite=mysql_fetch_array($query_ipsite, MYSQL_NUM); $ipsite=$rez_ipsite[0]; if (($opensite=='0') and ($ipsite!=$_SERVER['REMOTE_ADDR'])) { ob_start(); header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); header('Retry-After: 10800'); header('X-Powered-By:'); ?>