3) { $add_best .=" $key, "; } } $version_color = rand(2,4); $version_color =2; $img_color = $version_color; $form_color="#eaefd5"; if(isset($_GET['q']) && trim($_GET['q']!='')){ $snip = ""; $debut_temps = microtime_float(); $nombre_total_resultats = 0; $content_result =""; ##### Formatage $q = utf8_decode(trim($_GET['q'])); $nb_word = str_word_count($q); $q_add = mysql_real_escape_string($q); $q_html = htmlentities($q); $q_url = urlencode($q); ##### base recherches $base_recherche = mysql_num_rows(mysql_query("SELECT id FROM `go_recherches` WHERE mot='$q_add' LIMIT 1")); if($base_recherche == 0) { include('nouvelle_recherche.php'); include('scan_img_new.php'); } else { mysql_query("UPDATE `go_recherches` SET nb_rech_img = nb_rech_img + 1, unix = '$unix' WHERE mot='$q_add' LIMIT 1"); $req = mysql_query("SELECT id, nb, nb_img FROM `go_recherches` WHERE 1 AND mot = '$q_add' LIMIT 1"); while($data = mysql_fetch_array($req)){ $nb_img = $data['nb_img']; $id_key = $data['id']; $nb_result = $data['nb']; } if($nb_img == 0) { include('scan_img_new.php'); mysql_query("UPDATE `go_recherches` SET nb_rech_img = nb_rech_img + 1, unix = '$unix' WHERE mot='$q_add' LIMIT 1"); $req = mysql_query("SELECT id, nb, nb_img FROM `go_recherches` WHERE 1 AND mot = '$q_add' LIMIT 1"); while($data = mysql_fetch_array($req)){ $nb_img = $data['nb_img']; $id_key = $data['id']; $nb_result = $data['nb']; } } } ######## Images $nb_test = 0; $add_img = ""; $pass = 1; if($nb_img > 4){ $add_img = "
"; $req = mysql_query("SELECT * FROM `go_img` WHERE 1 AND id_recherche = '$id_key' ORDER BY Rand() LIMIT 24"); while($data = mysql_fetch_array($req)) { $id_img = $data['id']; $atr = $data['atr']; $url = $data['url']; list($width, $height, $type, $attr) = getimagesize("http://$base_domaine/img.php?img=$id_img"); $width = ceil($width*.85); $height = ceil($height*.85); $url_aff = substr($url,7,16).'...'; #list($widthl, $heightl, $typel, $attrl) = getimagesize("$url"); $add_img .= ""; if($pass%6 === 0 && $pass < 24) $add_img .= ""; $pass++; } $add_img .= "


$url_aff
"; } $start = ($p * 10 ) - 10; $debut = ($start + 1 ); $fin = $debut + 9; if($fin > $nb_result) $fin = $nb_result; $resultats = "$debut à $fin"; if($nb_img > 18){ $nb_img="24 images sur $nb_img"; }else{ $nb_img="$nb_img images"; } $debut_fin = microtime_float(); if(($debut_fin - $debut_temps) > 0.009999){ $dure = number_format(($debut_fin - $debut_temps), 2, '.', ''); }else{ $dure = 0.01; } $dure = $dure.'s'; $add_result="
   $nb_img pour $q_html en $dure
"; echo " $q_html - OmyWeed - fais tourner!
    Web Vidéos Images Les sites  
 


$add_result
$add_img


 partenaires:



$footer
"; }else{ ?> OmyWeed Images | Moteur de recherche canabique