Alternc  latest
Alternc logiel libre pour l'hébergement
ssl_delete.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  LICENSE
10 
11  This program is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License (GPL)
13  as published by the Free Software Foundation; either version 2
14  of the License, or (at your option) any later version.
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  To read the license please visit http://www.gnu.org/copyleft/gpl.html
22  ----------------------------------------------------------------------
23  Original Author of file: Benjamin Sonntag
24  Purpose of file: DELETE an ssl certificate
25  ----------------------------------------------------------------------
26  */
27 require_once("../class/config.php");
28 
29 $fields = array(
30  "id" => array("post", "integer", ""),
31  "delete" => array("post", "string", ""),
32  "confirm" => array("post", "string", ""),
33 );
35 
36 if (!isset($delete)) {
37  require_once("ssl_list.php");
38  exit();
39 }
40 
41 $ok = $ssl->del_certificate($id);
42 
43 if ($ok) $info=_("Your SSL Certificate has been deleted");
44 
45 $error = $err->errstr();
46 
47 require_once("ssl_list.php");
48 
exit
Definition: adm_doadd.php:70
$err
Definition: bootstrap.php:72
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
Definition: functions.php:688
if(!isset($delete)) $ok
Definition: ssl_delete.php:41
$fields
Definition: ssl_delete.php:29
$error
Definition: ssl_delete.php:45
if(!isset($is_include)) if(! $key &&! $crt) $id
if($error) $info