'; $url = "http://xml.cam-content.com/CamsInfo.aspx?SystemID=".$cam_content_system_id."&GirlInfo=True&Encoding=utf8"; $ch = curl_init(); $agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; {9B351FDA-2DD3-4BE7-85BB-5E16C196895E}; SV1)"; curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_POST, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch,CURLOPT_USERAGENT, $agent); $ed = curl_exec($ch); curl_close ($ch); $file = fopen($root.'cache/online_girls.xml',"w"); fwrite($file,$ed); fclose($file); }else{ //echo 'XML FILE vorhanden, checke Alter der Datei...
'; if( time() - filemtime($root.'cache/online_girls.xml') >= $online_cache){ //echo 'XML FILE ist zu alt, versuche neue Version zu laden...
'; $url = "http://xml.cam-content.com/CamsInfo.aspx?SystemID=".$cam_content_system_id."&GirlInfo=True&Encoding=utf8"; $ch = curl_init(); $agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; {9B351FDA-2DD3-4BE7-85BB-5E16C196895E}; SV1)"; curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_POST, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch,CURLOPT_USERAGENT, $agent); $ed = curl_exec($ch); curl_close ($ch); $file = fopen($root.'cache/online_girls_temp.xml',"w"); fwrite($file,$ed); fclose($file); //echo 'Datei wurde neu geladen mit ('.filesize($root.'cache/all_girls.xml').'Byte)...
'; if( filesize($root.'cache/online_girls_temp.xml') < 500000 ){ //echo 'Die Datei ist möglicherweise fehlerhaft da sie zu klein erscheint...
'; }ELSE{ copy($root.'cache/online_girls_temp.xml',$root.'cache/online_girls.xml'); } } } if(!$iurl) $iurl = '1'; if($iurl > 2) $iurl = '1'; if(!$producer_start) $producer_start = 0; if (!($fp=@fopen($root.'cache/online_girls.xml', "r"))) die ("OOuuupppsssss... leider ist der Versuch die live Daten zu verarbeiten gescheitert."); $usercount=0; $userdata=array(); $state=''; if (!($xml_parser = xml_parser_create('iso-8859-1'))) die("Couldn't create parser."); function startElementHandler ($parser,$name,$attrib){ global $usercount; global $userdata; global $state; switch ($name) { case $name=="CHATROOM" : { break; } default : {$state=$name;break;} } } function endElementHandler ($parser,$name){ global $usercount; global $userdata; global $state; $state=''; if($name=="CHATROOM") {$abs = TRUE;$usercount++;} } function characterDataHandler ($parser, $data) { global $usercount; global $userdata; global $state; global $iurl; global $ADR; $abs = FALSE; if (!$state) {return;} if ($state=="BASELINK") { if(!$abs){ $userdata[$usercount]["ProducerURL"] .= $data; }else{ $userdata[$usercount]["ProducerURL"] = $data; } } if($iurl=='1'){ if ($state=="STECKBRIEFIMAGE1URL") { $userdata[$usercount]["ImageURL"] = $data;} } if($iurl=='2'){ if ($state=="STECKBRIEFIMAGE2URL") { $userdata[$usercount]["ImageURL"] = $data;} } if ($state=="CURRENTPRODUCER") { $userdata[$usercount]["CurrentProducer"] = $data;} if ($state=="PRODUCERVCARDFORANYONE") { $userdata[$usercount]["ProducerVCard"] = $data;} if ($state=="LANGUAGEGERMAN") { $userdata[$usercount]["Sp_german"] = $data;} if ($state=="LIVEGIRLAGE") { $userdata[$usercount]["Producer_Age"] = $data;} if ($state=="DILDOCONTROL") { $userdata[$usercount]["Producer_Dildo"] = $data;} if ($state=="STECKBRIEFTEXT") {$userdata[$usercount]["Producer_Steckbrief"] = $data;} } xml_set_element_handler($xml_parser,"startElementHandler","endElementHandler"); xml_set_character_data_handler( $xml_parser, "characterDataHandler"); while( $data = fread($fp, 4096)){ if(!xml_parse($xml_parser, $data, feof($fp))) { break;}} xml_parser_free($xml_parser); $x = 1; $nx = FALSE; $ii=0; $c = 1; $german = FALSE; $dildo = FALSE; $arr_items = count($ansprache); while($ii < $show_max_producer){ if($i > $producer_start){ $anspr = rand(0, $arr_items-1); $pr_name = str_replace("+", " und ",$userdata[$i]["CurrentProducer"]); if(strlen($pr_name) > 25){ $pr_name = substr($pr_name, 0, 22); $pr_name = $pr_name.'...'; } //echo ''.$pr_name.'

'; $output .= ''; $ii++; $c++; $x++; } $i++; } ///prepare combo box content $my_combo = ''; $my_combo .= $output; ?> <?php echo $page_title; ?>