Alternc
latest
Alternc logiel libre pour l'hébergement
domlist.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
* list of domains hosted on this server
22
* used by DNS slaves to mirror our configurations
23
*
24
* @copyright AlternC-Team 2000-2017 https://alternc.com/
25
*/
26
27
require_once(
"../class/config_nochk.php"
);
28
29
$fields
= array (
30
"integrity"
=> array (
"get"
,
"boolean"
,
"0"
),
31
);
32
getFields
(
$fields
);
33
34
// Check for the http authentication
35
if
(!isset($_SERVER[
'PHP_AUTH_USER'
])) {
36
header(
'WWW-Authenticate: Basic realm="Domain List Authentication"'
);
37
header(
'HTTP/1.0 401 Unauthorized'
);
38
exit
;
39
}
else
{
40
if
(
$dom
->check_slave_account($_SERVER[
'PHP_AUTH_USER'
],$_SERVER[
'PHP_AUTH_PW'
])) {
41
if
(!$integrity) {
42
$dom
->echo_domain_list();
43
}
else
{
44
$dom
->echo_domain_list(
true
);
45
}
46
}
else
{
47
header(
'WWW-Authenticate: Basic realm="Domain List Authentication"'
);
48
header(
'HTTP/1.0 401 Unauthorized'
);
49
exit
;
50
}
51
}
52
53
?>
exit
exit
Definition:
adm_doadd.php:70
$fields
$fields
list of domains hosted on this server used by DNS slaves to mirror our configurations
Definition:
domlist.php:29
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
domlist.php
Generated on Sat Sep 16 2023 12:00:03 for Alternc by
1.9.1