Alternc
3.2
Alternc logiel libre pour l'hébergement
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
aws_doadd.php
Go to the documentation of this file.
1
<?php
2
/*
3
----------------------------------------------------------------------
4
AlternC - Web Hosting System
5
Copyright (C) 2000-2012 by the AlternC Development Team.
6
https://alternc.org/
7
----------------------------------------------------------------------
8
LICENSE
9
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License (GPL)
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
To read the license please visit http://www.gnu.org/copyleft/gpl.html
21
----------------------------------------------------------------------
22
Purpose of file:
23
----------------------------------------------------------------------
24
*/
25
require_once(
"../class/config.php"
);
26
27
$fields
= array (
28
"hostname"
=> array (
"post"
,
"string"
,
""
),
29
"awsusers"
=> array (
"post"
,
"array"
,
""
),
30
"hostaliases"
=> array (
"post"
,
"array"
,
""
),
31
);
32
getFields
(
$fields
);
33
34
if
($aws->check_host_available($hostname)) {
35
$r
=$aws->add_stats($hostname,$awsusers,$hostaliases,1);
36
if
(!
$r
) {
37
$error
=
$err
->errstr();
38
include(
"aws_add.php"
);
39
exit
();
40
}
else
{
41
$error
=_(
"The statistics has been successfully created"
);
42
include(
"aws_list.php"
);
43
exit
();
44
}
45
}
46
else
{
47
$error
=
$err
->errstr();
48
include(
"aws_add.php"
);
49
exit
();
50
}
51
52
?>
code
alternc
awstats
bureau
admin
aws_doadd.php
Generated on Mon Mar 24 2014 17:14:20 for Alternc by
1.8.1.2