$value) { list($type, $id) = split('=', $value); $links[$type]=$id; } return map($links['type'],$links['content_id'],$db_link); } function map($type,$content_id,$db_link){ if (empty($type)) {$word='Baş səhifə';} if (($type==view_news)or($type==news)){$word='Xəbərlər';} if ($type==contact) {$word='Məktub göndər';} if ($type==sesverme) {$word='Sorğular';} if ($type==ses_all) {$word='Digər sorğuların nəticələr';} if ($type==links) {$word='Rəsmi internet informasiya resursları';} if ($type==multimedia) {$word='Multimedia';} if ($type==faq) {$word='Sual-cavab';} if ($type==archive) {$word='Arxiv';} if ($type==search) {$word='Axtarış';} if ($type==content) {$word=@mysql_result(mysql_query("SELECT name_az FROM category where id='$content_id'",$db_link), 0, 0);} if ($type==content_sol) {$word=@mysql_result(mysql_query("SELECT name_az FROM category_sol where id='$content_id'",$db_link), 0, 0);} if (empty($word)) {$word='Baş səhifə';} return $word; } function open_ip($ip){ $array = array(1 => '192.168.10.135', 2 => '160.10.0.8', 3 => '192.168.10.32', 4 => '192.168.10.100', 5 => '127.0.0.1', 6=>'160.10.0.6'); $ip1=array_search($ip, $array); if (empty($ip1)) die("olmaz"); } function os($report){ if(strstr($report,"NT 5.1")) $os = "Windows XP"; if(strstr($report,"NT 5.0")) $os = "Windows 2000"; if(strstr($report,"NT 5.2")) $os = "Windows 2003"; if(strstr($report,"NT 6.0")) $os = "Windows Vista"; if(strstr($report,"NT 6.1")) $os = "Windows 7"; if(strstr($report,"Linux")) $os = "Linux"; if(strstr($report,"Macintosh")) $os = "Macintosh"; if(empty($os)) $os="Naməlum"; return $os; } function browser($report){ if(strstr($report,"Chrome")) $browser = "Chrome"; elseif(strstr($report,"MSIE 5.0")) $browser = "Internet explorer v5.0"; elseif(strstr($report,"MSIE 5.5")) $browser = "Internet explorer v5.5"; elseif(strstr($report,"MSIE 6.0")) $browser = "Internet explorer v6.0"; elseif(strstr($report,"MSIE 7.0")) $browser = "Internet explorer v7.0"; elseif(strstr($report,"MSIE 8.0")) $browser = "Internet explorer v8.0"; elseif(strstr($report,"MSIE 9.0")) $browser = "Internet explorer v9.0"; elseif(strstr($report,"Mozilla")) $browser = "Mozilla"; elseif(strstr($report,"Opera")) $browser = "Opera"; elseif(strstr($report,"Netscape")) $browser = "Netscape"; elseif(strstr($report,"Firefox")) $browser = "Firefox"; elseif(strstr($report,"Konqueror")) $browser = "Konqueror"; elseif(strstr($report,"Maxthon")) $browser = "Maxthon"; elseif(strstr($report,"Safari")) $browser = "Safari"; elseif(empty($browser)) $browser="Naməlum"; return $browser; } function aylar($mon){ if($mon=="01"){return "Yanvar";} if($mon=="02"){return "Fevral";} if($mon=="03"){return "Mart";} if($mon=="04"){return "Aprel";} if($mon=="05"){return "May";} if($mon=="06"){return "İyun";} if($mon=="07"){return "İyul";} if($mon=="08"){return "Avqust";} if($mon=="09"){return "Sentyabr";} if($mon=="10"){return "Oktyabr";} if($mon=="11"){return "Noyabr";} if($mon=="12"){return "Dekabr";} } function hefteler($dn){ if($dn=="Mon"){return "Bazar ertəsi";} if($dn=="Tue"){return "Çərşənbə axşamı";} if($dn=="Wed"){return "Çərşənbə";} if($dn=="Thu"){return "Cümə axşamı";} if($dn=="Fri"){return "Cümə";} if($dn=="Sat"){return "Şənbə";} if($dn=="Sun"){return "Bazar";} } function Conv_Date($tarix){ list($tarix, $saat) = split(" ", $tarix); list($year, $month, $day) = split("-", $tarix); // date("d aylar(m) Y",mktime(0, 0, 0, $month, $day ,$year)); if($saat=='00:00:00') return $day.' '.aylar($month).' '.$year; elseif($saat) return $day.' '.aylar($month).' '.$year.' '.$saat; else return $day.' '.aylar($month).' '.$year; } if ($lang==az){ } if ($lang==ru){ } ?>'; if ($com_text) print ''.$com_text.'
'; print 'Sizin şərhiniz...'; print '
'; print ''; print 'Ad: E-mail:'; print '
'; print 'Mətn:
'; print '
'; print ''; print '
'; $query1 = "SELECT * FROM comment where cid='$id' and lang='$lang' and status=1 order by id DESC"; $result1 = mysql_query ($query1) or die("mysql_query failed with: ".mysql_errno().' '.mysql_error()); while ($line = mysql_fetch_array($result1)){ $nomre = $line["id"]; $kicxeb = stripslashes($line["text"]); $basliq = stripslashes($line["mail"].' '.$line["name"]); $tarix = $line["tarix"]; $saat = $line["saat"]; list($year, $month, $day) = split("-", $line["tarix"]); $tarix=date("d.m.Y",mktime(0, 0, 0, $month, $day ,$year)); print "

$basliq | $tarix | $saat
$kicxeb

"; } @mysql_free_result($result1); print "   "; } function photos($page){ //print "
Fotoqalereya
"; //if($seh) {$seh2=$seh; $seh=$seh*30; $seh1=$seh-30;} else { $seh2=1; $seh=30; $seh1=$seh-30;} print "
\n"; //$count =@mysql_result(mysql_query ("SELECT count(id) FROM `photos` WHERE m_id='$page' order by id asc"), 0, 0); //$v_say=ceil($count/30); //$i=0; print'
'; $query = "SELECT * FROM `photos` WHERE m_id='$page' order by id asc"; //$query = "SELECT * FROM `photos` WHERE m_id='$page' order by id asc limit $seh1,30"; $result = mysql_query ($query) or die("mysql_query failed with: ".mysql_errno().' '.mysql_error()); while ($line = mysql_fetch_array($result)){ $id = $line["id"]; $file = $line["file"]; $name = stripslashes($line["name"]); print "  \n"; } @mysql_free_result($result1); print "
"; /* print ""; print "
"; if ($v_say>1){ print "
\n"; for ($i = 1; $i <= $v_say; $i++) { if ($i==$seh2) $cla="style='font-weight: bold;font-size: 11pt;color: #000080;text-decoration: none;'"; else $cla="style='font-size: 11pt; color: black;'"; print "$i "; } print "
\n"; } print "
"; */ print "
\n"; } function anonslar(){ global $lang; print ""; $query = "SELECT id,name,cpu,anons_date FROM page WHERE lang='$lang' AND display='yes' AND anons='1' ORDER BY anons_date desc limit 0,15"; $result = mysql_query ($query) or die("mysql_query failed with: ".mysql_errno().' '.mysql_error()); while ($line = mysql_fetch_array($result)){ $ust_id = substr($line["id"], 0, -3); $ust_title=stripslashes(@mysql_result(mysql_query ("SELECT name FROM `page` WHERE lang='$lang' and id='$ust_id' "), 0, 0)); $nomre = $line["cpu"]; $basliq = stripslashes($line["name"]); list($tarix, $saat) = split(" ", $line["anons_date"]); $i++; if($i==1)print ""; if(($lang=='ar') or ($lang=='he') or ($lang=='ur') or ($lang=='pe') ) print ""; if($i==3) {print ""; $i=0;} } @mysql_free_result($result); print '
"; else print ""; print "
$ust_title
$tarix
$basliq
'; } ?> document.location='/$lang/index.html';"; exit; } } ?> Welcome to Heydar Aliyevs Heritage Research Center
>

>


".$lnn['ocerk']." | "; } if(!empty($com[2])) { print "".$lnn['umumitarixiarays']." | "; } if(!empty($com[1])) { print "".$lnn['tarixiarayis']." | "; } if(!empty($com[3])) { print "".$lnn['melumatsoraq']." | "; } if(!empty($com[7])) { print "".$lnn['portretler']." | "; } if(!empty($com[4])) { print "".$lnn['xeriteveqrafikler']." | "; } if(!empty($com[5])) { print "".$lnn['elavesenedler'].""; } print "

"; */ if ($q != ''){ $result = mysql_query("SELECT cpu,name,content FROM page WHERE content LIKE '%${q}%' AND lang='$lang'"); if(mysql_num_rows($result)==0) { print "No results"; } while (list($cpu, $name, $content) = mysql_fetch_row($result)) { $content = strip_tags($content); $content = substr($content, 0, 190); print "- ".stripslashes($content)."

\n"; } print "

"; } //print $pageid[3]; if ($q == '') { if ($whyerr[4]=='photos'){ photos($whyerr[0]); } else { if($img_yes_1){ if ($img_yes_2) include "imgslide.php"; else print "
"; //print "


"; } print "
".stripslashes($whyerr[3])."
"; if($page=='index'){ /* print "

".$lnn['anonslar']."

"; */ /*echo "

".$lnn['anonslar']."
";*/ // anonslar(); } if($page!='index'){ print "
"; if($com[6]) print "

".$lnn['ocerk']."

".$com[6].""; if($com[2]) print "

".$lnn['umumitarixiarays']."

".$com[2].""; if($com[1]) print "

".$lnn['tarixiarayis']."

".$com[1].""; if($com[3]) print "

".$lnn['melumatsoraq']."

".$com[3].""; if($com[4]) print "

".$lnn['xeriteveqrafikler']."

".$com[4].""; if($com[7]) print "

".$lnn['portretler']."

".$com[7].""; if($com[5]) print "

".$lnn['elavesenedler']."

".$com[5].""; print "

"; /* print "
"; */ //

print version"; //print "

to the beginning"; //comment($_GET['page'],$_GET['lang'],$com_text); } } } } else { if ($q != ''){ $result = mysql_query("SELECT cpu,name,content FROM page WHERE content LIKE '%${q}%' AND lang='$lang'"); if(mysql_num_rows($result)==0) { print "No results"; } while (list($cpu, $name, $content) = mysql_fetch_row($result)) { $content = strip_tags($content); $content = substr($content, 0, 190); print "- ".stripslashes($content)."

\n"; } print "

"; } /* nenujno *//* nenujno *//* nenujno *//* nenujno *//* nenujno *//* nenujno */ $com = mysql_fetch_row(mysql_query("SELECT id,l1,l2,l3,l4,l5,l6,l7 FROM addon WHERE id='$pageid[0]' AND lang='$lang'")); function hlp($sttr) { global $lang; $qu = mysql_query("SELECT content FROM page WHERE cpu='".substr($sttr, 4, -5)."' AND lang='$lang'"); $titlez = mysql_fetch_row($qu); if(!empty($titlez[0])) { //print strip_tags(substr($titlez[0], 0, 60))."..."; } } /*if(!empty($com[6]) && $com[6] != " " && $com[6] != " " && $com[6] != " " && $com[6] != " " && $com[6] != " " && $com[6] != " " && $com[6] != " " && $com[6] != " ") { print "".$lnn['ocerk']." | "; } if(!empty($com[2])) { print "".$lnn['umumitarixiarays']." | "; } if(!empty($com[1])) { print "".$lnn['tarixiarayis']." | "; } if(!empty($com[3])) { print "".$lnn['melumatsoraq']." | "; } if(!empty($com[7])) { print "".$lnn['portretler']." | "; } if(!empty($com[4])) { print "".$lnn['xeriteveqrafikler']." | "; } if(!empty($com[5])) { print "".$lnn['elavesenedler'].""; } */ /* nenujno *//* nenujno *//* nenujno *//* nenujno *//* nenujno *//* nenujno */ //print "

"; //print "
$try[0] - $try[1] - $try[2]
"; if ($q == '') { if(($lang=='ar') or ($lang=='he') or ($lang=='ur') or ($lang=='pe') ) echo '
'; else echo '
'; while($arrs = mysql_fetch_array($check)) { $img_yes1=@mysql_result(mysql_query("SELECT l1 FROM images WHERE id='".$arrs[0]."'"),0,0); if ($img_yes1) print ""; else print ""; if ($arrs[4]==1) print" "; print stripslashes($arrs[1]); //mysql_result(mysql_query("SELECT img1 FROM page WHERE cpu='".$arrs[2]."' AND lang='$lang'"),0,0); if ($img_yes1) print" "; print "
"; //print "

"; } /* if ($say1>=2) { for ($i = 1; $i <= $say1; $i++) { echo "$i "; } } print "
"; */ if(($lang=='ar') or ($lang=='he') or ($lang=='ur') or ($lang=='pe') ) print "
"; else print "
"; if($com[6]) print "

".$lnn['ocerk']."

".$com[6].""; if($com[2]) print "

".$lnn['umumitarixiarays']."

".$com[2].""; if($com[1]) print "

".$lnn['tarixiarayis']."

".$com[1].""; if($com[3]) print "

".$lnn['melumatsoraq']."

".$com[3].""; if($com[7]) print "

".$lnn['portretler']."

".$com[7].""; if($com[4]) print "

".$lnn['xeriteveqrafikler']."

".$com[4].""; if($com[5]) print "

".$lnn['elavesenedler']."

".$com[5].""; print "
"; /* print "
";*/ } } @mysql_free_result($check); @mysql_free_result($qu); @mysql_free_result($result); @mysql_free_result($whyerr); mysql_close($db_link); ?>