24 require_once(
"../class/config.php");
27 "confirm_del" => array (
"post",
"string",
""),
28 "login" => array (
"post",
"string",
""),
33 $msg->raise(
"ERROR",
"piwik", _(
"Missing login parameters"));
34 include(
'piwik_userlist.php');
38 if(!empty($confirm_del)) {
40 if ($piwik->user_has_sites()) {
41 $msg->raise(
"ALERT",
"piwik", _(
"To be able to delete the last user account, you must first remove all the piwik sites"));
42 }
else if ($piwik->user_delete(
$login) ) {
43 $msg->raise(
"INFO",
"piwik", _(
"Account %s has been successfully deleted"),
$login);
46 include(
'piwik_userlist.php');
50 include_once(
'head.php');
53 <h3><?php
__(
"Piwik accounts deletion confirm"); ?></h3>
56 <?php printf(_(
"Do you really want to delete the Piwik account %s ?"),
$login);?>
60 <form method=
"post" action=
"piwik_user_dodel.php" name=
"main" id=
"main">
62 <input type=
"hidden" name=
"login" value=
"<?php ehe($login);?>" />
63 <input type=
"submit" class=
"inb" name=
"confirm_del" value=
"<?php __("Delete
")?>" />
64 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='piwik_userlist.php'" />
68 include_once(
'foot.php');
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
$fields
delete piwik users