2)?implode('.',array_slice($domain0,-2)):$domain; $domainM = 'blogsazan.com'; $doma=mysql_query("select * from domains where dmm='$domain' AND status='1' AND dmm<>'blogsazan.com' AND dmm<>'mizanblog.com'"); $qdomaina=mysql_fetch_array($doma); //print_r($qdomaina); if($qdomaina['weblog']){ $s=$qdomaina['weblog']; $jafar_92="PARS20_92"; include_once("user.php"); exit; }else{ $domain01 = implode('.',$domain0); //echo "$domain01 = $domain"; if($domain01!==$domain){//go to main domain WEBLOG $s = implode('.',array_slice($domain0,0,-2)).".$domain"; $jafar_92="PARS20_92"; include_once("user.php"); exit; }else{ $rs0=$_SERVER['REQUEST_URI']; if(substr($rs0,0,11)=='/lawyer.php'){ $main_title_2 = "جستجوی وکیل"; $main_keys_2 = "وکیل,وکالت,مشاوره حقوقی,دفتر وکیل,دفتر وکالت,وکیل حقوقی,وکیل دادگاه,جستجوی وکیل"; $main_desc_2 = "جستجوی وکیل و مشاوره حقوقی"; $main_head_2 = ''; include_once("includes/wprofilelist.php"); exit; } } //go to main domain INDEX $mdm0=mysql_fetch_array(mysql_query("SELECT * FROM mdomains WHERE dmm='$domain'")); if($mdm0['id']){ echo $mdm0['ihtml']; exit; } } mysql_free_result($doma); /* mysql_select_db("blogsaz_parsbistmizan") or die(mysql_error()); $counters_folder = 'counters'; $bposts_folder = 'bposts'; $domainM = 'mizanblog.com'; $doma=mysql_query("select * from domains where dmm='$domain' AND status='1' AND dmm<>'blogsazan.com' AND dmm<>'mizanblog.com'"); $qdomaina=mysql_fetch_array($doma); //print_r($qdomaina); if($qdomaina['weblog']){ $s=$qdomaina['weblog']; $jafar_92="PARS20_92"; include_once("user.php"); exit; } } mysql_free_result($doma); */ exit("

under construction!

"); } if (!function_exists('utf8_substr')) { function utf8_substr($str,$from,$len){ return preg_replace('#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$from.'}'. '((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$len.'}).*#s','$1',$str); } } $qcba=mysql_query("select * from config where id='1'"); $qcb=mysql_fetch_array($qcba); mysql_free_result($qcba); //exit(); ?> <?=($main_title_2)?"$main_title_2":$qcb['stitle']?> "> ">