<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
}
td {
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
}
#xmlsearch {
background:#A0DF45 none repeat scroll 0 0;
border:medium none;
color:#FFFFFF;
margin-top:15px;
margin-bottom:10px;
padding:2px 10px 5px 10px;
text-transform:uppercase;
font-size:16px;
font-weight:bold;
}
</style>
<form id="form1" name="form1" method="post" action="<?php echo $PHP_SELF;?>">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="90">Gender :</td>
<td><select name="sexe" id="sexe" style="width:180px;">
<option value="0" <?php if ($_POST['sexe'] == 0) { ?> selected="selected" <?php } ?>>Women</option>
<option value="1" <?php if ($_POST['sexe'] == 1) { ?> selected="selected" <?php } ?>>Men</option>
</select></td>
</tr>
<tr>
<td>Country :</td>
<td><select name="pays" id="pays" style="width:180px;">
<option value="US" <?php if ($_POST['pays'] == "US") { ?> selected="selected" <?php } ?>>United States</option>
<option value="GB" <?php if ($_POST['pays'] == "UK") { ?> selected="selected" <?php } ?>>United Kingdom</option>
<option value="IT" <?php if ($_POST['pays'] == "IT") { ?> selected="selected" <?php } ?>>Italy</option>
<option value="PT" <?php if ($_POST['pays'] == "PT") { ?> selected="selected" <?php } ?>>Portugal</option>
<option value="ES" <?php if ($_POST['pays'] == "ES") { ?> selected="selected" <?php } ?>>Spain</option>
<option value="FR" <?php if ($_POST['pays'] == "FR") { ?> selected="selected" <?php } ?>>France</option>
<option value="BE" <?php if ($_POST['pays'] == "BE") { ?> selected="selected" <?php } ?>>Belgium</option>
<option value="CH" <?php if ($_POST['pays'] == "CH") { ?> selected="selected" <?php } ?>>Switzerland</option>
</select></td>
</tr>
<tr>
<td>Dating type :</td>
<td><select name="section" id="section" style="width:180px;">
<option value="0" <?php if ($_POST['section'] == 0) { ?> selected="selected" <?php } ?>>Love</option>
<option value="1" <?php if ($_POST['section'] == 1) { ?> selected="selected" <?php } ?>>Sexy</option>
<option value="2" <?php if ($_POST['section'] == 2) { ?> selected="selected" <?php } ?>>Gay</option>
</select></td>
</tr>
<tr>
<td>Age :</td>
<td>Between
<select size="1" name="agemin">
<option value="18" <?php if ($_POST['agemin'] == "18") { ?> selected="selected" <?php } ?>>18</option>
<option value="19" <?php if ($_POST['agemin'] == "19") { ?> selected="selected" <?php } ?>>19</option>
<option value="20" <?php if ($_POST['agemin'] == "20") { ?> selected="selected" <?php } ?>>20</option>
<option value="21" <?php if ($_POST['agemin'] == "21") { ?> selected="selected" <?php } ?>>21</option>
<option value="22" <?php if ($_POST['agemin'] == "22") { ?> selected="selected" <?php } ?>>22</option>
<option value="23" <?php if ($_POST['agemin'] == "23") { ?> selected="selected" <?php } ?>>23</option>
<option value="24" <?php if ($_POST['agemin'] == "24") { ?> selected="selected" <?php } ?>>24</option>
<option value="25" <?php if ($_POST['agemin'] == "25") { ?> selected="selected" <?php } ?>>25</option>
<option value="26" <?php if ($_POST['agemin'] == "26") { ?> selected="selected" <?php } ?>>26</option>
<option value="27" <?php if ($_POST['agemin'] == "27") { ?> selected="selected" <?php } ?>>27</option>
<option value="28" <?php if ($_POST['agemin'] == "28") { ?> selected="selected" <?php } ?>>28</option>
<option value="29" <?php if ($_POST['agemin'] == "29") { ?> selected="selected" <?php } ?>>29</option>
<option value="30" <?php if ($_POST['agemin'] == "30") { ?> selected="selected" <?php } ?>>30</option>
<option value="31" <?php if ($_POST['agemin'] == "31") { ?> selected="selected" <?php } ?>>31</option>
<option value="32" <?php if ($_POST['agemin'] == "32") { ?> selected="selected" <?php } ?>>32</option>
<option value="33" <?php if ($_POST['agemin'] == "33") { ?> selected="selected" <?php } ?>>33</option>
<option value="34" <?php if ($_POST['agemin'] == "34") { ?> selected="selected" <?php } ?>>34</option>
<option value="35" <?php if ($_POST['agemin'] == "35") { ?> selected="selected" <?php } ?>>35</option>
<option value="36" <?php if ($_POST['agemin'] == "36") { ?> selected="selected" <?php } ?>>36</option>
<option value="37" <?php if ($_POST['agemin'] == "37") { ?> selected="selected" <?php } ?>>37</option>
<option value="38" <?php if ($_POST['agemin'] == "38") { ?> selected="selected" <?php } ?>>38</option>
<option value="39" <?php if ($_POST['agemin'] == "39") { ?> selected="selected" <?php } ?>>39</option>
<option value="40" <?php if ($_POST['agemin'] == "40") { ?> selected="selected" <?php } ?>>40</option>
<option value="41" <?php if ($_POST['agemin'] == "41") { ?> selected="selected" <?php } ?>>41</option>
<option value="42" <?php if ($_POST['agemin'] == "42") { ?> selected="selected" <?php } ?>>42</option>
<option value="43" <?php if ($_POST['agemin'] == "43") { ?> selected="selected" <?php } ?>>43</option>
<option value="44" <?php if ($_POST['agemin'] == "44") { ?> selected="selected" <?php } ?>>44</option>
<option value="45" <?php if ($_POST['agemin'] == "45") { ?> selected="selected" <?php } ?>>45</option>
<option value="46" <?php if ($_POST['agemin'] == "46") { ?> selected="selected" <?php } ?>>46</option>
<option value="47" <?php if ($_POST['agemin'] == "47") { ?> selected="selected" <?php } ?>>47</option>
<option value="48" <?php if ($_POST['agemin'] == "48") { ?> selected="selected" <?php } ?>>48</option>
<option value="49" <?php if ($_POST['agemin'] == "49") { ?> selected="selected" <?php } ?>>49</option>
<option value="50" <?php if ($_POST['agemin'] == "50") { ?> selected="selected" <?php } ?>>50</option>
<option value="51" <?php if ($_POST['agemin'] == "51") { ?> selected="selected" <?php } ?>>51</option>
<option value="52" <?php if ($_POST['agemin'] == "52") { ?> selected="selected" <?php } ?>>52</option>
<option value="53" <?php if ($_POST['agemin'] == "53") { ?> selected="selected" <?php } ?>>53</option>
<option value="54" <?php if ($_POST['agemin'] == "54") { ?> selected="selected" <?php } ?>>54</option>
<option value="55" <?php if ($_POST['agemin'] == "55") { ?> selected="selected" <?php } ?>>55</option>
<option value="56" <?php if ($_POST['agemin'] == "56") { ?> selected="selected" <?php } ?>>56</option>
<option value="57" <?php if ($_POST['agemin'] == "57") { ?> selected="selected" <?php } ?>>57</option>
<option value="58" <?php if ($_POST['agemin'] == "58") { ?> selected="selected" <?php } ?>>58</option>
<option value="59" <?php if ($_POST['agemin'] == "59") { ?> selected="selected" <?php } ?>>59</option>
<option value="60" <?php if ($_POST['agemin'] == "60") { ?> selected="selected" <?php } ?>>60</option>
<option value="61" <?php if ($_POST['agemin'] == "61") { ?> selected="selected" <?php } ?>>61</option>
<option value="62" <?php if ($_POST['agemin'] == "62") { ?> selected="selected" <?php } ?>>62</option>
<option value="63" <?php if ($_POST['agemin'] == "63") { ?> selected="selected" <?php } ?>>63</option>
<option value="64" <?php if ($_POST['agemin'] == "64") { ?> selected="selected" <?php } ?>>64</option>
<option value="65" <?php if ($_POST['agemin'] == "65") { ?> selected="selected" <?php } ?>>65</option>
<option value="66" <?php if ($_POST['agemin'] == "66") { ?> selected="selected" <?php } ?>>66</option>
<option value="67" <?php if ($_POST['agemin'] == "67") { ?> selected="selected" <?php } ?>>67</option>
<option value="68" <?php if ($_POST['agemin'] == "68") { ?> selected="selected" <?php } ?>>68</option>
<option value="69" <?php if ($_POST['agemin'] == "69") { ?> selected="selected" <?php } ?>>69</option>
<option value="70" <?php if ($_POST['agemin'] == "70") { ?> selected="selected" <?php } ?>>70</option>
<option value="71" <?php if ($_POST['agemin'] == "71") { ?> selected="selected" <?php } ?>>71</option>
<option value="72" <?php if ($_POST['agemin'] == "72") { ?> selected="selected" <?php } ?>>72</option>
<option value="73" <?php if ($_POST['agemin'] == "73") { ?> selected="selected" <?php } ?>>73</option>
<option value="74" <?php if ($_POST['agemin'] == "74") { ?> selected="selected" <?php } ?>>74</option>
<option value="75" <?php if ($_POST['agemin'] == "75") { ?> selected="selected" <?php } ?>>75</option>
<option value="76" <?php if ($_POST['agemin'] == "76") { ?> selected="selected" <?php } ?>>76</option>
<option value="77" <?php if ($_POST['agemin'] == "77") { ?> selected="selected" <?php } ?>>77</option>
<option value="78" <?php if ($_POST['agemin'] == "78") { ?> selected="selected" <?php } ?>>78</option>
<option value="79" <?php if ($_POST['agemin'] == "79") { ?> selected="selected" <?php } ?>>79</option>
<option value="80" <?php if ($_POST['agemin'] == "80") { ?> selected="selected" <?php } ?>>80</option>
</select>
and
<select size="1" name="agemax">
<option value="18" <?php if ($_POST['agemax'] == "18") { ?> selected="selected" <?php } ?>>18</option>
<option value="19" <?php if ($_POST['agemax'] == "19") { ?> selected="selected" <?php } ?>>19</option>
<option value="20" <?php if ($_POST['agemax'] == "20") { ?> selected="selected" <?php } ?>>20</option>
<option value="21" <?php if ($_POST['agemax'] == "21") { ?> selected="selected" <?php } ?>>21</option>
<option value="22" <?php if ($_POST['agemax'] == "22") { ?> selected="selected" <?php } ?>>22</option>
<option value="23" <?php if ($_POST['agemax'] == "23") { ?> selected="selected" <?php } ?>>23</option>
<option value="24" <?php if ($_POST['agemax'] == "24") { ?> selected="selected" <?php } ?>>24</option>
<option value="25" <?php if ($_POST['agemax'] == "25") { ?> selected="selected" <?php } ?>>25</option>
<option value="26" <?php if ($_POST['agemax'] == "26") { ?> selected="selected" <?php } ?>>26</option>
<option value="27" <?php if ($_POST['agemax'] == "27") { ?> selected="selected" <?php } ?>>27</option>
<option value="28" <?php if ($_POST['agemax'] == "28") { ?> selected="selected" <?php } ?>>28</option>
<option value="29" <?php if ($_POST['agemax'] == "29") { ?> selected="selected" <?php } ?>>29</option>
<option value="30" <?php if ($_POST['agemax'] == "30") { ?> selected="selected" <?php } ?>>30</option>
<option value="31" <?php if ($_POST['agemax'] == "31") { ?> selected="selected" <?php } ?>>31</option>
<option value="32" <?php if ($_POST['agemax'] == "32") { ?> selected="selected" <?php } ?>>32</option>
<option value="33" <?php if ($_POST['agemax'] == "33") { ?> selected="selected" <?php } ?>>33</option>
<option value="34" <?php if ($_POST['agemax'] == "34") { ?> selected="selected" <?php } ?>>34</option>
<option value="35" <?php if ($_POST['agemax'] == "35") { ?> selected="selected" <?php } ?>>35</option>
<option value="36" <?php if ($_POST['agemax'] == "36") { ?> selected="selected" <?php } ?>>36</option>
<option value="37" <?php if ($_POST['agemax'] == "37") { ?> selected="selected" <?php } ?>>37</option>
<option value="38" <?php if ($_POST['agemax'] == "38") { ?> selected="selected" <?php } ?>>38</option>
<option value="39" <?php if ($_POST['agemax'] == "39") { ?> selected="selected" <?php } ?>>39</option>
<option value="40" <?php if ($_POST['agemax'] == "40") { ?> selected="selected" <?php } ?>>40</option>
<option value="41" <?php if ($_POST['agemax'] == "41") { ?> selected="selected" <?php } ?>>41</option>
<option value="42" <?php if ($_POST['agemax'] == "42") { ?> selected="selected" <?php } ?>>42</option>
<option value="43" <?php if ($_POST['agemax'] == "43") { ?> selected="selected" <?php } ?>>43</option>
<option value="44" <?php if ($_POST['agemax'] == "44") { ?> selected="selected" <?php } ?>>44</option>
<option value="45" <?php if ($_POST['agemax'] == "45") { ?> selected="selected" <?php } ?>>45</option>
<option value="46" <?php if ($_POST['agemax'] == "46") { ?> selected="selected" <?php } ?>>46</option>
<option value="47" <?php if ($_POST['agemax'] == "47") { ?> selected="selected" <?php } ?>>47</option>
<option value="48" <?php if ($_POST['agemax'] == "48") { ?> selected="selected" <?php } ?>>48</option>
<option value="49" <?php if ($_POST['agemax'] == "49") { ?> selected="selected" <?php } ?>>49</option>
<option value="50" <?php if ($_POST['agemax'] == "50") { ?> selected="selected" <?php } ?>>50</option>
<option value="51" <?php if ($_POST['agemax'] == "51") { ?> selected="selected" <?php } ?>>51</option>
<option value="52" <?php if ($_POST['agemax'] == "52") { ?> selected="selected" <?php } ?>>52</option>
<option value="53" <?php if ($_POST['agemax'] == "53") { ?> selected="selected" <?php } ?>>53</option>
<option value="54" <?php if ($_POST['agemax'] == "54") { ?> selected="selected" <?php } ?>>54</option>
<option value="55" <?php if ($_POST['agemax'] == "55") { ?> selected="selected" <?php } ?>>55</option>
<option value="56" <?php if ($_POST['agemax'] == "56") { ?> selected="selected" <?php } ?>>56</option>
<option value="57" <?php if ($_POST['agemax'] == "57") { ?> selected="selected" <?php } ?>>57</option>
<option value="58" <?php if ($_POST['agemax'] == "58") { ?> selected="selected" <?php } ?>>58</option>
<option value="59" <?php if ($_POST['agemax'] == "59") { ?> selected="selected" <?php } ?>>59</option>
<option value="60" <?php if ($_POST['agemax'] == "60") { ?> selected="selected" <?php } ?>>60</option>
<option value="61" <?php if ($_POST['agemax'] == "61") { ?> selected="selected" <?php } ?>>61</option>
<option value="62" <?php if ($_POST['agemax'] == "62") { ?> selected="selected" <?php } ?>>62</option>
<option value="63" <?php if ($_POST['agemax'] == "63") { ?> selected="selected" <?php } ?>>63</option>
<option value="64" <?php if ($_POST['agemax'] == "64") { ?> selected="selected" <?php } ?>>64</option>
<option value="65" <?php if ($_POST['agemax'] == "65") { ?> selected="selected" <?php } ?>>65</option>
<option value="66" <?php if ($_POST['agemax'] == "66") { ?> selected="selected" <?php } ?>>66</option>
<option value="67" <?php if ($_POST['agemax'] == "67") { ?> selected="selected" <?php } ?>>67</option>
<option value="68" <?php if ($_POST['agemax'] == "68") { ?> selected="selected" <?php } ?>>68</option>
<option value="69" <?php if ($_POST['agemax'] == "69") { ?> selected="selected" <?php } ?>>69</option>
<option value="70" <?php if ($_POST['agemax'] == "70") { ?> selected="selected" <?php } ?>>70</option>
<option value="71" <?php if ($_POST['agemax'] == "71") { ?> selected="selected" <?php } ?>>71</option>
<option value="72" <?php if ($_POST['agemax'] == "72") { ?> selected="selected" <?php } ?>>72</option>
<option value="73" <?php if ($_POST['agemax'] == "73") { ?> selected="selected" <?php } ?>>73</option>
<option value="74" <?php if ($_POST['agemax'] == "74") { ?> selected="selected" <?php } ?>>74</option>
<option value="75" <?php if ($_POST['agemax'] == "75") { ?> selected="selected" <?php } ?>>75</option>
<option value="76" <?php if ($_POST['agemax'] == "76") { ?> selected="selected" <?php } ?>>76</option>
<option value="77" <?php if ($_POST['agemax'] == "77") { ?> selected="selected" <?php } ?>>77</option>
<option value="78" <?php if ($_POST['agemax'] == "78") { ?> selected="selected" <?php } ?>>78</option>
<option value="79" <?php if ($_POST['agemax'] == "79") { ?> selected="selected" <?php } ?>>79</option>
<option value="80" <?php if ($_POST['agemax'] == "80") { ?> selected="selected" <?php } ?>>80</option>
</select></td>
</tr>
</table>
<p align="center" style="margin:0; padding:0;">
<input type="submit" id="xmlsearch" value="Submit" />
</p>
<input type="hidden" name="posted" value="posted" />
</form>
<?php
function lit_xml($fichier,$item,$champs) {
// on lit le fichier
if($chaine = @implode("",@file($fichier))) {
// on explode sur <item>
// Dans l'exemple il s'agit de 'profil'
$tmp = preg_split("/<\/?".$item.">/",$chaine);
// pour chaque <item> donc tous les profils
for($i=1;$i<20;$i+=2)
// on lit les champs demandés <champ> donc il s'agit de 'id' et 'prenom'
foreach($champs as $champ) {
$tmp2 = preg_split("/<\/?".$champ.">/",$tmp[$i]);
$tmp2 = str_replace("<![CDATA[", "", $tmp2);
$tmp2 = str_replace("]]>", "", $tmp2);
// on ajoute l'élément au tableau
$tmp3[$i-1][] = @strip_tags(htmlspecialchars($tmp2[1]));
}
// et on retourne le tableau dans la fonction
return $tmp3;
}
}

