=0; $z--) { if($ru_t[$z]) { $olson = implode("/",$ru_t); $olson = str_replace(".html","",$olson); if(substr($olson,-1)!='/'){ $olson .= "/"; } $fetch_page = mysql_fetch_array(mysql_query("SELECT id FROM srcms_contents WHERE purl_full='".nosql($olson)."' ")); if($fetch_page==true){ $this_page_url = SU.$olson; $pid = $fetch_page[id]; $iluu_value_too = $z; break; } unset($ru_t[$z]); } } $iluu_value_too++; $varname_too = 0; for($h=$iluu_value_too;$h$title\n"; echo "
"; } function btop2($title){ echo "
$title
\n"; echo "
"; } function bbot(){ echo "
\n"; } if($_POST["form_submit_foraaaa"]==1 AND $session_user_id==true){ // zar nemeh heseg $tsag = date("H",phptime()); $minut = date("i",phptime()); $sec = date("s",phptime()); $hasahniit = ($tsag*3600)+($minut*60)+$sec; $onoodorehlel = phptime()-$hasahniit; $allaaaa = mysql_num_rows(mysql_query("SELECT id FROM zar WHERE userid='$session_user_id' AND ognoo > $onoodorehlel ")); if($allaaaa > 2){ $today_limit_error = true; }else{ if($cat1==true AND $title==true AND $zar==true AND $utas==true){ $cat_val = ''; if($_POST["cat1"]==true){ $cat_val .= ":".intval($_POST["cat1"]).":"; $catid=$cat1; } if($_POST["cat2"]==true){ $cat_val .= ":".intval($_POST["cat2"]).":"; $catid=$cat2; } if($_POST["cat3"]==true){ $cat_val .= ":".intval($_POST["cat3"]).":"; $catid=$cat3; } $fetch_cat = mysql_fetch_array(mysql_query("SELECT * FROM cats WHERE id='$catid' ")); for($k=1;$k<=20;$k++){ $adid = "torol".$k; $adid2 = "utga".$k; if($fetch_cat[$adid]==3){ $aaaa = ''; $irsenutga = $$adid2; for($d=0;$d 600 OR $height_orig > 600){ image_create("upload/zuragtom/$new_name", 600, 600, "upload/zuragtom/$new_name" ); } mysql_query("UPDATE zar SET zurag".$qui."='$new_name' WHERE id='$insid' "); // tmp ee ustga @unlink("upload/zar_image_tmp/$listz[image]"); mysql_query("DELETE FROM zar_image_tmp WHERE id='$listz[id]'"); } //while // ontsloh bolgo if($onts_checkleh==true){ $fetch_kodd = mysql_fetch_array(mysql_query("SELECT * FROM sms WHERE sms='".nosql($onts_zar_kod)."' AND shine='1' ")); if($fetch_kodd==true){ $start_time = phptime(); $end_time = $start_time+86400; mysql_query("UPDATE zar SET ontsloh='1', ognoofrom='$start_time', ognooto='$end_time', ontskod='".nosql($onts_zar_kod)."' WHERE id='$insid' "); mysql_query("UPDATE sms SET shine='0' WHERE id='$fetch_kodd[id]' "); } } // ontsloh bolgo END header("Location: ".SU."i/$insid.html?ok=1"); exit(); } // if not empty } // end if($allaaaa > 2){ // zar nemeh heseg END } ?> <? if($custom_title==true){ echo "$custom_title | ";}else{ if($page_title){ echo "$page_title | ";} } echo _site_title; ?>
 
"; echo ""; echo ""; echo ""; echo "
Гишүүн байгууллага"); //Үүсгэх echo '

'; //echo '
'; echo "\n"; if($tom_angilal==true){ $sql_nem_hailt = "WHERE aliangilal LIKE '%:".$tom_angilal.":%' OR aliangilal LIKE '%:all:%'"; }else{ $sql_nem_hailt = "WHERE aliangilal LIKE '%:all:%'"; } $sql = mysql_query("SELECT * FROM baiguullaga ".$sql_nem_hailt." ORDER BY rand() LIMIT 20 "); while($list = mysql_fetch_array($sql)){ $itemlink = SU."business/view.html?id=$list[id]"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } // while echo "
"; echo ""; if($list[logo]){ echo ""; }else{ echo ""; } echo ""; echo ""; echo ""; //$fetch_chiglel = mysql_fetch_array(mysql_query("SELECT title FROM chiglel WHERE id='$list[chiglel]' ")); //echo "
$fetch_chiglel[title]
"; echo "
"; echo "".nl2br($list[comment])." "; echo "
"; echo ""; echo "
"; echo ""; echo "
\n"; //echo '
'; bbot(); /* btop2("Статистик"); //Үүсгэх echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "Онлайн хүмүүс:"; echo ""; $allaa1 = mysql_num_rows(mysql_query("SELECT id FROM online_users ")); echo "$allaa1"; echo "
"; echo "Нийт гишүүд:"; echo ""; $allaa3 = mysql_num_rows(mysql_query("SELECT id FROM users ")); echo "$allaa3"; echo "
"; echo "Нийт зар:"; echo ""; $allaa2 = mysql_num_rows(mysql_query("SELECT id FROM zar ")); echo "$allaa2"; echo "
\n"; bbot(); */ ?>
> "; if($page[content_torol]==1){ echo "$page[body]  "; if($page[id]==5){ include("module/bidniituhai/main.php"); } } if($page[content_torol]==2){ if($page[nemelt1]){ $kk1 = explode('&',$page[nemelt1]); for($h=0;$h"; } // if $page ?>
Бусад"); echo "\n"; if($tom_angilal==true){ $sql_nem_hailt = "WHERE aliangilal LIKE '%:".$tom_angilal.":%' OR aliangilal LIKE '%:all:%'"; }else{ $sql_nem_hailt = "WHERE aliangilal LIKE '%:all:%'"; } $sql = mysql_query("SELECT * FROM srcms_news ".$sql_nem_hailt." ORDER BY id DESC LIMIT 0,5 "); while($list = mysql_fetch_array($sql)){ $item_link = SU."news.html?id=$list[id]"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } // while echo "
"; if($list[image]){ echo ""; } echo ""; echo ""; echo "$list[title]"; echo "
"; echo "$list[comment] Дэлгэрэнгүй"; echo "
"; echo ""; echo "
"; echo ""; echo "
\n"; bbot(); btop("Сурталчилгаа"); //Үүсгэх echo "\n"; $odooognoo = date("Ymd",phptime()); $sql = mysql_query("SELECT * FROM videoads WHERE ognoofrom <= $odooognoo AND ognooto >= $odooognoo ORDER BY rand() LIMIT 2 "); while($fetch_video = mysql_fetch_array($sql)){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } // while // bbot(); echo "
"; echo ""; echo "
"; if($fetch_video[holboos]){ echo "$fetch_video[title]"; }else{ echo "$fetch_video[title]"; } echo "
"; mysql_query("UPDATE videoads SET hits=hits+1 WHERE id='$fetch_video[id]' "); $type = substr($fetch_video[zurag],-3); $hemjeeol = explode("x",$fetch_video[hemjee]); if($type=='jpg' OR $type=='gif' OR $type=='png'){ if($fetch_video[holboos]){ echo ""; } echo ""; if($fetch_video[holboos]){ echo ""; } } if($type=='swf'){ swf(SU."upload/videoads/$fetch_video[zurag]","",$hemjeeol[0],$hemjeeol[1]); } echo "
"; echo ""; echo "
"; echo ""; echo "
\n"; btop("Сурталчилгаа"); //Үүсгэх //echo "
"; if($tom_angilal==true){ $sql_nem_hailt = "AND (angilal LIKE '%:".$tom_angilal.":%' OR angilal LIKE '%:all:%') "; }else{ $sql_nem_hailt = "AND angilal LIKE '%:all:%'"; } $odooognoo = date("Ymd",phptime()); $sql = mysql_query("SELECT * FROM banner WHERE ognoofrom <= $odooognoo AND ognooto >= $odooognoo ".$sql_nem_hailt." ORDER BY rand() LIMIT 6 "); while($list = mysql_fetch_array($sql)){ mysql_query("UPDATE banner SET hits=hits+1 WHERE id='$list[id]' "); if($list[holboos]){ $linkn = "".SU."banner.click.php?id=$list[id]\" target=\"_blank"; }else{ $linkn = "#"; } if($list[zurag]){ $zuragu2 = SU."upload/banner/$list[zurag]"; }else{ $zuragu2 = IMG."nophoto.jpg"; } echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "".$list[title].""; echo "
"; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo "
"; echo ""; echo ""; echo "$list[tailbar]"; echo "
\n"; echo "
"; echo ""; echo "
"; echo ""; echo "
\n"; } // while // echo "
"; bbot(); echo "
"; ///////////// echo "
Copyright © 2013 ZarMedee.mn
"; echo "
"; $too=0; $sql = mysql_query("SELECT * FROM srcms_contents WHERE lang='$lang' AND cat='4' AND publish='1' ORDER BY list_order ASC "); $num = mysql_num_rows($sql); while($list = mysql_fetch_array($sql)){ $too++; if($list[content_torol]==3){ $a_link = "$list[holboos_url]"; }else{ $a_link = SU."$list[purl_full]"; } echo "$list[title]"; if($too!=$num AND $too!=3){ echo " · "; } if($too==3){ echo "
"; } } // while echo "
"; ?>
\n"; echo "
"; $sql = mysql_query("SELECT * FROM srcms_contents WHERE lang='$lang' AND cat='4' AND publish='1' ORDER BY list_order ASC "); while($list = mysql_fetch_array($sql)){ if($list[content_torol]==3){ $a_link = "$list[holboos_url]"; }else{ $a_link = SU."$list[purl_full]"; } echo "$list[title]"; } // while echo"
"; echo _site_footer_txt; echo " Вэбийг ҮҮПС ХХК"; echo "
"; echo "
"; echo ""; echo ""; echo "
\n"; ?>
"; echo "
"; echo "
"; echo "
"; echo "..."; echo "
"; echo "
"; echo "
"; echo ""; echo ""; ?>