array( 'index-hetero'=>$config['root'].'sexy-webcam-sexe-porno-[LG].html', 'listing-hetero'=>$config['root'].'sexy-webcam-sexe-[LG]-[N].html', 'profile-hetero'=>$config['root'].'sexy/webcam-sexe-[NAME]-[LG]-[ID].html', 'index-gay'=>$config['root'].'sexy-webcam-sexe-gay-[LG].html', 'listing-gay'=>$config['root'].'sexy-webcam-sexe-gay-[LG]-[N].html', 'profile-gay'=>$config['root'].'sexy/webcam-sexe-gay-[NAME]-[LG]-[ID].html', ), "default"=>array( 'index-hetero'=>$config['root'].'index.php?syn=hetero&lg=[LG]', 'listing-hetero'=>$config['root'].'index.php?syn=hetero&page=listing&n=[N]&lg=[LG]', 'profile-hetero'=>$config['root'].'profile.php?syn=hetero&page=profile&id=[ID]&lg=[LG]', 'index-gay'=>$config['root'].'index.php?syn=gay&lg=[LG]', 'listing-gay'=>$config['root'].'index.php?syn=gay&page=listing&n=[N]&lg=[LG]', 'profile-gay'=>$config['root'].'profile.php?syn=gay&page=profile&id=[ID]&lg=[LG]', ), ); /* Don't modify the next */ $config['lg_list'] = array('fr','en','es','it'); $config['lg_defaut'] = 'fr'; $config['syn_list'] = array('hetero','gay'); $config['syn_defaut'] = 'hetero'; $config['page_list'] = array('index','listing','profile'); $config['page_defaut'] = 'index'; $config['url_live']['hetero'] = "http://www.eurolive.com/index.php"; $config['live_name']['hetero'] = "eurolive"; $config['url_live']['gay'] = "http://www.mykocam.com/index.php"; $config['live_name']['gay'] = "mykocam"; $format_url = ($url_rewriting) ? $shema_url['rewriting'] : $shema_url['default']; $url_flux = "http://www.eurolive.com/index.php?module=public_eurolive_flux_complete&id=".$config['cd_id']."&key=".$config['cd_key']; $url_flux = ($config['buying']) ? $url_flux.="&buying=1" : $url_flux; $url_flux = ($config['cs']) ? $url_flux.="&cs=".$config['cs'] : $url_flux; ?> index = 0; $this->pointer[] = &$this->obj_data; //strip white space between tags $this->xml_data = preg_replace("/>"."[[:space:]]+"."<",$xml_data); $this->xml_parser = xml_parser_create( ); xml_parser_set_option( $this->xml_parser, XML_OPTION_CASE_FOLDING, false ); xml_set_object( $this->xml_parser, $this ); xml_set_element_handler( $this->xml_parser, "_startElement", "_endElement"); xml_set_character_data_handler( $this->xml_parser, "_cData" ); xml_parse( $this->xml_parser, $this->xml_data, true ); xml_parser_free( $this->xml_parser ); } function _startElement( $parser, $tag, $attributeList ) { foreach( $attributeList as $name => $value ) { $value = $this->_cleanString( $value ); $object->$name = $value; } //replaces the special characters with the underscore (_) in tag name $tag = preg_replace("/[:\-\. ]/", "_", $tag); @eval( "\$this->pointer[\$this->index]->" . $tag . "[] = \$object;" ); @eval( "\$size = sizeof( \$this->pointer[\$this->index]->" . $tag . " );" ); @eval( "\$this->pointer[] = &\$this->pointer[\$this->index]->" . $tag . "[\$size-1];" ); $this->index++; } function _endElement( $parser, $tag ) { array_pop( $this->pointer ); $this->index--; } function _cData( $parser, $data ) { if (empty($this->pointer[$this->index])) { if (rtrim($data, "\n")) $this->pointer[$this->index] = $data; } else { $this->pointer[$this->index] .= $data; } } function _cleanString( $string ) { return utf8_decode( trim( $string ) ); } } ?> Set_XML_data( $contents ); if (!isset($xml->obj_data->hostesses[0]->result)) $result=0; else $result=$xml->obj_data->hostesses[0]->result[0]; if ($result==0) $result=1; $nbr_page=ceil($result/$config['max_hostess']); if ($n>$nbr_page) { $n=1; if ($while) parsing_flux($page, $syn, $lg, $n, false); } } function assign_array_hostess($xml) { global $hostess,$page,$config,$status_list,$syn,$lg; $hostess = $status_list = array(); $list = array('online','private','multiprivate','offline'); foreach($list as $s) $hostess[$s] = array(); foreach($xml->obj_data->hostesses[0]->hostess as $info) { if (!$id = $info->id[0]) continue; $s = $info->status[0]; if ($page!="index") $s='all'; // Synergie's update if (isset($info->synergie[0])) $syn=$info->synergie[0]; // Store each data in the array. $hostess[$s][$id]['name'] = $info->name[0]; $hostess[$s][$id]['age'] = $info->age[0]; $hostess[$s][$id]['status'] = $info->status[0]; $hostess[$s][$id]['native'] = $info->native[0]; $hostess[$s][$id]['hair'] = $info->hair[0]; $hostess[$s][$id]['eyes'] = $info->eyes[0]; $hostess[$s][$id]['height'] = $info->height[0]; $hostess[$s][$id]['weight'] = $info->weight[0]; // Many languages : $hostess[$s][$id]['languages']=array(); if (isset($info->languages[0])) { foreach($info->languages[0] as $lang) $hostess[$s][$id]['languages'][]=$lang; } $hostess[$s][$id]['astro'] = ($info->astro[0]) ? $info->astro[0] : 9; $hostess[$s][$id]['secrets'] = nl2br($info->secrets[0]); $hostess[$s][$id]['link_file'] = $info->link_file[0]; $hostess[$s][$id]['calendar_link'] = $info->calendar_link[0]; $hostess[$s][$id]['image_small'] = ($info->image[0]->S[0]=='') ? "http://media.eurolive.com/hote/images/default/small/nopic_$syn.gif" : $info->image[0]->S[0]; $hostess[$s][$id]['image_medium'] = ($info->image[0]->M[0]=='') ? "http://media.eurolive.com/hote/images/default/medium/nopic_$syn.gif" : $info->image[0]->M[0]; $hostess[$s][$id]['image_big'] = ($info->image[0]->B[0]=='') ? "http://media.eurolive.com/hote/images/default/big/nopic_$syn.gif" : $info->image[0]->B[0]; if ($page=="profile") { $fiche=array(); $fiche['bodypics'] = array(); $fiche['nb_pics'] = 0; if (isset($xml->obj_data->hostesses[0]->hostess[0]->bodypics[0]->pic)) { foreach($xml->obj_data->hostesses[0]->hostess[0]->bodypics[0]->pic as $lang) { $x = $fiche['nb_pics']; $fiche['bodypics'][$x]['S'] = $lang->S[0]; $fiche['bodypics'][$x]['B'] = $lang->B[0]; $fiche['nb_pics']++; } } if (isset($xml->obj_data->hostesses[0]->hostess[0]->calendar[0])) { $fiche['calendar'] = $xml->obj_data->hostesses[0]->hostess[0]->calendar[0]; } $likes=array('cuisine','sport','activity','music'); foreach($likes as $el) { $root=$xml->obj_data->hostesses[0]->hostess[0]->likes[0]->$el; $temp[0]=$temp[1]=$temp[2]=$temp[3]=array(); if (isset($root[0]->item)) { foreach($root[0]->item as $item) { $temp[(int)$item->rate[0]][] = array($item->name[0], (int)$item->rate[0]); } } $fiche[$el] = array_merge($temp[0],$temp[1],$temp[2],$temp[3]); } $hostess[$s][$id] = array_merge($hostess[$s][$id],$fiche); } } foreach($list as $s) { if (count($hostess[$s])) $status_list[]=$s; } } // Rewriting's function function new_url($type,$lg,$n=1,$id=0,$name="") { global $format_url; $n = sprintf('%02d',$n); $link = (isset($format_url[$type])) ? $format_url[$type] : $format_url['defaut']; $link = str_replace("[LG]",$lg,$link); $link = str_replace("[N]",$n, $link); $link = str_replace("[ID]",$id,$link); $link = str_replace("[NAME]",$name,$link); return $link; } // Clean text format for URL using : function cleanWordForURL($str, $spaceChar= '') { $str=trim($str); $_str = ''; $i_max = strlen($str); for ($i=0; $i"; } ?>