header("Content-type: text/xml");
define ( 'ATTACK_DEFINE_INCLUDE', true );
include_once 'inc.php';
include_once 'functions.php';
$site_module = module_mysql(1);
$get_lang = ucfirst($_GET['lang']);
$get_lang_cookie = $_COOKIE["cookie_lang"];
if($get_lang=="Az" or $get_lang=="Ru" or $get_lang=="En" or $get_lang=="Tr"){
setcookie("cookie_lang", "$get_lang");
$lang = $get_lang;
}else if($get_lang_cookie=="Az" or $get_lang_cookie=="Ru" or $get_lang_cookie=="En" or $get_lang_cookie=="Tr"){
$lang = $get_lang_cookie;
}else{
$lang = "Az";
}
//$lang = "Az";
$go = $_GET['go'];
$go_strtolower = strtolower($go);
$go_strtolower = trim( totranslit( $go_strtolower, true, false ) );
$lang_url = $go_strtolower;
if($lang_url==''){
$lang_url = 'home';
}
if($lang=="Ru"){
include_once 'Ru.php';
$lang_echo = '
AZERUSENG';
$description = $site_module['module3'];
$lang_json = $site_module['module7'];
}else if($lang=="En"){
include_once 'En.php';
$lang_echo = 'AZERUSENG';
$description = $site_module['module4'];
$lang_json = $site_module['module8'];
}else{
include_once 'Az.php';
$lang_echo = 'AZERUSENG';
$description = $site_module['module2'];
$lang_json = $site_module['module6'];
}
if(empty($lang_json)){
$lang_json_arr = array();
}else{
$lang_json_arr = json_decode($lang_json,true);
}
$lang_get = strtolower($lang);
if($go_strtolower=='sitemap'){
echo '';
echo '
'.$site_url.'sitemap-az.xml
'.date('c').'
';
echo '
'.$site_url.'sitemap-ru.xml
'.date('c').'
';
echo '
'.$site_url.'sitemap-en.xml
'.date('c').'
';
echo '
'.$site_url.'sitemap-tr.xml
'.date('c').'
';
echo '';
}else{
echo '';
$index_menu_sql=@mysql_query("SELECT * FROM `".$prefix."_menu` ORDER BY `pos` ASC");
while($index_menu=@mysql_fetch_array($index_menu_sql))
{
echo '
'.$index_menu['link_'.$lang].'
'.date('c').'
daily
0.9
';
}
$rand_img = array('75a867c61f2691d6cf0c6e822527aee4.jpeg','28f5b4028e0889f33851102f0c88d792.jpeg','0ca56e69d7ff4d33232b0f35b1997f7c.jpeg','3_8LmwzaG.JPG');
$seo_keyword_exp = explode(PHP_EOL,$lang_json_arr['seo_keyword']);
foreach($seo_keyword_exp as $seo_keyword_key => $line){
$line = trim($line);
if($line!=''){
$rand_img_r = rand(0,3);
echo '
'.$site_url.$lang_get.'/'.seo_url($line).'.html
'.date('c').'
daily
0.9
';
}
}
/*
$handle = fopen("seo.tmp", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
$line = trim($line);
echo '
'.$site_url.seo_url_link($line).'.html
'.date('c').'
daily
0.9
';
}
fclose($handle);
} else {
// error opening the file.
}*/
echo '';
}
?>