"; $root_element ="menu"; $xml .= "<$root_element>"; error_reporting(0); require '../include/asset.php'; require '../include/Conn.php'; $xml.=" اغاني "; $query = "SELECT Name,ID FROM countries ORDER BY Name ASC limit 12"; $result = mysql_query($query) or die(mysql_error()); $html = ""; while($row=mysql_fetch_assoc($result)){ $text = str_replace(" " , "_",$row['Name']); $link = "http://mp31.alarab.com/{$text}.html"; $html .= "
  • {$row['Name']}
  • "; $xml .= " {$row['Name']} {$link} fa fa-headphones "; //forKOORA BOTTOM //$htmlkoora.="{$fb_competition['ar_name']} "; } //echo $htmlkoora; $xml.="
    "; $xml.=" ابراج "; $query="SELECT Name,ID,sData,keywords FROM `ncategories` WHERE maincat=2269 ORDER BY `ncategories`.`cOrder` ASC"; $result=mysql_query($query) or die(mysql_error()); $i=0; $k=0; while($row=mysql_fetch_assoc($result)){ $title=$row['Name'] ; $url= "http://abraj.alarab.com/".horoscope_link_footer($row['ID'],$row['Name']); $xml .= " برج {$row['Name']} {$url} fa fa-book "; //forKOORA BOTTOM //$htmlkoora.="{$fb_competition['ar_name']} "; } //echo $htmlkoora; $xml.=""; $xml.=" عرب كورة "; $page_query="SELECT region,id,ar_name,name FROM `fb_competition` where news=1 AND region !='International' ORDER BY c_order DESC"; $result=mysql_query($page_query) or die(mysql_error()); while($fb_competition=mysql_fetch_assoc($result)){ $comp_url="http://localhost/league_page_new.php?country=spain&table&leagueid={$fb_competition['id']}"; $comp_url=comp_url($fb_competition['name'],$fb_competition['id']); if($fb_competition['region']=="International"){$fb_competition['region']=$fb_competition['id'];} if($fb_competition['ar_name']=='') {$fb_competition['ar_name']=$fb_competition['name'];} $fb_competition['ar_name']=text_summarise($fb_competition['ar_name'],2); $xml .= " {$fb_competition['ar_name']} {$comp_url} {$img}/images/flags/24/{$fb_competition['region']}.png "; //forKOORA BOTTOM //$htmlkoora.="{$fb_competition['ar_name']} "; } //echo $htmlkoora; $xml.=""; $xml.=" قنوات الاخبار "; $query="SELECT ID,Name FROM ncategories WHERE cDisplay=1 ORDER BY ID ASC "; $result=mysql_query($query) or die(mysql_error()); $i=0; $k=0; while($row=mysql_fetch_assoc($result)){ $xml .= " {$row['Name']} /{$row['ID']}/ fa fa-external-link "; //forKOORA BOTTOM //$htmlkoora.="{$fb_competition['ar_name']} "; } //echo $htmlkoora; $xml.=""; $xml.=" افلام ومسلسلات "; $query = "SELECT ID, sData, Name FROM vcategories where MainCat=0 ORDER by name ASC" ; $result = mysql_query($query); $i=0; while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $xml .= " {$row['Name']} http://tv1.alarab.com/view-{$row['ID']}/".create_tag($row['Name'])." fa fa-television "; //forKOORA BOTTOM //$htmlkoora.="{$fb_competition['ar_name']} "; } //echo $htmlkoora; $xml.=""; $xml.=" بلدات عربية "; $query="SELECT id,erea,data FROM erea ORDER BY corder ASC "; $result=mysql_query($query) or die(mysql_error()); $i=0; $k=0; while($row=mysql_fetch_assoc($result)){ $xml .= " {$row['erea']} /{$row['id']}.html fa fa-map-marker "; //forKOORA BOTTOM //$htmlkoora.="{$fb_competition['ar_name']} "; } //echo $htmlkoora; $xml.=""; $xml .= ""; header('Content-type: application/xml'); echo $xml; function horoscope_link_footer($id,$name){ return "/توقعات_برج_".$name."-".$id.".html"; } mysql_close($conn); $fp = fopen($cachefile, 'w'); // save the contents of output buffer to the file fwrite($fp, ob_get_contents()); // close the file fclose($fp); // Send the output to the browser ob_end_flush(); ?>