Alternc
latest
Alternc logiel libre pour l'hébergement
ssl_donew.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: Create / Import an SSL Certificate
25
----------------------------------------------------------------------
26
*/
27
require_once(
"../class/config.php"
);
28
29
if
(!isset(
$is_include
)) {
30
$fields
= array(
31
"fqdn"
=> array(
"request"
,
"string"
,
""
),
32
"fqdnt"
=> array(
"request"
,
"string"
,
""
),
33
);
34
getFields
(
$fields
);
35
}
36
37
if
(!$fqdn && !$fqdnt) {
38
$error
= _(
"Please enter a proper domain name"
);
39
require_once(
"ssl_new.php"
);
40
exit
();
41
}
42
43
if
($fqdnt)
44
$d
= $fqdnt;
45
if
($fqdn)
46
$d
= $fqdn;
47
48
$id
= $ssl->new_csr(
$d
);
49
$error
=
$err
->errstr();
50
if
(
$error
) {
51
require_once(
"ssl_new.php"
);
52
exit
();
53
}
54
55
$is_include
=
true
;
56
require_once(
"ssl_view.php"
);
57
exit
exit
Definition:
adm_doadd.php:70
$err
$err
Definition:
bootstrap.php:72
$fields
$fields
Definition:
aws_add.php:27
$d
$d
Definition:
awstats.cache.php:7
getFields
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
$is_include
if($error) $is_include
Definition:
ssl_donew.php:55
$id
$id
Definition:
ssl_donew.php:48
$error
$error
Definition:
ssl_donew.php:49
bureau
admin
ssl_donew.php
Generated on Sat Sep 16 2023 12:00:03 for Alternc by
1.9.1