Subversion Repositories Applications.projet

Rev

Rev 416 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 416 Rev 421
Line 17... Line 17...
17
date_default_timezone_set('Europe/Paris');
17
date_default_timezone_set('Europe/Paris');
Line 18... Line 18...
18
 
18
 
19
$path = '/home/vpopmail/domains';
19
$path = '/home/vpopmail/domains';
Line -... Line 20...
-
 
20
$domaine = 'tela-botanica.org';
-
 
21
 
-
 
22
/*
-
 
23
  List (ezmlm_threads::listmessages()), /calendrier_messages.php, 
-
 
24
  Recent (ezmlm_listinfo::show_recentmsgs()), /derniers_messages.php?domaine=&liste=
-
 
25
  Month (ezmlm_listinfo::show_month(X)), /messages_mois.php?domaine=&liste=&actionargs[]=201306
-
 
26
  month/Thread (ezmlm_listinfo::show_month(X)), /messages_thread.php?domaine=&liste=&actionargs[]=201306
-
 
27
  XXX: Show (ezmlm_msgdisplay::display(X)), /message.php?domaine=&liste=&action=show_msg&actionargs[]=18&actionargs[]=09
20
$domaine = 'tela-botanica.org';
28
 
-
 
29
  -p: path
-
 
30
  -d: domaine
-
 
31
  
21
 
32
*/
22
$liste = $argv[1];
33
$options = getopt("LRMTp:d:");
-
 
34
if(isset($options['p'])) $path = $options['p'];
Line 23... Line 35...
23
if(isset($argv[2])) $domaine = $argv[2];
35
if(isset($options['d'])) $domaine = $options['d'];
Line 24... Line 36...
24
if(isset($argv[3])) $path = $argv[3];
36
$liste = array_slice($argv, -1)[0];
Line 25... Line 37...
25
 
37
 
-
 
38
if(!$liste || !$domaine || !$path) die;
-
 
39
 
-
 
40
include_once 'ezmlm-php-2.0/ezmlm.php' ;
26
if(!$liste || !$domaine || !$path) die;
41
 
-
 
42
// Parametrage de la liste
-
 
43
if(array_key_exists('R', $options) || array_key_exists('M', $options)) {
-
 
44
    $info = new ezmlm_listinfo();   
27
 
45
} else { // cal & show threads
Line 28... Line 46...
28
include_once 'ezmlm-php-2.0/ezmlm.php' ;
46
    $info = new ezmlm_threads();
29
 
47
}
30
// Parametrage de la liste
48
 
31
$info = new ezmlm_threads();
49
 
Line -... Line 50...
-
 
50
if (!$info) die('Les fichiers de la liste ne sont pas visible sur le serveur');
32
if (!$info) die('Les fichiers de la liste ne sont pas visible sur le serveur');
51
 
-
 
52
$info->forcehref = $url;
-
 
53
$info->listdir = $path . '/' . $domaine . '/' . $liste ;
-
 
54
$info->listname = $liste;
-
 
55
$info->listdomain = $domaine ;
-
 
56
 
-
 
57
if(array_key_exists('R', $options)) {
-
 
58
    echo $info->show_recentmsgs();
-
 
59
}
-
 
60
elseif(array_key_exists('M', $options)) {
-
 
61
    echo $info->show_month("201307");