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
piwik_user_dodel.php
Go to the documentation of this file.
1
<?php
2
/*
3
$Id: piwik_user_dodel.php,v 1.2 2003/06/10 06:45:16 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: François Serman
27
Purpose of file: Delete piwik accounts
28
----------------------------------------------------------------------
29
*/
30
require_once(
"../class/config.php"
);
31
32
$fields
= array (
33
"confirm_del"
=> array (
"post"
,
"string"
,
""
),
34
"login"
=> array (
"request"
,
"string"
,
""
),
35
);
36
getFields
(
$fields
);
37
38
if
(empty($login)) {
39
$error
=_(
"Missing login parameters"
);
40
include(
'piwik_userlist.php'
);
41
exit
;
42
}
43
44
if
(!empty($confirm_del)) {
45
if
(! $piwik->user_delete($login) ) {
46
$error
=
$err
->errstr();
47
}
else
{
48
include_once(
'head.php'
);
49
printf(
"Utilisateur %s supprimé avec succès\n"
, $login);
50
}
51
52
include(
'piwik_userlist.php'
);
53
exit
;
54
}
55
56
include_once(
'head.php'
);
57
58
?>
59
<h3><?php
__
(
"Piwik accounts deletion confirm"
); ?></h3>
60
<hr
id
=
"topbar"
/>
61
<br />
62
<?php printf(_(
"Do you really want to delete the Piwik account %s ?"
),$login);?>
63
<br />
64
<br />
65
66
<form method=
"post"
action=
"piwik_user_dodel.php"
name=
"main"
id
=
"main"
>
67
<input type=
"hidden"
name=
"login"
value=
"<?php echo $login;?>"
/>
68
<input type=
"submit"
class
=
"inb"
name=
"confirm_del"
value=
"<?php __("
Delete
")?>"
/>
69
<input type=
"button"
class
=
"inb"
name=
"cancel"
value=
"<?php __("
Cancel
"); ?>"
onclick=
"document.location='piwik_userlist.php'"
/>
70
</form>
71
72
<?php
73
include_once(
'foot.php'
);
74
exit
();
75
?>
code
alternc
bureau
admin
piwik_user_dodel.php
Generated on Mon Mar 24 2014 17:14:20 for Alternc by
1.8.1.2