","%","\\"," ","$","\""); $texte = str_replace($non," ",$texte); return $texte; } // // Setup forum wide options, if this fails // then we output a CRITICAL_ERROR since // basic forum information is not available // $board_config = array(); $sql = "SELECT * FROM phpbb_config"; if( !($result = $db->sql_query($sql)) ) { message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $board_config[$row['config_name']] = $row['config_value']; } $info[1]=$userdata['user_id']; if ($_GET[taf]!="") $taf=menage($_GET[taf]); if ($_POST[taf]!="") $taf=menage($_POST[taf]); if ($_GET[pp]!="") $pp=menage($_GET[pp]); if ($_POST[pp]!="") $pp=menage($_POST[pp]); $log=menage($_GET[log]); $message=menage($_POST[message]); $add_avis=menage($_POST[add_avis]); $up_photo=menage($_POST[up_photo]); $look=menage($_POST[look]); $rcomp=menage($_POST[rcomp]); $add_collec=menage($_POST[add_collec]); $rep=menage($_POST[rep]); $rep_id=menage($_POST[rep_id]); $suppimg=menage($_GET[suppimg]); $extsup=menage($_GET[extsup]); $suppimgp=menage($_GET[suppimgp]); if (isset($_POST[log]) && !isset($_GET[log])) $log=menage($_POST[log]); if (isset($_GET[log]) && !isset($_POST[log])) $log=menage($_GET[log]); $mod1=menage($_POST[mod1]); $mod=menage($_GET[mod]); $supavis=menage($_GET[supavis]); $sel_on = menage($_GET[sel_on]); $sel_off = menage($_GET[sel_off]); $up_comp = menage($_POST[up_comp]); $comp = menage($_POST['comp']); $url="collec.php"; $date_rec=date("U"); //*********************************************************************************************************************************************** if ($taf=="sup") { $list_img=mysql_query("SELECT * FROM collec_img WHERE id_collec='$log' AND id_auteur='$info[1]' AND pp='$pp' "); while ($li=mysql_fetch_array($list_img)) { unlink ("collec/".$li[id].".".$li[ext].""); } mysql_query("DELETE FROM collec_img WHERE id_collec='$log' AND id_auteur='$info[1]' AND pp='$pp' "); mysql_query("DELETE FROM collec WHERE id='$log' AND id_auteur='$info[1]' AND pp='$pp' "); } if ($suppimg!="") { mysql_query("DELETE FROM collec_img WHERE id='$suppimg' AND id_auteur='$info[1]' AND pp='$pp' LIMIT 1"); unlink ("collec/".$suppimg.".".$extsup.""); } if ($suppimgp!="") { if (file_exists("collec/m".$info[1].".png")) unlink("collec/m".$info[1].".png"); if (file_exists("collec/m".$info[1].".gif")) unlink("collec/m".$info[1].".gif"); if (file_exists("collec/m".$info[1].".jpg")) unlink("collec/m".$info[1].".jpg"); } $interdit = array("\"","java","script","www",".com",".net","&","<",">","%","\\"," ","$"); if ($info[1]!="-1" && $info[1]!="" && !ereg("www",$message) && !ereg("http",$message) && !ereg("href",$message) && !ereg("script",$message) && !ereg("",$message); $message=$message; $ok_add_avis=mysql_query("INSERT INTO collec_avis (id_auteur,date,texte,id_collec) VALUES ('$info[1]','$date_rec',\"$message\",'$log')"); if ($ok_add_avis==1) { $mp_a_qui=mysql_fetch_array(mysql_query("SELECT id_auteur FROM collec WHERE id='$log'")); mysql_query("INSERT INTO phpbb_privmsgs (privmsgs_type,privmsgs_subject,privmsgs_from_userid,privmsgs_to_userid,privmsgs_date) VALUES ('1','Un avis a été ajouté à votre presentation perso','2','$mp_a_qui[id_auteur]','$date_rec')"); $mp_bot_id=mysql_insert_id(); $message_mp = "Un avis a ete ajoute a votre présentation perso\n\nMerci de ne pas répondre à cette notification\n\nCliquez ici : http://www.flipjuke.fr/collec.php?taf=visit&log=$log"; mysql_query("INSERT INTO phpbb_privmsgs_text (privmsgs_text_id,privmsgs_text) VALUES ('$mp_bot_id',\"$message_mp\") "); } } if ($info[1]!="-1" && $info[1]!="" && $mod1!="" && !ereg("script",$message) && !ereg("",$message); $message=$message; mysql_query("UPDATE collec_avis SET texte=\"$message\" WHERE id='$mod1' "); } if ($info[1]!="-1" && $info[1]!="" && $rep_id!="" && !ereg("script",$rep) && !ereg("",$message); $deja=mysql_query("SELECT id FROM collec WHERE id_auteur='$info[1]' AND pp='$pp' "); $dejan=mysql_num_rows($deja); if ($dejan!=0) { $id=mysql_fetch_row($deja); $id=$id[0]; $modif=mysql_query("UPDATE collec SET texte=\"$messag\",date='$date_rec' WHERE id='$id' AND id_auteur='$info[1]' AND pp='$pp'"); } else { $modif=mysql_query("INSERT INTO collec(texte,date,id_auteur,pp) VALUES (\"$messag\",'$date_rec','$info[1]','$pp')"); $id=mysql_insert_id(); } if ($modif==1) $message_info="Vos données ont bien été prise en compte"; $taf="visit";$log=$id; } if ($info[1]!="-1" && $info[1]!="" && $up_photo==1 && $_FILES[image][tmp_name]!="") { $image_name=$_FILES[image][name]; $image=$_FILES[image][tmp_name]; $imagep_name=$_FILES[imagep][name]; $imagep=$_FILES[imagep][tmp_name]; $deja=mysql_query("SELECT id FROM collec WHERE id_auteur='$info[1]' AND pp='$pp' "); $dejan=mysql_num_rows($deja); if ($dejan!=0) { $id=mysql_fetch_row($deja); $id=$id[0]; } if($image_name!="") { list($img_width, $img_height, $img_type, $img_attr) = getimagesize($image); if (($img_type==1 || $img_type==2 || $img_type==3) && filesize($image)<250000) { if ($img_type==1) $ext="gif"; if ($img_type==2) $ext="jpg"; if ($img_type==3) $ext="png"; mysql_query("INSERT INTO collec_img (id_collec,id_auteur,ext,pp) VALUES ('$id','$info[1]','$ext','$pp')"); $id_img=mysql_insert_id(); if ($ext!="") copy($image,"collec/".$id_img.".".$ext); } unlink($image); } } if ($taf=="add" || $taf=="visit" || $taf=="mod") { ?> \n"; echo "Liste des collections      "; echo "Liste des compétences et services      "; echo "Présentez vos machines     "; echo "Présentez vos compétences
"; echo "Le but de cette page est de vous permettre d'en dire un peu plus sur votre passion et comment vous la vivez.
(nom prenom, liste des jeux ou appareils en possession, message..., etc...)

