public function user_add() { if ($this->accessAdminPage(2)) { require_once dirname(__FILE__) . '/resources/user.php'; $user = new UserAction($this->parent); return $user->add(); } else { return new ActionResult($this, '/admin/user/', 1, 'You are not allowed to do that', B_T_FAIL); } }