Subversion Repositories Applications.projet

Rev

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

Rev 327 Rev 359
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: suppression_liste.php,v 1.3 2008-08-26 09:28:36 alexandre_tb Exp $
-
 
23
/**
-
 
24
* Application projet
-
 
25
*
2
 
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
*/
-
 
35
if (!isset ($domaine) || $domaine == '' || !isset($liste) || $liste == '') {
3
if (!isset ($domaine) || $domaine == '' || !isset($liste) || $liste == '') {
36
    die ('manque paramètre domaine ou liste') ;
4
    die ('manque paramètre domaine ou liste') ;
37
}
5
}
38
$repertoire = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
6
$repertoire = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
39
$fichier_qmail = '/home/vpopmail/domains/'.$domaine.'/.qmail-'.$liste ;
7
$fichier_qmail = '/home/vpopmail/domains/'.$domaine.'/.qmail-'.$liste ;
Line 46... Line 14...
46
echo exec ('rm '.$fichier_qmail.'-owner', $output2, $ret2) ;
14
echo exec ('rm '.$fichier_qmail.'-owner', $output2, $ret2) ;
47
echo exec ('rm '.$fichier_qmail.'-return-default', $output2, $ret2) ;
15
echo exec ('rm '.$fichier_qmail.'-return-default', $output2, $ret2) ;
48
echo 'rm '.$fichier_qmail ;
16
echo 'rm '.$fichier_qmail ;
49
echo exec ('rm -rf '.$repertoire, $output, $ret) ;
17
echo exec ('rm -rf '.$repertoire, $output, $ret) ;
50
echo 'rm -rf '.$repertoire ;
18
echo 'rm -rf '.$repertoire ;
51
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
52
*
-
 
53
* $Log: not supported by cvs2svn $
-
 
54
*
19
 
55
* +-- Fin du code ----------------------------------------------------------------------------------------+
-
 
56
*/
-
 
57
?>
20
?>