Alternc
latest
Alternc logiel libre pour l'hébergement
adm_domstypedoedit.php
Go to the documentation of this file.
1
<?php
2
/*
3
----------------------------------------------------------------------
4
LICENSE
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License (GPL)
8
as published by the Free Software Foundation; either version 2
9
of the License, or (at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
To read the license please visit http://www.gnu.org/copyleft/gpl.html
17
----------------------------------------------------------------------
18
*/
19
20
/**
21
* Change a domain type on the server
22
*
23
* @copyright AlternC-Team 2000-2017 https://alternc.com/
24
*/
25
26
require_once(
"../class/config.php"
);
27
if
(!$admin->enabled) {
28
$msg
->raise(
"ERROR"
,
"admin"
, _(
"This page is restricted to authorized staff"
));
29
echo
$msg
->msg_html_all();
30
exit
();
31
}
32
33
$fields
= array (
34
"name"
=> array (
"post"
,
"string"
,
""
),
35
"description"
=> array (
"post"
,
"string"
,
""
),
36
"target"
=> array (
"post"
,
"string"
,
""
),
37
"entry"
=> array (
"post"
,
"string"
,
""
),
38
"compatibility"
=> array (
"post"
,
"string"
,
""
),
39
"enable"
=> array (
"post"
,
"string"
,
""
),
40
"only_dns"
=> array (
"post"
,
"string"
,
""
),
41
"need_dns"
=> array (
"post"
,
"string"
,
""
),
42
"advanced"
=> array (
"post"
,
"string"
,
""
),
43
"create_tmpdir"
=> array (
"post"
,
"string"
,
""
),
44
"create_targetdir"
=> array (
"post"
,
"string"
,
""
),
45
);
46
getFields
(
$fields
);
47
48
if
(!
$dom
->domains_type_update($name, $description, $target, $entry, $compatibility, $enable, $only_dns, $need_dns, $advanced,$create_tmpdir,$create_targetdir) ) {
49
include(
"adm_domstypedoedit.php"
);
50
}
else
{
51
$msg
->raise(
"INFO"
,
"admin"
, _(
"Domain type is updated"
));
52
include(
"adm_domstype.php"
);
53
}
54
?>
55
56
exit
exit
Definition:
adm_doadd.php:70
$fields
if(! $admin->enabled) $fields
Change a domain type on the server.
Definition:
adm_domstypedoedit.php:33
$msg
$msg
Definition:
bootstrap.php:75
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
$dom
$dom
Definition:
whois_test.php:10
bureau
admin
adm_domstypedoedit.php
Generated on Sat Sep 16 2023 12:00:03 for Alternc by
1.9.1