isMobile() ) { if($_GET['desktop']==1 or (empty($_GET['desktop']) and !isset($_SESSION['desktop']))){ $_SESSION['desktop'] = 2; }elseif($_GET['desktop']==2){ $_SESSION['desktop'] = 1; } } ?> <? if(isset($_GET['page'])){ switch ($page){ default: $respa=mysql_query("select link_name from pages where id='".$page."'"); $rowpa=mysql_fetch_array($respa); echo $rowpa['link_name']." - ". $row_setting['title']; break; case countrypage: $respa=mysql_query("select link_name from pages where id='".$id."'"); $rowpa=mysql_fetch_array($respa); echo $rowpa['link_name']." - ". $row_setting['title']; break; case article: $res_books_tit=mysql_query("select link_name from `pages` where id='".$id."'"); $row_books_tit=mysql_fetch_array($res_books_tit); if(mysql_num_rows($res_books_tit)<>0){ echo $row_books_tit['link_name']." - ". $row_setting['title']; }else{ $res_books_tit_archv = mysql_query("select * from `archive` where id='".$id."'"); $row_books_tit_archv = mysql_fetch_array($res_books_tit_archv); echo $row_books_tit_archv['link_name']." - ". $row_setting['title']; } break; case allarticle: if($id=='6'){ echo $granews." - ". $row_setting['title']; }else{ $res_books_tit=mysql_query("select title from `pages` where id='".$id."'"); $row_books_tit=mysql_fetch_array($res_books_tit); echo $row_books_tit['title']." - ". $row_setting['title']; } break; case archive: $res_books_tit=mysql_query("select title from `pages` where id='".$id."'"); $row_books_tit=mysql_fetch_array($res_books_tit); echo "أرشيف قسم ".$row_books_tit['title']." - ". $row_setting['title']; break; case search: echo "بحث عن ".$_GET['keyword']." - ". $row_setting['title']; break; } }else{ echo $row_setting['title']; } ?> '."\r\n"; echo ''."\r\n"; echo ''."\r\n"; $res_books_tit=mysql_query("select `link_name` from `pages` where id='".$id."'"); $row_books_tit=mysql_fetch_array($res_books_tit); echo ''."\r\n"; $article_url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo ''."\r\n"; echo ''."\r\n"; break; case article: $res_books_tit=mysql_query("select `link_name`, `text`, `img` from `pages` where id='".$id."'"); $row_books_tit=mysql_fetch_array($res_books_tit); echo ''."\r\n"; echo ''."\r\n"; $article_url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; break; case allarticle: $article_url1 = $_SERVER['HTTP_HOST']; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; $res_books_tit=mysql_query("select `link_name` from `pages` where id='".$id."'"); $row_books_tit=mysql_fetch_array($res_books_tit); echo ''."\r\n"; $article_url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo ''."\r\n"; echo ''."\r\n"; break; } }else{ $article_url = $_SERVER['HTTP_HOST']; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; echo ''."\r\n"; } ?>
'; include 'templates/most.php'; include 'templates/commentest.php'; echo '
'; } ?>