$rows){ $count = mysqli_num_rows($sql); $nb_pg = ceil($count/$rows); if ( $nb_pg > $range ) $range = $range; else $range = $nb_pg; //Positionnement de la pagination if ( $pg <= $range) { $beginpg = 1; $endpg = $range; } else { if ($pg > ($nb_pg-$range)) { $beginpg = $nb_pg-$range; $endpg = $nb_pg; } else { $beginpg = $pg - ($range/2); $endpg = $pg + ($range/2); } } $nav = 'Pages (' . $nb_pg . '): '; for($i = $beginpg; $i <= $endpg; $i++) { if ($i == $beginpg) { if ($i != 1) $nav .= ' - « - '; } if ($pg == 0) $currentpg = 1; else $currentpg = $pg; if ($i == $currentpg) $nav .= ' - ' . $i . ''; else { if ($i == 1) $nav .= ' - ' . $i . ''; else $nav .= ' - ' . $i . ''; } if ($i == $endpg) { if ($i == 1) $nav .= ' - »'; elseif ($i != $nb_pg) $nav .= ' - »'; } } } if ($pg == 0) $offset = ($pg * $rows); else $offset = ($pg * $rows)-$rows; $query = "SELECT * FROM vh_gal WHERE valid=1 ORDER BY id DESC LIMIT ".$offset.", ".$rows.""; $sql = mysqli_query($query); $etc = "..."; while($info = mysqli_fetch_array($sql)){ $id_v = $info['id_vidz']; $title = $info['titre']; $title = truncate($title,40,$etc); $description = $info['description']; $description = truncate($description,250,$etc); $url_th = $info['url_th']; $i++; ?>




LA MEILLEURE VIDEO HOMO :
NOTRE SELECTION :
NOS PARTENAIRES :


MoustiQ un site de sexe et blog porno très sexy
Porno gratuit



- Video-Homo.Be - 2008/2018 - Fournisseur en video x homo gratuite depuis 10 ANS