protected function registerStatus($p) { // test: http://dev.efiction.org/mvc/register/status=moderation,91bc4ea33e07bf9a05d60b7c9d968115 $parameter = $this->parametric($p); list($reason, $hash) = $parameter['status']; $check = $this->model->exec("SELECT U.uid, U.login, U.groups, U.resettoken, U.about as reason FROM `tbl_users`U WHERE MD5(CONCAT(U.uid,U.registered)) = '{$hash}';")[0]; if ($reason == "done" and $check['groups'] > 0) { $this->buffer("** Reg done **"); } elseif ($reason == "email" and $check['resettoken'] > "") { $this->buffer("** Reg email **"); } elseif ($reason == "moderation" and $check['reason'] > "") { $this->buffer("** Reg moderation **"); } else { $this->buffer("** Reg unknown **"); // Trigger an admin note } \Logging::addEntry("RG", "Reg user", $check['uid']); /*$log->reset(); $log->log_type='AM'; $log->save();*/ //$this->buffer(print_r($check,1)); }