$nombMax+$start) $nombApres=1; $nombrePages=$Total/$nombMax; $avant=$start-$nombMax; $apres=$start+$nombMax; if ($avant<0)$avant=0; if ($apres>$Total)$apres=$Total; $url=urlencode($search); $url=str_replace(array('%2F','%5C'), array('%252F','%255C'),$url); $result.='"; return ($result); } $nombMax=40; $link=0; if (isset($_GET['start'])) {$debut=$_GET['start']; $noindex=1;} else $debut=0; include ("global.php"); include(URL."/fonctions/fonctions.php"); include(URL."/database/OpenDatabase.php"); include(URL."/database/database.php"); function md5_hex_to_dec($hex_str) { $arr = str_split($hex_str, 4); foreach ($arr as $grp) { $dec[] = str_pad(hexdec($grp), 5, '0', STR_PAD_LEFT); } return implode('', $dec); } //////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////// DEBUT DU CACHE //////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// $cache = './caches'.$_SERVER["REQUEST_URI"]; if ($debut!=0)$expire = time()-((3600*24)*15) ; // valable 10 jours else $expire = time()-((3600*24)*10); //$expire=time(); if(file_exists($cache) && filemtime($cache) > $expire && $admin < 2) { readfile($cache); } else { ob_start(); $lien=select_database ("searchs","liens","search='".urldecode($search)."'"); $photomot=select_database ("searchs","photo","search='".urldecode($search)."'"); if (!$lien and $search) $lien=lien("10",urldecode($search)); //else echo "deja lien"; //if ($photomot) echo "
dejà phoro"; $nuagefixe=''; $i=0; $val = explode('_-_', $lien); $count = count($val)-1; $nuagefixe="