Subversion Repositories Applications.projet

Rev

Rev 208 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
208 neiluj 1
<?php
327 alexandre_ 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: suppression_liste.php,v 1.3 2008-08-26 09:28:36 alexandre_tb Exp $
23
/**
24
* Application projet
25
*
26
* Supprime un liste
27
*
28
*@package projet
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
*@copyright     Tela-Botanica 2000-2008
32
*@version       $Revision: 1.3 $
33
// +------------------------------------------------------------------------------------------------------+
34
*/
208 neiluj 35
if (!isset ($domaine) || $domaine == '' || !isset($liste) || $liste == '') {
36
    die ('manque paramètre domaine ou liste') ;
37
}
38
$repertoire = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
39
$fichier_qmail = '/home/vpopmail/domains/'.$domaine.'/.qmail-'.$liste ;
40
 
41
 
42
echo exec ('rm '.$fichier_qmail, $output2, $ret2) ;
43
echo exec ('rm '.$fichier_qmail.'-default', $output2, $ret2) ;
44
echo exec ('rm '.$fichier_qmail.'-digest-owner', $output2, $ret2) ;
45
echo exec ('rm '.$fichier_qmail.'-digest-return-default', $output2, $ret2) ;
46
echo exec ('rm '.$fichier_qmail.'-owner', $output2, $ret2) ;
47
echo exec ('rm '.$fichier_qmail.'-return-default', $output2, $ret2) ;
48
echo 'rm '.$fichier_qmail ;
49
echo exec ('rm -rf '.$repertoire, $output, $ret) ;
50
echo 'rm -rf '.$repertoire ;
327 alexandre_ 51
/* +--Fin du code ----------------------------------------------------------------------------------------+
52
*
53
* $Log: not supported by cvs2svn $
54
*
55
* +-- Fin du code ----------------------------------------------------------------------------------------+
56
*/
208 neiluj 57
?>