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
reset_root.php
Go to the documentation of this file.
1
#!/usr/bin/php -q
2
<?php
3
/*
4
$Id: reset_root.php,v 1.1 2005/01/19 05:37:18 anarcat Exp $
5
----------------------------------------------------------------------
6
AlternC - Web Hosting System
7
Copyright (C) 2002 by the AlternC Development Team.
8
http://alternc.org/
9
----------------------------------------------------------------------
10
Based on:
11
Valentin Lacambre's web hosting softwares: http://altern.org/
12
----------------------------------------------------------------------
13
LICENSE
14
15
This program is free software; you can redistribute it and/or
16
modify it under the terms of the GNU General Public License (GPL)
17
as published by the Free Software Foundation; either version 2
18
of the License, or (at your option) any later version.
19
20
This program is distributed in the hope that it will be useful,
21
but WITHOUT ANY WARRANTY; without even the implied warranty of
22
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
GNU General Public License for more details.
24
25
To read the license please visit http://www.gnu.org/copyleft/gpl.html
26
----------------------------------------------------------------------
27
Original Author of file: Benjamin Sonntag
28
Purpose of file: Create the first admin account on a new AlternC server
29
----------------------------------------------------------------------
30
*/
31
32
// Ne vérifie pas ma session :)
33
chdir(
"/usr/share/alternc/panel/"
);
34
require(
"/usr/share/alternc/panel/class/config_nochk.php"
);
35
36
// On passe super-admin
37
$admin->enabled=1;
38
39
// On remet le pass admin a zero
40
if
(!$admin->update_mem(2000,
"postmaster@"
.$L_FQDN,
"Administrateur"
,
"Admin"
, $admin->getadmin(), 1, 1,
"default"
)) {
41
echo
"erreur : "
.$err->errstr().
"<br>\n"
;
42
exit
();
43
}
44
45
echo
"\nThe password was successfully reset to 'admin' for the 'admin' account.\n"
;
46
47
?>
code
alternc
install
reset_root.php
Generated on Mon Mar 24 2014 17:14:20 for Alternc by
1.8.1.2