$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
>