Déja ".($nbcol-1)." inscrits
\n"; echo "
"; if($taf=="mod" && $info[1]!="") { $ligne=mysql_fetch_array(mysql_query("SELECT * FROM collec WHERE id_auteur='$info[1]' AND pp='$pp'")); $id=$ligne[id]; //$local = $ligne[local]; //$zip = $ligne[zip]; $message = stripslashes($ligne[texte]); $comp = $ligne[comp]; $taf = "add"; } if ($taf=="add" && $info[1]!="" && $info[1]!=-1) { $ptitexp="
Vous pouvez placer des photos dans votre texte en inserant simplement le nom des photos ci-contre
Sinon elle seront placées en fin de texte.
La taille d'affichage des photos n'est pas réduite..."; include("formulaire.php"); echo "
  
\n"; echo ""; //*********************************************************************************************** if ($pp=='1') { echo "
\n"; echo "[Redem. flip Méca ] "; echo "[Rep. carte élec ] "; echo "[Redem. flip élec ] "; echo "[Retouche plat. ] "; echo "[Vitrif plat. ] "; echo "[Peintures caisse ] "; echo "[Réglage MAS ] "; echo "[THT / Video ] "; echo "[Rep. DOT ] "; echo "[Prog EPROM ] "; echo "

\n"; } //*********************************************************************************************** echo "
\n"; if ($pp=='0') { echo "Joignez nous votre trombine (200k)
"; $isimgp=0; if (file_exists("collec/m".$info[1].".jpg")) {echo "";$isimgp=1;} if (file_exists("collec/m".$info[1].".gif")) {echo "";$isimgp=1;} if (file_exists("collec/m".$info[1].".png")) {echo "";$isimgp=1;} if ($isimgp==1) echo "Supp
\n"; echo "

