Désolé, problème de serveur

Impossible de se connecter au serveur
"); @mysql_select_db("$database",$db) or die("
Désolé, problème de serveur

Impossible de se connecter à la base de données

"); $list_totalbum = MYSQL_QUERY("SELECT count(id) FROM $tbl_alist WHERE gere='standalone'"); $nb_totalbums = mysql_result($list_totalbum,0,"count(id)"); $list_totimg = MYSQL_QUERY("SELECT count(id) FROM $tbl_ilist"); $nb_totimg = mysql_result($list_totimg,0,"count(id)"); $list_album = MYSQL_QUERY("SELECT id,nom,image,descr,hits,gere,secureid FROM $tbl_alist WHERE idpere=0 ORDER BY place"); $nb_albums = MYSQL_NUMROWS($list_album); //haut de page echo "\n"; echo "\n"; if ($admlinkdisplay=="oui") {echo "\n";} echo "\n"; echo "\n"; echo "
".$titre_galerie."
".$txt_stat." - ".$txt_admin." 
\n"; echo "
\n"; echo "\n"; echo " \n"; echo "
>>  ".$txt_galerie." : ".$titre_galerie."
".$nb_totalbums." ".$txt_albums.", ".$nb_totimg." ".$txt_photos.$txt_danslagal."
\n"; echo "
\n"; //fin haut de page echo "
\n"; echo "\n"; echo "\n"; $col_en_cours=0; $lig_en_cours=1; $i=0; WHILE($i<$nb_albums) { $id_album = mysql_result($list_album,$i,"id"); $nom_album = mysql_result($list_album,$i,"nom"); $image_album = mysql_result($list_album,$i,"image"); $descr_album = mysql_result($list_album,$i,"descr"); $hits_album = mysql_result($list_album,$i,"hits"); $gere_album = mysql_result($list_album,$i,"gere"); $secureid_album = mysql_result($list_album,$i,"secureid"); $descr_album=nl2br($descr_album); $col_en_cours++; if ($col_en_cours>$displayindex_nb_col) { $col_en_cours=1; $lig_en_cours++; echo "\n\n"; } if ($gere_album=="pere") { $chaine = "SELECT count(id) FROM ".$tbl_alist." WHERE idpere=".$id_album; $request = MYSQL_QUERY($chaine); $nb_series = mysql_result($request,0,"count(id)"); $disp_page="disp_album"; if ($secureid_album!="") {$disp_page="login";} echo " \n"; echo " \n"; echo " \n"; $i++; } //finir le tableau si incomplet if (($lig_en_cours>1) and ($col_en_cours<$displayindex_nb_col)) { while ($col_en_cours<$displayindex_nb_col) { echo " \n"; echo " \n"; $col_en_cours++; } } echo "\n"; echo "
\n"; if ($image_album!="../mini_default.jpg") {echo " \"\"";} echo "\n \n"; if ($secureid_album!="") {echo "\"\"  ";} echo "[".ucfirst($nom_album)."]"; echo "
\n"; if (($dispinfos1descr==1) AND ($descr_album!="")) {echo "".$descr_album."

\n";} echo " "; if ($dispinfos1images==1) {echo " \"\" ".$nb_series." ".$txt_sousalbums."
\n";} if ($dispinfos1hits==1) {echo " \"\" ".$hits_album." ".$txt_visites."
\n";} echo "
\n"; } else { $chaine = "SELECT count(id) FROM ".$tbl_ilist." WHERE album=".$id_album; $request = MYSQL_QUERY($chaine); $nb_img = mysql_result($request,0,"count(id)"); $chaine = "SELECT max(date_verif) FROM ".$tbl_ilist." WHERE album=".$id_album; $request = MYSQL_QUERY($chaine); $derniere_modif = mysql_result($request,0,"max(date_verif)"); $disp_page="disp_serie"; if ($secureid_album!="") {$disp_page="login";} echo "
\n"; if ($image_album!="../mini_default.jpg") {echo " \"\"";} echo "\n \n"; if ($secureid_album!="") {echo "\"\"  ";} echo "".ucfirst($nom_album).""; echo "
\n"; if (($dispinfos1descr==1) AND ($descr_album!="")) {echo "".$descr_album."

