Bonjour à tous,
j'ai un petit soucis d'erreur sur une de mes sites :
Warning: Creating default object from empty value in /homepages/15/d150379570/htdocs/100ans/modules/forum/rubrique.php on line 79
je ne vois pas trop comment régler le problème...
Merci d'avance et bonnes fêtes de fin d'année à tous
NB: c'est sur ce site :
http://100ans.cdam62.fr/J'ai bien vu un post qui en parlait, c'est donc bien également après le passage en PHP 5.4. mais ne maitrisant pas vraiment je préfère vous demander le code à ajouter. Merci de votre aide
voici le code de la page en question :
Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
<?php
-
// ---------------------------------------------------------------
// KwsPHP kOoGar Web System
// $Id: rubrique.php 944 2012-09-12 15:30:57Z mike007 $
// ---------------------------------------------------------------
-
if (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}
-
if ($_REQUEST['cat'] == 'nonlus')
{
header ('location: '.url_rw($K_url_site.'index.php?mod='.$K_mod.'&ac=nonlu').'');
exit();
}
elseif ($_REQUEST['cat'] == 'SuivFav')
{
header ('location: '.url_rw($K_url_site.'index.php?mod='.$K_mod.'&ac=dePrev').'');
exit();
}
-
$cat=intval($_REQUEST['cat']);
-
if(empty($_SESSION[$CachePseudo.'_CatForum_0']))
{
include './modules/'.$K_mod.'/sessionCache.php';
}
-
if(!empty($cat))
{
if (!empty($K_pseudo)) unset($_SESSION['visiteur_forum_cat_acces']);
-
if(!isset($_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['voir']))
{
## Vérifie les grades pour les forums publics ou privés ##
$sql = '
SELECT `forum_cat`.`titre` AS titrecat,
`forum_cat`.`ref` AS refcat,
`forum_cat`.`id` AS idcat,
`forum_cat`.`gr_cretop` AS gr_cretopcat,
`forum_topic`.`attribut` AS attributTopic
FROM `forum_cat`
LEFT JOIN `forum_topic`
ON `forum_topic`.`ref` = `forum_cat`.`id`
WHERE `forum_cat`.`id` IN '.$_SESSION[$CachePseudo.'_CatForum_0'].'
AND `forum_cat`.`id`="'.$cat.'"
ORDER BY `forum_cat`.`position`
';
$reqtitre = reqmysql($sql);
$nb_topic_cat = mysql_num_rows($reqtitre);
-
if($nb_topic_cat>0)
{
$nb_topic_cat=0;
while ($restitre = mysql_fetch_object($reqtitre))
{
// pour avoir un compte sans les annnonces
if ($restitre->attributTopic == 0 or $restitre->attributTopic == 3) $nb_topic_cat++;
}
mysql_data_seek($reqtitre,0);
$restitre = mysql_fetch_object($reqtitre);
$_SESSION[$CachePseudo.'_forum_cat_acces'][$cat] = array(
'voir' => 'oui',
'grCreTop' => $restitre->gr_cretopcat,
'idcat' => $restitre->idcat,
'refcat' => $restitre->refcat,
'titrecat' => $restitre->titrecat,
'nbcat' => $nb_topic_cat
);
}
else
{
$_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['voir'] = 'non';
}
}
-
## La personne est autorisée à voir la catégorie ##
if($_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['voir']=='oui')
{
$restitre->idcat = intval($_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['idcat']);
$restitre->refcat = intval($_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['refcat']);
$restitre->titrecat = $_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['titrecat'];
$restitre->gr_cretopcat = intval($_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['grCreTop']);
$nb_topic_cat = $_SESSION[$CachePseudo.'_forum_cat_acces'][$cat]['nbcat'];
// variable pour l'entête du forum
$Ref_cat_forum = $restitre->refcat;
-
if ($K_forum_entete == 'haut') include_once 'modules/'.$K_mod.'/entete.php';
if ($K_forum_legende == 'haut') include_once 'modules/'.$K_mod.'/legende.php';
-
$Name_SF = ($restitre->refcat!=0 ? (!empty($title_add_plus) ? $title_add_plus:'Sous Forum'):'');
$liste_histo = '
<img src="./themes/'.$K_theme.'/images/forum/puce.png" alt="puce" style="'.$StylePuceFofo.'" />
<a href="'.url_rw('./index.php?mod='.$K_mod).'">Index du Forum</a>
'.($restitre->refcat!=0 ? ' » <a href="'.url_rw('./index.php?mod='.$K_mod.'&ref='.$restitre->refcat,array($Name_SF)).'">'.$Name_SF.'</a>':'').'
» <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac='.$K_ac.'&cat='.intval($restitre->idcat),array($Name_SF,$restitre->titrecat)).'">'.ax($restitre->titrecat).'</a>';
-
$texte_nouveau_topic = '<div style="float:left">';
## Variable pour un nouveau sujet ##
if ($restitre->gr_cretopcat != -2 and $K_grade >= $restitre->gr_cretopcat)
{
## modifications by gothicae ##
if(file_exists('themes/'.$K_theme.'/images/forum/poster.png'))
{
$texte_nouveau_topic .= '<a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=poster&cat='.$cat,array('Nouveau-sujet')).'"><img src="themes/'.$K_theme.'/images/'.$K_mod.'/poster.png" alt="Créer un nouveau sujet" style="border:none;'.$StylePuceFofo.';margin:5px" /></a>';
}
else
{
$texte_nouveau_topic .= '<img src="themes/'.$K_theme.'/images/'.$K_mod.'/puce.png" alt="puce" style="'.$StylePuceFofo.'" />
<a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=poster&cat='.$cat,array('Nouveau-sujet')).'">Créer un nouveau sujet</a>';
}
}
else
{
$texte_nouveau_topic .= '<img src="themes/'.$K_theme.'/images/'.$K_mod.'/puce.png" alt="puce" style="'.$StylePuceFofo.'" />';
if ($restitre->gr_cretopcat == -2)
$texte_nouveau_topic .= ' Catégorie Verrouillée.';
else
$texte_nouveau_topic .= ' Vous devez être '.($IsVisitorBot ? '<strong>'.get_grd_name($restitre->gr_cretopcat).'</strong>':'<a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=poster&cat='.$cat,array('Nouveau-sujet')).'"><strong>'.get_grd_name($restitre->gr_cretopcat).'</strong></a>').' pour créer un nouveau sujet.';
}
$texte_nouveau_topic .= '<br /></div>';
-
-
########################
## Découpe des pages ##
########################
$vi='';
if(isset($_REQUEST['view']) && intval($_REQUEST['view'])!=0)
{
$forum_nbtopic=intval($_REQUEST['view']);
$vi='&view='.$forum_nbtopic;
}
-
$debut = $_GET['debut'];
if (!isset($debut)) $debut = 0;
-
$debut = abs($debut);
-
$page = ceil($nb_topic_cat/$forum_nbtopic);
-
if ($page=='0') $page='1';
-
$cours = ($debut + $forum_nbtopic)/$forum_nbtopic;
-
#################################
## Affiche les numéros des pages ##
#################################
-
if ($page != 1)
{
$liste_pages = '<div class="NavRubFo" style="float:right;margin-right:5px">';
$liens_pages = ''; //$liste_pages .= ' [';
if ($cours > 4) $liens_pages .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac='.$K_ac.'&cat='.$cat.$vi.'#p',array($Name_SF,$restitre->titrecat)).'">1</a> ... ';
-
$select_pages = '<select name="debut" onchange="window.location.replace(\'./index.php?mod='.$K_mod.'&ac='.$K_ac.'&cat='.$cat.'\'+(this.value>0 ? \'&debut=\'+this.value:\'\')+\''.$vi.'#p\')">';
for ($loop=1; $loop<=$page; $loop++)
{
$page2 = intval($loop*$forum_nbtopic-$forum_nbtopic);
$select_pages .= '<option value="'.$page2.'" '.($loop==$cours? 'selected="selected"':'').'>Page n° '.$loop.' / '.$page.'</option>';
-
if (intval($cours-$loop) <= 3 && intval($loop-$cours) <= 3)
{
if($loop==$cours)
{
$liens_pages .= ' <span>'.$loop.'</span> ';
}
else
{
$liens_pages .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac='.$K_ac.'&cat='.$cat.($page2 > 0 ? '&debut='.intval($page2) : '').$vi.'#p',array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$loop.'</a> ';
}
}
}
$select_pages .= '</select>';
-
if ($cours <= $page-4) $liens_pages .= ($cours < ($page-4) ? '... ':'').' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac='.$K_ac.'&cat='.$cat.'&debut='.intval(($page*$forum_nbtopic-$forum_nbtopic)).$vi.'#p',array($Name_SF,$restitre->titrecat)).'">'.$page.'</a> ';
//$liste_pages .= ']<br />';
//if ($page>6) $liste_pages .= $select_pages.' ';
$liste_pages .= $nb_topic_cat.' sujet'.($nb_topic_cat>1 ? 's':'').' ♦ '.$select_pages.' ♦ '.$liens_pages;
-
if ($K_grade >= $K_forum_grade)
{
$liste_pages .= ' ♦
<!--Pas de possibilité de mettre un ID sinon erreur Xhtml
au changement du nbre de page : retour a la page une et non a la page courante => sinon certains cas peuvent poser un soucis-->
<select name="view" onchange="window.location.replace(\'./index.php?mod='.$K_mod.'&ac='.$K_ac.'&cat='.$cat.'&view=\'+this.value+\'#p\')">
<option value="'.$forum_nbtopic.'">'.$forum_nbtopic.' sujets / page</option>
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="200">200</option>
</select>';
}
$liste_pages .= '</div>';
}
-
/*080323gothicae*/
open_table();
-
#############################################
## Si la personne est membre, elle peut poster ##
#############################################
-
echo '<a class="ancre" name="p"></a>'.$liste_histo.'<br />';
echo '<br />'.$texte_nouveau_topic;
echo $liste_pages.'<br style="clear:both" />';
-
/*080323gothicae*/
close_table();
-
$dir = file_exists('themes/'.$K_theme.'/images/'.$K_mod.'/lu_cat.png');
-
-
if ($K_grade >= $forum_grade)
{
########################################
## debut form pour modération en masse
########################################
echo'
<script type="text/javascript" src="./modules/forum/moderation.js"></script>
<form name="moderation_masse_form" method="post" action="">';
}
-
-
###################
## Les annonces ##
###################
-
$sql = '
SELECT `nbrep`,
`forum_topic`.`date`,
`dern_date`,
`forum_topic`.`id`,
`dern_rep`,
`dern_id`,
`dern_pseudo`,
`attribut`,
`titre`,
`auteur_id`,
`auteur`,
`hit`,
`resolu`,
`sondage`,
`users_der`.`grade` AS gr_der,
`users_auteur`.`grade` AS gr_auteur
FROM `forum_topic`
LEFT JOIN `users` AS users_der
ON `users_der`.`id` = `forum_topic`.`dern_id`
LEFT JOIN `users` AS users_auteur
ON `users_auteur`.`id` = `forum_topic`.`auteur_id`
WHERE `ref`="'.$cat.'"
AND (`attribut` = "2" OR `attribut` = "1")
ORDER BY `dern_date` DESC
';
-
$r_aff_topic = reqmysql($sql);
$NB_Annonces = mysql_num_rows($r_aff_topic);
$check_annonce_topic = 0;
-
if ($NB_Annonces > 0)
{
if (is_callable(forum_head2)) forum_head2('Annonces');
else forum_head('Annonces');
}
-
-
while($ligne_topic = mysql_fetch_object($r_aff_topic))
{
-
#######################
## Mémorise les infos ##
#######################
-
$lien_dern_post = (ceil($ligne_topic->nbrep/$forum_nbrep)-1)*$forum_nbrep;
-
if($lien_dern_post>0) $debute = '&debut='.intval($lien_dern_post);
else $debute = '';
-
$lu =((isset($_SESSION['forum_lu'][$ligne_topic->id]) && $_SESSION['forum_lu'][$ligne_topic->id]>=$ligne_topic->dern_date) || $_SESSION['forum_lu']['all']>=$ligne_topic->dern_date?TRUE:FALSE);
-
$dernier_message = get_grd_symbol($ligne_topic->gr_der).'
<a href="'.url_rw('./index.php?mod=espace_membre&ac=profil&id='.intval($ligne_topic->dern_id),array($ligne_topic->dern_pseudo)).'">
<strong>'.$ligne_topic->dern_pseudo.'</strong>
</a>
<a title="Dernier message" href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).$debute.'#r'.intval($ligne_topic->dern_rep),array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">
<img src="themes/'.$K_theme.'/images/'.$K_mod.'/dernier_post.png" alt="dernier_post" style="border:none" />
</a>
<br />'.kws_date("d/m/Y\, H\:i",$ligne_topic->dern_date,1);
$titre = ax($ligne_topic->titre);
-
if ($ligne_topic->resolu==1) $titre = '<span style="color:'.$topic_R.'">[R]</span> '.$titre;
if (!empty($ligne_topic->sondage)) $titre = '<span style="color:'.$topic_S.'">[S]</span> '.$titre;
-
if($ligne_topic->attribut==2)
{
$titre = '<span style="color:'.$topic_A.'">[A]</span> '.$titre;
}
else
{
$titre = '<span style="color:'.$topic_AV.'">[AV]</span> '.$titre;
}
-
-
####################################
## Affichage des numéros des pages ##
####################################
-
$nb = ceil($ligne_topic->nbrep/$forum_nbrep)-1;
$message = '';
$limite = $nb+2;
$deja = 0;
-
if ($nb>0)
{
$message .= '<br /><span class="NavRubTopicFo" style="float:right;margin-right:5px;font-size:smaller">[ Page: ';
-
for($nombre=1;$nombre<=$nb+1;$nombre++)
{
if($nombre==1)
{
$message .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).'#p',array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$nombre.'</a> ';
}
else if($nombre>1 && $nombre<=$nb-2)
{
if ($deja==0)
{
$message .= ' ... ';
$deja=1;
}
}
else
{
$pages = ($nombre-1)*$forum_nbrep;
-
if($nombre<$nb+1)
$message .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).($pages>0 ? '&debut='.intval($pages):'').'#p',array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$nombre.'</a> ';
else
$message .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).($pages>0 ? '&debut='.intval($pages):'').'#p',array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$nombre.'</a> ';
}
}
$message .= ' ]</span>';
}
-
// Gestion de l'image du post
if($ligne_topic->attribut==2)
{
$img_rep ='annonce.png" alt="annonce';
}
else
{
$img_rep ='annonce_lock.png" alt="annonce';
}
-
$image = ($dir && !$lu ? 'themes/'.$K_theme.'/images/'.$K_mod.'/':'themes/'.$K_theme.'/images/'.$K_mod.'/').(!$lu ? 'lu_':'').$img_rep;
-
if ($K_grade >= $forum_grade)
{
$idtopiccheck = intval($ligne_topic->id);
$check_topic = '<input style="float:right" type="checkbox" id="choice'.$idtopiccheck.'" name="moderation_masse_check[]" value="'.$idtopiccheck.'" onclick="compteur('.$idtopiccheck.');"/> ';
$check_annonce_topic++;
}
$auteurtopic = get_grd_symbol($ligne_topic->gr_auteur).'<a href="'.url_rw('./index.php?mod=espace_membre&ac=profil&id='.intval($ligne_topic->auteur_id),array($ligne_topic->auteur)).'"><strong>'.ax($ligne_topic->auteur).'</strong></a>';
$auteurtopic .= '<br />'.kws_date("d/m/Y\, H\:i",$ligne_topic->date,1);
-
## Fin d'affichage des pages ##
-
// modifications by gothicae 080301
-
if (is_callable(forum_mid2))
{
// Envoie des valeurs au bloc.php du thème (rappel : function forum_mid ($image, $titre, $rep, $auteur, $hits, $dernier)
forum_mid2($image,$check_topic.'<a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id),array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$titre.'</a>'.$message.'', $ligne_topic->nbrep, $auteurtopic,intval($ligne_topic->hit), $dernier_message, intval($ligne_topic->id));
}
else
{
// Envoie des valeurs au bloc.php du thème (rappel : function forum_mid ($image, $titre, $rep, $auteur, $hits, $dernier)
forum_mid($image,$check_topic.'<a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id),array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$titre.'</a>'.$message.'', $ligne_topic->nbrep, $auteurtopic,intval($ligne_topic->hit), $dernier_message);
}
-
}
-
## Fin d'affichage des annonces ##
-
if ($NB_Annonces > 0)
{
if (is_callable(forum_close2)) forum_close2();
else forum_close();
}
if (is_callable(forum_head2)) forum_head2('Sujets');
else forum_head('Sujets');
-
##############################
## Affichage des autres topics ##
##############################
$sql = '
SELECT `attribut`,
`nbrep`,
`forum_topic`.`date`,
`dern_date`,
`forum_topic`.`id`,
`dern_rep`,
`dern_id`,
`dern_pseudo`,
`titre`,
`auteur_id`,
`auteur`,
`hit`,
`resolu`,
`sondage`,
`users_der`.`grade` AS gr_der,
`users_auteur`.`grade` AS gr_auteur
FROM `forum_topic`
LEFT JOIN `users` AS users_der
ON `users_der`.`id` = `forum_topic`.`dern_id`
LEFT JOIN `users` AS users_auteur
ON `users_auteur`.`id` = `forum_topic`.`auteur_id`
WHERE `ref`="'.$cat.'"
AND `attribut` <> "2"
AND `attribut` <> "1"
ORDER BY `dern_date` DESC
LIMIT '.$debut.', '.$forum_nbtopic.'
';
-
$r_aff_topic = reqmysql($sql);
-
// modifications by gothicae 290208
$calcul = '1';
// $nbrcellbyligne permet de choisir combien de cellule <td></td> vous souhaitez afficher par ligne
$nbrcellbyligne = '2';
-
while($ligne_topic = mysql_fetch_object($r_aff_topic))
{
-
// Gestion de l'icône du message ##
-
$img_rep ='dossier.png" alt="dossier';
-
if ($ligne_topic->attribut==3)
{
if ($ligne_topic->nbrep>=$forum_msgchaud)
{
$img_rep='lock2.png" alt="dossier chaud verrouillé';
}
else
{
$img_rep='lock.png" alt="verrouillé';
}
}
else
{
if ($ligne_topic->nbrep>=$forum_msgchaud)
{
$img_rep='dossier2.png" alt="dossier chaud';
}
}
-
##########################
## On mémorise les infos ##
##########################
-
-
$lien_dern_post = (ceil($ligne_topic->nbrep/$forum_nbrep)-1)*$forum_nbrep;
-
if($lien_dern_post>0) $debute = '&debut='.intval($lien_dern_post);
else $debute = '';
-
$lu =((isset($_SESSION['forum_lu'][$ligne_topic->id]) && $_SESSION['forum_lu'][$ligne_topic->id]>=$ligne_topic->dern_date) || $_SESSION['forum_lu']['all']>=$ligne_topic->dern_date?TRUE:FALSE);
-
$dernier_message = get_grd_symbol($ligne_topic->gr_der).'
<a href="'.url_rw('./index.php?mod=espace_membre&ac=profil&id='.intval($ligne_topic->dern_id),array($ligne_topic->dern_pseudo)).'">
<strong>'.$ligne_topic->dern_pseudo.'</strong>
</a>
<a title="Dernier message" href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).$debute.'#r'.intval($ligne_topic->dern_rep),array('','',$ligne_topic->titre)).'">
<img src="themes/'.$K_theme.'/images/'.$K_mod.'/dernier_post.png" alt="dernier_post" style="border:none" />
</a>
<br />'.kws_date('d/m/Y\, H:i',$ligne_topic->dern_date,1);
$titre = ax($ligne_topic->titre);
-
if ($ligne_topic->resolu==1) $titre = '<span style="color:'.$topic_R.'">[R]</span> '.$titre;
if (!empty($ligne_topic->sondage)) $titre = '<span style="color:'.$topic_S.'">[S]</span> '.$titre;
if ($ligne_topic->attribut==3) $titre = '<span style="color:'.$topic_V.'">[V]</span> '.$titre;
-
########################
## Affichage des pages ##
########################
-
$nb = ceil($ligne_topic->nbrep/$forum_nbrep)-1;
$message = '';
$limite = $nb+2;
$deja = 0;
-
if ($nb>0)
{
$message .= '<br /><span class="NavRubTopicFo" style="float:right;margin-right:5px;font-size:smaller">[ Page: ';
-
for($nombre=1;$nombre<=$nb+1;$nombre++)
{
-
if($nombre==1)
{
$message .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).'#p',array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$nombre.'</a> ';
}
else if($nombre>1 && $nombre<=$nb-2)
{
-
if ($deja==0)
{
$message .= ' ... ';
$deja = 1;
}
}
else
{
$pages = ($nombre-1)*$forum_nbrep;
-
if($nombre<$nb+1)
$message .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).($pages>0 ? '&debut='.intval($pages):'').'#p',array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$nombre.'</a> ';
else
$message .= ' <a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id).($pages>0 ? '&debut='.intval($pages):'').'#p',array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$nombre.'</a> ';
}
}
$message .= ' ]</span>';
}
-
// Gestion de l'image de catégorie
$image = ($dir && !$lu ? 'themes/'.$K_theme.'/images/'.$K_mod.'/':'themes/'.$K_theme.'/images/'.$K_mod.'/').(!$lu ? 'lu_':'').$img_rep;
-
if ($K_grade >= $forum_grade)
{
$idtopiccheck = intval($ligne_topic->id);
$check_topic = '<input style="float:right" type="checkbox" id="choice'.$idtopiccheck.'" name="moderation_masse_check[]" value="'.$idtopiccheck.'" onclick="compteur('.$idtopiccheck.');"/> ';
}
$auteurtopic = get_grd_symbol($ligne_topic->gr_auteur).'<a href="'.url_rw('./index.php?mod=espace_membre&ac=profil&id='.intval($ligne_topic->auteur_id),array($ligne_topic->auteur)).'"><strong>'.ax($ligne_topic->auteur).'</strong></a>';
$auteurtopic .= '<br />'.kws_date("d/m/Y\, H\:i",$ligne_topic->date,1);
-
//modifications by gothicae 080301
-
if (is_callable(forum_mid2))
{
// Envoie des valeurs au bloc.php du thème (rappel : function forum_mid ($image, $titre, $rep, $auteur, $hits, $dernier)
forum_mid2($image,$check_topic.'<a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id),array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$titre.'</a>'.$message.'', $ligne_topic->nbrep, $auteurtopic, intval($ligne_topic->hit), $dernier_message, intval($ligne_topic->id));
-
//Calcul du nombre de td à afficher sur la largeur
$division = $calcul/$nbrcellbyligne;
-
if ( is_int($division) )
{
echo '</tr>
<tr>';
}
$calcul = $calcul+1;
}
else
{
// Envoie des valeurs au bloc.php du thème (rappel : function forum_mid ($image, $titre, $rep, $auteur, $hits, $dernier)
forum_mid($image,$check_topic.'<a href="'.url_rw('./index.php?mod='.$K_mod.'&ac=voir&id='.intval($ligne_topic->id),array($Name_SF,$restitre->titrecat,$ligne_topic->titre)).'">'.$titre.'</a>'.$message.'', $ligne_topic->nbrep, $auteurtopic, intval($ligne_topic->hit), $dernier_message);
}
}
-
-
if (is_callable(forum_close2)) forum_close2();
else forum_close();
-
if ($K_grade >= $forum_grade)
{
###################################
## Option de modération de masse
###################################
-
open_table();
echo'
<div style="text-align: right;clear:both">
<input type="checkbox" id="all" name="all" value="all" onclick="checkAllbox()" />
<select id="moderation_masse_select" name="moderation_masse_select" onchange="select_ac(this.options[this.selectedIndex].value)">
<option value="nochoice">- - - Multi-Modération - - -</option>
<option value="supprimer">Effacer les sujets</option>
<option value="move">Déplacer les sujets</option>
<!--<option value="moveposts">Fusionner le sujet</option>-->
<option value="annonce">Mettre/enlever les sujets en annonce</option>
<option value="lock">Verrouiller/Déverrouiller les sujets</option>
</select>
<input type="hidden" name="mod" id="mod" value="forum" />
<input type="hidden" name="ac" id="ac" value="" />
<input type="hidden" name="type" id="type" value="topic" />
<input type="hidden" name="cat" id="cat" value="'.$cat.'" />
<input type="hidden" name="id" id="id" value="id" />
<input type="hidden" name="countcheck" id="countcheck" value="0" />
<input type="button" name="modbuttoncompteur" id="modbuttoncompteur" disabled="disabled" value="Avec ceux sélectionnés (0)" onclick="verifmultichoice(this.form)"/>
</div>
';
close_table();
-
// fin de la forme pour suppression en masse
echo'</form>';
}
-
/*080323gothicae*/
open_table();
echo $liste_pages;
//LA PERSONNE EST UN MEMBRE, ELLE PEUT DONC POSTER
echo $texte_nouveau_topic.'<br />';
echo '<br style="clear:both" />'.$liste_histo;
/*080323gothicae*/
close_table();
-
if ($K_forum_legende == 'bas') include_once 'modules/'.$K_mod.'/legende.php';
if ($K_forum_entete == 'bas') include_once 'modules/'.$K_mod.'/entete.php';
}
else// LA PERSONNE N'A PAS LE GRADE
ZoneReserve('Identification');
}
else // TOUS LES PARAMETRES N'ONT PAS ETE SAISIS : Tentative de hack??
ZoneReserve('','<strong>Une erreur est survenue lors de l\'action.</strong>','index.php?mod=forum');
?>
-