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
hta_dodeluser.php
Go to the documentation of this file.
1
<?php
2
/*
3
$Id: hta_dodeluser.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
4
----------------------------------------------------------------------
5
AlternC - Web Hosting System
6
Copyright (C) 2002 by the AlternC Development Team.
7
http://alternc.org/
8
----------------------------------------------------------------------
9
Based on:
10
Valentin Lacambre's web hosting softwares: http://altern.org/
11
----------------------------------------------------------------------
12
LICENSE
13
14
This program is free software; you can redistribute it and/or
15
modify it under the terms of the GNU General Public License (GPL)
16
as published by the Free Software Foundation; either version 2
17
of the License, or (at your option) any later version.
18
19
This program is distributed in the hope that it will be useful,
20
but WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
GNU General Public License for more details.
23
24
To read the license please visit http://www.gnu.org/copyleft/gpl.html
25
----------------------------------------------------------------------
26
Original Author of file: Franck Missoum
27
Purpose of file: Delete a username from a protected folder
28
----------------------------------------------------------------------
29
*/
30
require_once(
"../class/config.php"
);
31
32
$fields
= array (
33
"d"
=> array (
"post"
,
"array"
, array()),
34
"dir"
=> array (
"post"
,
"string"
,
""
),
35
"confirm_del"
=> array (
"post"
,
"string"
,
""
),
36
);
37
getFields
(
$fields
);
38
39
if
(!empty($confirm_del)) {
40
reset(
$d
);
41
if
(!$hta->del_user(
$d
,$dir)) {
42
$error
=
$err
->errstr();
43
}
44
header (
'Location: /hta_edit.php?dir='
.urlencode($dir));
45
exit
();
46
}
47
include_once(
'head.php'
);
48
?>
49
<h3><?php
__
(
"Authorized user deletion confirm"
); ?></h3>
50
<hr
id
=
"topbar"
/>
51
<br />
52
<?php
__
(
"Do you really want to delete those users ?"
);?>
53
<ul>
54
<?php
foreach
(
$d
as
$t
) {
55
echo
"<li>$t</li>\n"
;
56
} ?>
57
</ul>
58
59
<form method=
"post"
action=
"hta_dodeluser.php"
name=
"main"
id
=
"main"
>
60
<input type=
'hidden'
name=
'dir'
value=
'<?php echo $dir;?>'
>
61
<?php
foreach
(
$d
as $t) {
62
echo
"<input type='hidden' name='d[$t]' value='$t' >\n"
;
63
} ?>
64
<input type=
"submit"
class
=
"inb"
name=
"confirm_del"
value=
"<?php __("
Delete
")?>"
/>
65
<input type=
"button"
class
=
"inb"
name=
"cancel"
value=
"<?php __("
Cancel
"); ?>"
onclick=
"document.location='/hta_edit.php?dir=<?php echo urlencode($dir);?>'"
/>
66
</form>
67
68
<?php
69
include_once(
'foot.php'
);
70
exit
();
71
?>
code
alternc
bureau
admin
hta_dodeluser.php
Generated on Mon Mar 24 2014 17:14:20 for Alternc by
1.8.1.2