\n"; } echo "Ajouter une image
(40 images max)
"; $list_img=mysql_query("SELECT * FROM collec_img WHERE id_collec='$id' AND id_auteur='$info[1]' ORDER BY id"); if (mysql_num_rows($list_img)<41) { echo ""; echo "image 200k max :

\n"; } echo ""; $nb_c=5; $n_c=0; while ($li=mysql_fetch_array($list_img)) { if ($n_c==0) echo ""; $n_c++; echo ""; if (($n_c/$nb_c)==floor($n_c/$nb_c)) echo "\n"; } if ($n_c!=$nb_c) echo ""; echo "
p".$li[id]."
 


\n"; $taf="visit";$log=$id; } if ($taf=="bestof0" || $taf=="bestof1" ) { echo $sel_on; if ($sel_on!="") mysql_query("UPDATE collec_img SET bestof='1' WHERE id='$sel_on'"); if ($sel_off!="") mysql_query("UPDATE collec_img SET bestof='0' WHERE id='$sel_off'"); if ($sel_on=="" && $sel_off=="") { if ($taf=="bestof0") { echo "
\n"; $contenu=mysql_query("SELECT * FROM collec_img WHERE bestof='0' AND vu=0 ORDER BY rand() LIMIT 0,50" ); while ($ligne=mysql_fetch_array($contenu)) { mysql_query("UPDATE collec_img SET vu='1' WHERE id='$ligne[id]'"); echo " \n"; } echo "
\n"; } if ($taf=="bestof1") { echo "
\n"; $contenu=mysql_query("SELECT * FROM collec_img WHERE bestof='1' ORDER BY rand() LIMIT 0,50" ); while ($ligne=mysql_fetch_array($contenu)) { echo " \n"; } echo "
\n"; } } } if ($taf=="") { if ($_GET[page]=="") $limite=" LIMIT 0,10 "; else $limite=" LIMIT ".$_GET[page].",10 "; if ($pp=="0") $the_tri=" ORDER BY date DESC "; elseif ($pp=="1") $the_tri=" ORDER BY date_comp DESC "; else $the_tri=" ORDER BY date DESC "; echo "\n"; $link_page= "\n"; echo $link_page; echo ""; echo ""; if ($pp!="1") echo ""; echo "\n"; if ($pp=="1") $contenu=mysql_query("SELECT * FROM collec WHERE id_auteur!=-1 AND pp='1' $the_tri $limite "); else $contenu=mysql_query("SELECT * FROM collec WHERE id_auteur!=-1 AND pp='0' $the_tri $limite "); //****************************************************************************************** if ($look!="" || $rcomp!="") { $list_rcomp=" WHERE comp LIKE '%___%' "; //lancer debut de recherche if ($look!="") $list_rcomp.=" OR texte LIKE '%$look%' "; else $list_rcomp.=""; while (list ($key,$val) = @each ($rcomp)) { $list_rcomp.=" OR comp LIKE '%$val%' "; } echo $recherche = $list_rcomp; $contenu=mysql_query("SELECT * FROM collec $recherche ORDER BY date_comp DESC " ); } //****************************************************************************************** while ($ligne=mysql_fetch_array($contenu)) { if ($pp!="1") { $list_img=mysql_query("SELECT id FROM collec_img WHERE id_auteur='$ligne[id_auteur]' AND id_collec='$ligne[id]' "); $nb_image=mysql_num_rows($list_img); } $qui=mysql_fetch_array(mysql_query("SELECT username,user_avatar,user_avatar_type,user_allowavatar,user_from,user_from_dept FROM phpbb_users WHERE user_id='$ligne[id_auteur]' ")); $poster_avatar = ''; if ( $qui['user_avatar_type'] && $qui['user_allowavatar'] ) { switch( $qui['user_avatar_type'] ) { case USER_AVATAR_UPLOAD: $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; break; case USER_AVATAR_REMOTE: $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; break; case USER_AVATAR_GALLERY: $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; break; } } if ($bgcol==$color_tab_3) $bgcol=$color_tab_4; else $bgcol=$color_tab_3; echo ""; if ($pp!="1") { echo "\n"; $contenu_pp=mysql_query("SELECT * FROM collec WHERE id_auteur='$ligne[id_auteur]' AND pp='1' " ); if ($ligne_pp=mysql_fetch_array($contenu_pp)) { $texte_pp=substr(eregi_replace('
','',$ligne_pp[texte]),0,300); $texte_pp.="... [lire la suite]"; } else $texte_pp=""; echo "\n"; } else { $suite= "...[lire la suite]"; $detail_comp="
"; if ($_GET[page]!="" && $_GET[page]!=0) $link_page.= "Page précédente"; $link_page.= "Page suivante

