Subversion Repositories Applications.projet

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
416 raphael 1
<?php
2
/**
3
 * @author        Raphaël Droz <raphael@tela-botanica.org>
4
 * @copyright     2013, Tela-Botanica
5
 * @license GPL v3
6
 * @license CECILL v2
7
 */
8
 
9
// eg: php clical.php amorphophallus_et_araceae|html2text
10
if (PHP_SAPI !== 'cli') die;
11
 
12
// for standalone use
13
// WARNING: this uses cache !
14
// php-cli user could have != permission than a webserver
15
// then cache file created could become inaccessible to webserver
16
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE ^ E_DEPRECATED);
17
date_default_timezone_set('Europe/Paris');
18
 
19
$path = '/home/vpopmail/domains';
20
$domaine = 'tela-botanica.org';
21
 
22
$liste = $argv[1];
23
if(isset($argv[2])) $domaine = $argv[2];
24
if(isset($argv[3])) $path = $argv[3];
25
 
26
if(!$liste || !$domaine || !$path) die;
27
 
28
include_once 'ezmlm-php-2.0/ezmlm.php' ;
29
 
30
// Parametrage de la liste
31
$info = new ezmlm_threads();
32
if (!$info) die('Les fichiers de la liste ne sont pas visible sur le serveur');
33
 
34
$info->forcehref = $url;
35
$info->listdir = $path . '/' . $domaine . '/' . $liste ;
36
$info->listname = $liste;
37
$info->listdomain = $domaine ;
38
 
39
echo $info->listmessages();