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)) { // does this piwik acount still have websites ? can we delete it then ? 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("INFO", "piwik", _("Account %s has been successfully deleted"), $login); } include('piwik_userlist.php'); exit; } include_once('head.php'); ?>