\n";} echo ""; if ($dispinfos1images==1) {echo " \"\" ".$nb_img." ".$txt_photos."
\n";} if ($dispinfos1hits==1) {echo " \"\" ".$hits_album." ".$txt_visites."
\n";} if ($nb_img>0) { $derniere_modif_ok1=explode("-",$derniere_modif); $derniere_modif_ok2=explode(" ",$derniere_modif_ok1[2]); if ($dispinfos1update==1) {echo " ".$txt_ajout." : ".$derniere_modif_ok2[0]."/".$derniere_modif_ok1[1]."/".$derniere_modif_ok1[0];} } echo "
\n"; } echo "
\n"; //photos les plus regardées if ($display_nb_favorite>0) { $chaine="SELECT id FROM ".$tbl_alist." WHERE passwd='' AND gere='standalone'"; $request = MYSQL_QUERY($chaine); $nb_albums = MYSQL_NUMROWS($request); if ($nb_albums>0) { $j=0; $chaine = "SELECT id,url,album,hits FROM ".$tbl_ilist." WHERE album IN ("; WHILE($j<$nb_albums) { $id_serie = mysql_result($request,$j,"id"); $chaine = $chaine.$id_serie; $j++; if ($j<$nb_albums) {$chaine = $chaine.",";} } $chaine = $chaine.") ORDER BY hits DESC LIMIT 0,".$display_nb_favorite; $request = MYSQL_QUERY($chaine); $display_nb_favorite = MYSQL_NUMROWS($request); echo "
\n\n"; echo " \n"; echo " \n"; $i=0; while ($i<$display_nb_favorite) { $id_image = mysql_result($request,$i,"id"); $album_image = mysql_result($request,$i,"album"); $url_image = mysql_result($request,$i,"url"); $chaine2="SELECT folder FROM ".$tbl_alist." WHERE id=".$album_image; $req2 = MYSQL_QUERY($chaine2); $folder_image = MYSQL_RESULT($req2,0,"folder"); echo " \n"; $i++; } echo " \n"; echo " \n"; $i=0; while ($i<$display_nb_favorite) { $pos=$i+1; echo " \n"; $i++; } echo "
"; if ($display_nb_favorite==1) echo "  ".$txt_laplusvue."  "; else echo "  ".$txt_lesplusvues."  "; echo "
\"photo\"
".$pos."
\n"; } } //dernières photos ajoutees if ($display_lastupdate>0) { $chaine="SELECT id FROM ".$tbl_alist." WHERE passwd='' AND gere='standalone'"; $request = MYSQL_QUERY($chaine); $nb_albums = MYSQL_NUMROWS($request); if ($nb_albums>0) { $j=0; $chaine = "SELECT id,url,album,date_verif FROM ".$tbl_ilist." WHERE album IN ("; WHILE($j<$nb_albums) { $id_serie = mysql_result($request,$j,"id"); $chaine = $chaine.$id_serie; $j++; if ($j<$nb_albums) {$chaine = $chaine.",";} } $chaine = $chaine.") ORDER BY date_verif DESC LIMIT 0,".$display_lastupdate; $request = MYSQL_QUERY($chaine); $display_lastupdate = MYSQL_NUMROWS($request); echo "
\n\n"; echo " \n"; echo " \n"; $i=0; while ($i<$display_lastupdate) { $id_image = mysql_result($request,$i,"id"); $album_image = mysql_result($request,$i,"album"); $url_image = mysql_result($request,$i,"url"); $chaine2="SELECT folder FROM ".$tbl_alist." WHERE id=".$album_image; $req2 = MYSQL_QUERY($chaine2); $folder_image = MYSQL_RESULT($req2,0,"folder"); echo " \n"; $i++; } echo " \n"; echo " \n"; $i=0; while ($i<$display_lastupdate) { $date_verifimage = mysql_result($request,$i,"date_verif"); $derniere_modif_ok1=explode("-",$date_verifimage); $derniere_modif_ok2=explode(" ",$derniere_modif_ok1[2]); $pos=$i+1; echo " \n"; $i++; } echo "
"; echo "  ".$txt_lastupdate."  "; echo "
\"photo\"
".$derniere_modif_ok2[0]."/".$derniere_modif_ok1[1]."/".$derniere_modif_ok1[0]."
\n"; } } MYSQL_CLOSE(); //bas de page echo "
\n"; echo "
\n"; echo "
".$titre_galerie."
\n"; echo "
\n"; echo "
2BGal  v2.5  -  Powered by Ben3w
".$txt_genere." ".get_elapsed_time( $start_time, get_moment())."
\n"; BASPAGEWEB(); ?>