"; if ($pp=="1") { echo "[Redem. flip Méca ] "; echo "[Rep. carte élec ] "; echo "[Redem. flip élec ] "; echo "[Retouche plat. ] "; echo "[Vitrif plat. ]
"; echo "[Peintures caisse ] "; echo "[Réglage MAS ] "; echo "[THT / Video ] "; echo "[Rep. DOT ] "; echo "[Prog EPROM ]
"; } echo "
MembreNb Photo & Com.Compétences / Services
"; echo $poster_avatar." ".$qui[username]; echo "
"; if ($qui[user_from]!="") echo ucfirst(strtolower($qui[user_from]))." ".$qui[user_from_dept]; else echo "???? (voir votre profil)"; echo "
"; if ($nb_image>1) $pluriel="s";else $pluriel=""; echo "$nb_image photo$pluriel"; if (($ligne[date]+(3600*24*2))>date("U")) echo "
"; else echo "
"; echo " Maj : ".date("d/m/y",$ligne[date]); $nb_avis=mysql_num_rows(mysql_query("SELECT t1.id FROM collec_avis as t1 WHERE t1.id_collec='$ligne[id]' ")); if ($nb_image==0) echo " ? "; echo "  $nb_avis commentaires
$texte_pp
"; $img_ok=""; if (ereg("meca",$ligne[comp])) $detail_comp.= "$img_ok Redemarrage / réglage flipper mécanique
\n"; if (ereg("elec",$ligne[comp])) $detail_comp.= "$img_ok Redemarrage (hors cartes) flipper électronique
\n"; if (ereg("cpu",$ligne[comp])) $detail_comp.= "$img_ok Réparation cartes électroniques
\n"; if (ereg("retouche",$ligne[comp])) $detail_comp.= "$img_ok Retouche plateau
\n"; if (ereg("vitrif",$ligne[comp])) $detail_comp.= "$img_ok Vitrification plateau
\n"; if (ereg("caisse",$ligne[comp])) $detail_comp.= "$img_ok Retouche et peinture caisse/fronton
\n"; if (ereg("mas",$ligne[comp])) $detail_comp.= "$img_ok Redemarrage / réglage machine à sous
\n"; if (ereg("video",$ligne[comp])) $detail_comp.= "$img_ok Réglage écran video
\n"; if (ereg("dot",$ligne[comp])) $detail_comp.= "$img_ok Réparation afficheur DOT
\n"; if (ereg("prog",$ligne[comp])) $detail_comp.= "$img_ok Prog PROM, EPROM
\n"; $detail_comp.="
".substr($ligne[texte],0,450)." $suite
"; echo "$detail_comp\n"; } echo "\n"; } echo $link_page; echo "\n"; } if ($taf=="visit") { $contenu=mysql_query("SELECT * FROM collec WHERE id='$log' AND pp='$pp'" ); while ($ligne=mysql_fetch_array($contenu)) { echo ""; if ($info[1]==$ligne[id_auteur]) echo ""; echo "", $thetxt); $thetxt = str_replace("[/tr]", "", $thetxt); $thetxt=str_replace("[/b]","",$thetxt); $thetxt=str_replace("[b]","",$thetxt); $thetxt=str_replace("[/u]","",$thetxt); $thetxt=str_replace("[u]","",$thetxt); $thetxt=str_replace("[/i]","",$thetxt); $thetxt=str_replace("[i]","",$thetxt); $thetxt=str_replace(":::):","",$thetxt); $thetxt=str_replace(":,):","",$thetxt); $thetxt=str_replace(":D:","",$thetxt); $thetxt=str_replace("::)):","",$thetxt); $thetxt=str_replace(":|(:","",$thetxt); $thetxt=str_replace("::|:","",$thetxt); $thetxt=str_replace("::o:","",$thetxt); $thetxt=str_replace("::,(:","",$thetxt); $thetxt=str_replace("::,((:","",$thetxt); $thetxt=str_replace(":<:):","" ,$thetxt); $thetxt=str_replace(":8):","",$thetxt); $thetxt=str_replace(":9):","",$thetxt); $thetxt=str_replace(":?):","",$thetxt); $thetxt=str_replace(":z):","",$thetxt); $thetxt=str_replace(":#):","",$thetxt); $thetxt=str_replace(":>:(:","",$thetxt); $thetxt=str_replace(":))=:","" ,$thetxt); $thetxt=str_replace(":|(:","",$thetxt); $thetxt=str_replace(":s1:","",$thetxt); $thetxt=str_replace(":s2:","",$thetxt); $thetxt=str_replace("::x:","",$thetxt); $thetxt=str_replace(":-%:","",$thetxt); $thetxt=str_replace("[color=#444444]","",$thetxt); $thetxt=str_replace("[color=darkred]","",$thetxt); $thetxt=str_replace("[color=red]","",$thetxt); $thetxt=str_replace("[color=orange]","",$thetxt); $thetxt=str_replace("[color=brown]","",$thetxt); $thetxt=str_replace("[color=yellow]","",$thetxt); $thetxt=str_replace("[color=green]","",$thetxt); $thetxt=str_replace("[color=olive]","",$thetxt); $thetxt=str_replace("[color=cyan]","",$thetxt); $thetxt=str_replace("[color=blue]","",$thetxt); $thetxt=str_replace("[color=darkblue]","",$thetxt); $thetxt=str_replace("[color=indigo]","",$thetxt); $thetxt=str_replace("[color=violet]","",$thetxt); $thetxt=str_replace("[color=white]","",$thetxt); $thetxt=str_replace("[color=black]","",$thetxt); $thetxt=str_replace("[/color]","",$thetxt); $thetxt=str_replace("[size=7]","",$thetxt); $thetxt=str_replace("[size=9]","",$thetxt); $thetxt=str_replace("[size=12]","",$thetxt); $thetxt=str_replace("[size=14]","",$thetxt); $thetxt=str_replace("[size=18]","",$thetxt); $thetxt=str_replace("[/size]","",$thetxt); $list_img=mysql_query("SELECT * FROM collec_img WHERE id_collec='$log' AND pp='$pp' ORDER BY id"); $img=1;$imgr=";"; while ($li=mysql_fetch_array($list_img)) { if ($img==1) { $thetxt=eregi_replace("photo10","photo_10",$thetxt); $thetxt=eregi_replace("photo11","photo_11",$thetxt); $thetxt=eregi_replace("photo12","photo_12",$thetxt); $thetxt=eregi_replace("photo13","photo_13",$thetxt); $thetxt=eregi_replace("photo14","photo_14",$thetxt); $thetxt=eregi_replace("photo15","photo_15",$thetxt); $thetxt=eregi_replace("photo16","photo_16",$thetxt); $thetxt=eregi_replace("photo17","photo_17",$thetxt); $thetxt=eregi_replace("photo18","photo_18",$thetxt); $thetxt=eregi_replace("photo19","photo_19",$thetxt); $thetxt=eregi_replace("photo20","photo_20",$thetxt); } if ($img>=10) { $thetxt=eregi_replace("photo_10","photo10",$thetxt); $thetxt=eregi_replace("photo_11","photo11",$thetxt); $thetxt=eregi_replace("photo_12","photo12",$thetxt); $thetxt=eregi_replace("photo_13","photo13",$thetxt); $thetxt=eregi_replace("photo_14","photo14",$thetxt); $thetxt=eregi_replace("photo_15","photo15",$thetxt); $thetxt=eregi_replace("photo_16","photo16",$thetxt); $thetxt=eregi_replace("photo_17","photo17",$thetxt); $thetxt=eregi_replace("photo_18","photo18",$thetxt); $thetxt=eregi_replace("photo_19","photo19",$thetxt); $thetxt=eregi_replace("photo_20","photo20",$thetxt); } $code="photo".$img.""; $place_img="


