Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
- |
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
4 |
// | PHP version 4.1 |
|
- |
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
- |
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
8 |
// | This library is free software; you can redistribute it and/or |
|
- |
|
9 |
// | modify it under the terms of the GNU General Public |
|
- |
|
10 |
// | License as published by the Free Software Foundation; either |
|
- |
|
11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
- |
|
12 |
// | |
|
- |
|
13 |
// | This library is distributed in the hope that it will be useful, |
|
- |
|
14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
- |
|
15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
- |
|
16 |
// | General Public License for more details. |
|
- |
|
17 |
// | |
|
- |
|
18 |
// | You should have received a copy of the GNU General Public |
|
- |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
- |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
- |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
22 |
// CVS : $Id: supprimer.php,v 1.3 2008-08-26 09:29:33 alexandre_tb Exp $
|
- |
|
23 |
/**
|
2 |
/**
|
24 |
* Application projet
|
- |
|
25 |
*
|
- |
|
26 |
* Supprime un message d'une liste
|
3 |
* Supprime un message d'une liste
|
27 |
* Entrée domaine, liste, numero_repertoire, numero_message
|
4 |
* Entrée domaine, liste, numero_repertoire, numero_message
|
28 |
*
|
- |
|
29 |
*@package projet
|
- |
|
30 |
//Auteur original :
|
- |
|
31 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
- |
|
32 |
*@copyright Tela-Botanica 2000-2008
|
- |
|
33 |
*@version $Revision: 1.3 $
|
- |
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
35 |
*/
|
5 |
*/
|
Line 36... |
Line 6... |
36 |
|
6 |
|
37 |
$repertoire_liste = '/home/vpopmail/domains/'.$domaine.'/'.$liste;
|
7 |
$repertoire_liste = '/home/vpopmail/domains/'.$domaine.'/'.$liste;
|
Line 38... |
Line 8... |
38 |
$message_a_supprimer = $repertoire_liste.'/archive/'.$actionargs[0].'/'.$actionargs[1] ;
|
8 |
$message_a_supprimer = $repertoire_liste.'/archive/'.$actionargs[0].'/'.$actionargs[1] ;
|
39 |
|
9 |
|
40 |
if (file_exists ($message_a_supprimer)) {
|
10 |
if (file_exists ($message_a_supprimer)) {
|
41 |
echo $message_a_supprimer;
|
11 |
echo $message_a_supprimer;
|
42 |
exec ('rm '.$message_a_supprimer) ;
|
12 |
exec ('rm '.$message_a_supprimer) ;
|
43 |
exec ('ezmlm-archive -c '.$repertoire_liste);
|
13 |
exec ('ezmlm-archive -c '.$repertoire_liste);
|
44 |
exec ('ezmlm-idx '.$repertoire_liste);
|
- |
|
45 |
}
|
- |
|
46 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
47 |
*
|
- |
|
48 |
* $Log: not supported by cvs2svn $
|
- |
|
49 |
*
|
- |
|
50 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
51 |
*/
|
14 |
exec ('ezmlm-idx '.$repertoire_liste);
|