19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: forums.php,v 1.8 2005-11-28 11:19:30 alexandre_tb Exp $ |
// CVS : $Id: forums.php,v 1.9 2006-04-19 13:49:31 alexandre_tb Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.8 $ |
*@version $Revision: 1.9 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
41,6 → 41,7 |
|
include_once (PROJET_CHEMIN_CLASSES.'HTML_formulaireMail.class.php') ; |
include_once (PROJET_CHEMIN_CLASSES.'inscription_liste.class.php') ; |
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ; |
// RAPPEL IMPORTANT |
// On se situe dans la méthode run() de la classe projetControleur |
// |
112,19 → 113,17 |
print '<a href="'.$this->_url->getURL().'">'.PROJET_ECRIRE_LISTE.'</a><br />'; |
|
print '<h2>'.PROJET_TOUS_LES_MESSAGES.'</h2>'."\n"; |
$info = new ezmlm_threads(); |
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ; |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $this->_action) ; |
$info->forcehref = $this->_url->getURL(); |
$info->listdir = $liste->listdir ; |
$info->listname = $info_liste->getNom(); |
$info->listdomain = $info_liste->getDomaine() ; |
if (!$info->listmessages()) { |
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ; |
} |
|
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $this->_action) ; |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM); |
|
$xml_parser = &new ezmlmAccessObject('calendrier_messages', $info_liste->getDomaine(), |
$info_liste->getNom(), $GLOBALS['lang'], |
$this->_url->getURL()) ; |
$xml_parser->load(); |
$resultat = $xml_parser->parse() ; |
$xml_parser->reset(); |
|
//$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $this->_action) ; |
|
// On teste si l'on vient d'une réponse à un email, si oui |
// on modifie $liste->action pour renvoyer le message auquelon vient de répondre |
if (isset($_POST['messageid'])) { |
135,15 → 134,47 |
if (count($liste->actionargs) < 2) { |
$liste->error(EZMLM_INVALID_SYNTAX,TRUE); |
} |
$show_msg = new ezmlm_msgdisplay(); |
$show_msg->listdir = $liste->listdir ; |
$show_msg->forcehref = $this->_url->getURL(); |
$show_msg->listname = $info_liste->getNom() ; |
$show_msg->_auth = & $this->_auth ; |
|
// actionargs[0] contient le nom du répertoire et actionargs[1] le nom du fichier |
// On appelle la fonction qui affiche un fichier |
print'<h2>'.PROJET_DERNIERS_MESSAGES.'</h2>'."\n" ; |
$show_msg->display($liste->actionargs[0] . "/" . $liste->actionargs[1]); |
$xml_parser->setAction ('message'); |
$xml_parser->setIdMessage($liste->actionargs[0], $liste->actionargs[1]) ; |
$xml_parser->load(); |
ob_start (); |
$xml_parser->parse() ; |
$mail = ob_get_contents() ; |
ob_end_clean(); |
|
$mimeDecode = new Mail_mimeDecode($mail) ; |
$mailDecode = $mimeDecode->decode(array('decode_bodies' => 'true', |
'include_bodies' => 'true')) ; |
$message = new ezmlm_msgdisplay() ; |
$message->listname = $info_liste->getNom(); |
if ($xml_parser->getNumeroFichierPrecedent() != '') { |
$this->_url->addQueryString ('action', 'show_msg'); |
print '[<a href="' . $this->_url->getURL(). '&actionargs[]='. |
$xml_parser->getNumeroRepertoirePrecedent().'&actionargs[]='. |
$xml_parser->getNumeroFichierPrecedent(). |
'">'.PROJET_PRECEDENT.'</a>]'; |
} else { |
print '['.PROJET_PRECEDENT.']' ; |
} |
if ($xml_parser->getNumeroFichierSuivant() != '') { |
print '[<a href="' .$this->_url->getURL().'&actionargs[]='.$xml_parser->getNumeroRepertoireSuivant() |
.'&actionargs[]='.$xml_parser->getNumeroFichierSuivant().'">'.PROJET_SUIVANT. '</a>]'; |
} else { |
print '['.PROJET_SUIVANT.']' ; |
} |
$this->_url->addQueryString ('action', 'repondre'); |
print '[<a href="'.$this->_url->getURL().'&actionargs[]='.$liste->actionargs[0]. |
'&actionargs[]='.$liste->actionargs[1].'">'.PROJET_REPONDRE.'</a>]'; |
|
print '<div class="message">' ; |
print $message->parse_entete_mail($mailDecode) ; |
$message->parse_template($mailDecode, $liste->actionargs[1], $liste->actionargs[0]); |
print $message->message_rendu; |
print '</div>' ; |
|
break; |
|
case "list_info": |
177,7 → 208,6 |
$author->forcehref = $this->_url->getURL() ; |
$author->display($liste->actionargs[0]); |
break; |
break ; |
case 'show_month' : |
$info = new ezmlm_listinfo(); |
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ; |