"; if (eregi($code,$thetxt)) { $thetxt=eregi_replace($code,$place_img,$thetxt); $imgr.=$li[id].";"; } $img++; $code="p".$li[id].""; $place_img="


"; if (eregi($code,$thetxt)) { $thetxt=eregi_replace($code,$place_img,$thetxt); $imgr.=$li[id].";"; } } if ($pp=='1') { $detail_comp="
\n"; if (file_exists("collec/m".$ligne[id_auteur].".jpg")) echo ""; if (file_exists("collec/m".$ligne[id_auteur].".gif")) echo ""; if (file_exists("collec/m".$ligne[id_auteur].".png")) echo ""; $qui=mysql_fetch_array(mysql_query("SELECT username,user_from,user_from_dept,user_from_country FROM phpbb_users WHERE user_id='$ligne[id_auteur]' ")); echo "Membre du site : ".$qui[username]."
Localité : $qui[user_from] ($qui[user_from_dept] $qui[user_from_country])
"; if ($ligne[id_auteur]==$info[1]) echo "Modifier votre présentation
"; if ($pp=='0') { $liste_avis=mysql_query("SELECT t1.id FROM collec_avis as t1 WHERE t1.id_collec='$log' "); $nb_avis=mysql_num_rows($liste_avis); echo "$nb_avis Avis déposés"; } echo "
Supprimer votre présentation
\n"; //traitement de texte $in_quote="
  "; $out_quote="
