Subversion Repositories Applications.projet

Compare Revisions

Ignore whitespace Rev 420 → Rev 421

/trunk/classes/ezmlm-php-2.0/services_vpopmail/clical.php
19,16 → 19,34
$path = '/home/vpopmail/domains';
$domaine = 'tela-botanica.org';
 
$liste = $argv[1];
if(isset($argv[2])) $domaine = $argv[2];
if(isset($argv[3])) $path = $argv[3];
/*
List (ezmlm_threads::listmessages()), /calendrier_messages.php,
Recent (ezmlm_listinfo::show_recentmsgs()), /derniers_messages.php?domaine=&liste=
Month (ezmlm_listinfo::show_month(X)), /messages_mois.php?domaine=&liste=&actionargs[]=201306
month/Thread (ezmlm_listinfo::show_month(X)), /messages_thread.php?domaine=&liste=&actionargs[]=201306
XXX: Show (ezmlm_msgdisplay::display(X)), /message.php?domaine=&liste=&action=show_msg&actionargs[]=18&actionargs[]=09
 
-p: path
-d: domaine
*/
$options = getopt("LRMTp:d:");
if(isset($options['p'])) $path = $options['p'];
if(isset($options['d'])) $domaine = $options['d'];
$liste = array_slice($argv, -1)[0];
 
if(!$liste || !$domaine || !$path) die;
 
include_once 'ezmlm-php-2.0/ezmlm.php' ;
 
// Parametrage de la liste
$info = new ezmlm_threads();
if(array_key_exists('R', $options) || array_key_exists('M', $options)) {
$info = new ezmlm_listinfo();
} else { // cal & show threads
$info = new ezmlm_threads();
}
 
 
if (!$info) die('Les fichiers de la liste ne sont pas visible sur le serveur');
 
$info->forcehref = $url;
36,4 → 54,15
$info->listname = $liste;
$info->listdomain = $domaine ;
 
echo $info->listmessages();
if(array_key_exists('R', $options)) {
echo $info->show_recentmsgs();
}
elseif(array_key_exists('M', $options)) {
echo $info->show_month("201307");
}
elseif(array_key_exists('T', $options)) {
$info->tempdir = '/tmp' ; echo $info->load("201306");
}
else {
echo $info->listmessages(); // ezmlm_threads
}