cancreate("piwik")) { $error=_("You cannot add any new Piwik account, your quota is over."); $fatal=1; } $fields = array ( "account_name" => array ("post", "string", ""), ); getFields($fields); if (empty($account_name)) { echo "

"._("Error : missing arguments.")."

"; include_once("foot.php"); exit; } ?>



user_add($account_name); if (!$infos) { $error = $err->errstr(); if (!$error) { $error = 'undefined error from piwik'; } echo "

$error

"; if (isset($fatal) && $fatal) { include_once("foot.php"); exit(); } } else { printf("%s %s\n", _('Successfully added piwik user'), $account_name); } include_once("foot.php"); ?>