"; $thetxt=stripslashes($ligne[texte]); $thetxt=str_replace("[quote]",$in_quote,$thetxt); $thetxt=str_replace("[/quote]",$out_quote,$thetxt); $thetxt = str_replace("[table]", "", $thetxt); $thetxt = str_replace("[td]", "", $thetxt); $thetxt = str_replace("[/table]", "
", $thetxt); $thetxt = str_replace("[tr]", "
", $thetxt); $thetxt = str_replace("[/td]", "
"; $img_ok=""; if (ereg("meca",$ligne[comp])) $detail_comp.= "$img_ok Redemarrage / réglage flipper mécanique
\n"; if (ereg("elec",$ligne[comp])) $detail_comp.= "$img_ok Redemarrage (hors cartes) flipper électronique
\n"; if (ereg("cpu",$ligne[comp])) $detail_comp.= "$img_ok Réparation cartes électroniques
\n"; if (ereg("retouche",$ligne[comp])) $detail_comp.= "$img_ok Retouche plateau
\n"; if (ereg("vitrif",$ligne[comp])) $detail_comp.= "$img_ok Vitrification plateau
\n"; if (ereg("caisse",$ligne[comp])) $detail_comp.= "$img_ok Retouche et peinture caisse/fronton
\n"; if (ereg("mas",$ligne[comp])) $detail_comp.= "$img_ok Redemarrage / réglage machine à sous
\n"; if (ereg("video",$ligne[comp])) $detail_comp.= "$img_ok Réglage écran video
\n"; if (ereg("dot",$ligne[comp])) $detail_comp.= "$img_ok Réparation afficheur DOT
\n"; if (ereg("prog",$ligne[comp])) $detail_comp.= "$img_ok Prog PROM, EPROM
\n"; $detail_comp.="
$thetxt;
"; echo $detail_comp; } else echo $thetxt; echo "
"; $list_img=mysql_query("SELECT * FROM collec_img WHERE id_collec='$log' AND pp='$pp' ORDER BY id"); while ($li=mysql_fetch_array($list_img)) { if (!ereg(";".$li[id].";",$imgr)) { echo "

"; } } echo "
"; // Les AVIS if ($pp==0) { $liste_avis=mysql_query("SELECT t1.id,t2.username,t1.date,t1.texte,t1.id_auteur,t2.user_avatar,t2.user_avatar_type,t2.user_allowavatar,t1.rep,t1.rep_date FROM collec_avis as t1 LEFT JOIN phpbb_users as t2 ON (t1.id_auteur=t2.user_id) WHERE t1.id_collec='$log' ORDER BY t1.date DESC"); $nb_avis=mysql_num_rows($liste_avis); echo ""; echo "
Vos Avis
"; echo "\n"; if ($nb_avis!=0) { $na=1; while ($la=mysql_fetch_array($liste_avis)) { $poster_avatar = ''; if ( $la['user_avatar_type'] && $la['user_allowavatar'] ) { switch( $la['user_avatar_type'] ) { case USER_AVATAR_UPLOAD: $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; break; case USER_AVATAR_REMOTE: $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; break; case USER_AVATAR_GALLERY: $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; break; } } //traitement de texte $in_quote="
$blabla
  "; $out_quote="
