array ("post", "string", ""), "login" => array ("post", "string", ""), ); getFields($fields); if (empty($login)) { $msg->raise('Error', "piwik", _("Missing login parameters")); include('piwik_userlist.php'); exit; } if(!empty($confirm_del)) { // contrôle si ce compte piwik a encore des sites associés avant d'accepter sa suppression if ($piwik->user_has_sites()) { $msg->raise('Alert', "piwik", _("To be able to delete the last user account, you must first remove all the piwik sites")); } else if ($piwik->user_delete($login) ) { $msg->raise('Ok', "piwik", _("Account %s is successfully deleted"), $login); } include('piwik_userlist.php'); exit; } include_once('head.php'); ?>