if($_POST['posted'] == "posted")
{
switch ($_POST['section']) {
case 0:
$section="love";
break;
case 1:
$section="sexy";
break;
case 2:
$section="gay";
break;
}
$xml = lit_xml("http://www.easy-dating.org/_SCRIPT/xml/search.php?lang=en&section=".$_POST['section']."&sexe=".$_POST['sexe']."&pays=".$_POST['pays']."&age_min=".$_POST['agemin']."&age_max=".$_POST['agemax']."&photosize=100","item",array("id","login","sexe","pays","departement","nom_departement","ville","description","photo","age" ));
foreach($xml as $row) {
if ($row[1]) {

$photo = '<img src="http://easyrencontre.com'.$row[8].'" border="0" alt="Date singles '.$row[5].' '.$row[4].' '.$row[3].'" />';

echo "<a href='http://soflirt.".$section.".free-datings.com/u_page.php?id=".$row[0]."' rel='nofollow' target='_blank' style='float:left; padding: 0 15px 15px 0;'>".$photo."</a>";

?>
<?php echo "<u>".$row[1]."</u> (".$row[9]." years)<br /> ".$row[6]." / ".$row[5]." / ".$row[3]." <br /> ".$row[7]." <br />
<a href='http://soflirt.".$section.".free-datings.com/u_page.php?id=".$row[0]."' rel='nofollow' target='_blank'>Contact this member</a><br />
<br style='clear:both;'/> ";

}
}
}
else {
$xml = lit_xml("http://www.easy-dating.org/_SCRIPT/xml/search.php?lang=en&section=1&sexe=0&pays=US&age_min=19&age_max=29&photosize=100","item",array("id","login","sexe","pays","departement","nom_departement","ville","description","photo","age" ));
foreach($xml as $row) {
if ($row[1]) {

$photo = '<img src="http://easyrencontre.com'.$row[8].'" border="0" alt="Date singles '.$row[5].' '.$row[4].' '.$row[3].'" />';

echo "<a href='http://soflirt.sexy.free-datings.com/u_page.php?id=".$row[0]."' rel='nofollow' target='_blank' style='float:left; padding: 0 15px 15px 0;'>".$photo."</a>";

?>
<?php echo "<u>".$row[1]."</u> (".$row[9]." years)<br /> ".$row[6]." / ".$row[5]." / ".$row[3]." <br /> ".$row[7]." <br />
<a href='http://soflirt.sexy.free-datings.com/u_page.php?id=".$row[0]."' rel='nofollow' target='_blank'>Contact this member</a><br />
<br style='clear:both;'/> ";

}
}
}

?>