"; $thetxt=stripslashes($la[texte]); $thetxt=str_replace("[quote]",$in_quote,$thetxt); $thetxt=str_replace("[/quote]",$out_quote,$thetxt); $thetxt=str_replace("[/b]","
",$thetxt); $thetxt=str_replace("[b]","",$thetxt); $thetxt=str_replace("[/u]","",$thetxt); $thetxt=str_replace("[u]","",$thetxt); $thetxt=str_replace("[/i]","",$thetxt); $thetxt=str_replace("[i]","",$thetxt); $thetxt=str_replace(":::):","",$thetxt); $thetxt=str_replace(":,):","",$thetxt); $thetxt=str_replace(":D:","",$thetxt); $thetxt=str_replace("::)):","",$thetxt); $thetxt=str_replace(":|(:","",$thetxt); $thetxt=str_replace("::|:","",$thetxt); $thetxt=str_replace("::o:","",$thetxt); $thetxt=str_replace("::,(:","",$thetxt); $thetxt=str_replace("::,((:","",$thetxt); $thetxt=str_replace(":<:):","" ,$thetxt); $thetxt=str_replace(":8):","",$thetxt); $thetxt=str_replace(":9):","",$thetxt); $thetxt=str_replace(":?):","",$thetxt); $thetxt=str_replace(":z):","",$thetxt); $thetxt=str_replace(":#):","",$thetxt); $thetxt=str_replace(":>:(:","",$thetxt); $thetxt=str_replace(":))=:","" ,$thetxt); $thetxt=str_replace(":|(:","",$thetxt); $thetxt=str_replace(":s1:","",$thetxt); $thetxt=str_replace(":s2:","",$thetxt); $thetxt=str_replace("::x:","",$thetxt); $thetxt=str_replace(":-%:","",$thetxt); $thetxt=str_replace("[color=#444444]","",$thetxt); $thetxt=str_replace("[color=darkred]","",$thetxt); $thetxt=str_replace("[color=red]","",$thetxt); $thetxt=str_replace("[color=orange]","",$thetxt); $thetxt=str_replace("[color=brown]","",$thetxt); $thetxt=str_replace("[color=yellow]","",$thetxt); $thetxt=str_replace("[color=green]","",$thetxt); $thetxt=str_replace("[color=olive]","",$thetxt); $thetxt=str_replace("[color=cyan]","",$thetxt); $thetxt=str_replace("[color=blue]","",$thetxt); $thetxt=str_replace("[color=darkblue]","",$thetxt); $thetxt=str_replace("[color=indigo]","",$thetxt); $thetxt=str_replace("[color=violet]","",$thetxt); $thetxt=str_replace("[color=white]","",$thetxt); $thetxt=str_replace("[color=black]","",$thetxt); $thetxt=str_replace("[/color]","",$thetxt); $thetxt=str_replace("[size=7]","",$thetxt); $thetxt=str_replace("[size=9]","",$thetxt); $thetxt=str_replace("[size=12]","",$thetxt); $thetxt=str_replace("[size=14]","",$thetxt); $thetxt=str_replace("[size=18]","",$thetxt); $thetxt=str_replace("[/size]","",$thetxt); $blabla="$thetxt
"; $blabla.="$la[username] le ".date("d/m/y",$la[date]); if ($info[1]==$la[id_auteur] || $info[1]==2 || $info[0]==$ligne[id_auteur]) $blabla.=" Supprimer cet avis

"; echo "$na $poster_avatar $blabla"; if ($la[rep]!="") echo "
Réponse : $la[rep]"; if ($ligne[id_auteur]==$info[1]) echo "
Répondre :
"; echo ""; echo "\n"; $na++; } } else { $blabla="Aucun avis ajouté"; echo "$blabla\n"; } echo "
\n"; if ($info[1]!="") $texto=""; else $texto="une fois logué !"; if ($info[1]!="") $textoo=""; else $textoo="Inutile, vous n'etes pas logué...."; $message=stripslashes($textoo); if ($mod=="" && $info[1]!=$ligne[id_auteur] && $info[1]!="-1") { echo " $texto donnez votre avis
"; include ("formulaire.php"); echo "
\n"; } if ($mod!="") { $liste_avis=mysql_fetch_row(mysql_query("SELECT texte,id_auteur FROM collec_avis WHERE id='$mod'")); if ($liste_avis[1]==$info[1] || $info[1]==$ligne[id_auteur]) { $message=stripslashes(str_replace("
","\n",$liste_avis[0])); echo "donnez votre avis ! $precision_avis
"; include ("formulaire.php"); echo "
\n"; } } echo "\n"; } } // echo "\n"; } include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?>