English News    Spanish News    French News    Azur News    NeoSkills    Recettes    Les forums   travian tools   
\n"; for ($i = 0; $i < count($arr_xml['URL']); $i++) { if( isset($arr_xml['PostID'][$i]) && $arr_xml['PostID'][$i] > 0 ) continue; echo "
  • ".$arr_xml['BeforeText'][$i]." ".$arr_xml['Text'][$i]." ".$arr_xml['AfterText'][$i]."
  • \n"; } echo ""; } } function tla_updateLocalXML($url, $file, $time_out) { if($handle = fopen($file, "a")){ fwrite($handle, "\n"); fclose($handle); } if($xml = file_get_contents_tla($url, $time_out)) { $xml = substr($xml, strpos($xml,'(.*?)', '"'); $n = 0; while (isset($out[$n])) { $retarr[$out[$n][1]][] = str_replace($search_ar, $replace_ar,html_entity_decode(strip_tags($out[$n][0]))); $n++; } return $retarr; } tla_ads(); ?> //ini_set('include_path', '.:/usr/local/lib'); // require 'openads-xmlrpc.inc.php'; // if (!isset($OA_context)) $OA_context = array(); // $oaXmlRpc = new OA_XmlRpc('openads.ww7.be', '/www/delivery/axmlrpc.php', 0, false, 15); // $adArray = $oaXmlRpc->view('zone:3', 0, '', '', 0, $OA_context); // echo $adArray['html']; ?>