SERVERPATH(), $vars); } else { return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/login.tpl'))->SERVERPATH(), $vars);} } /** * Returns Users Info or NULL if not logged in * * @return json Returns json with userinfo or null */ public static function sai_mod__SYSTEM_SAI_saimod_sys_login_action_userinfo(){ $user = \SYSTEM\SECURITY\security::getUser(); if(!$user){ return;} return json_encode(array( 'username' => $user->username, 'email' => $user->email.($user->email_confirmed ? ' (confirmed)' : ''), 'joindate' => $user->joindate, 'locale' => $user->locale, 'last_active' => $user->last_active)); } /** * Generate the HTML for the Registerform * * @return string Returns HTML */ public static function sai_mod__SYSTEM_SAI_saimod_sys_login_action_registerform(){ $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_LOGIN); return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/register.tpl'))->SERVERPATH(), $vars);} /** * Request Password Reset * * @return string Returns HTML */ public static function sai_mod__SYSTEM_SAI_saimod_sys_login_action_resetpassword(){ $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_LOGIN); return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/resetpassword.tpl'))->SERVERPATH(), $vars);} /** * Generate
  • Menu for the Saimod * * @return string Returns
  • Menu for the Saimod */ public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/menu.tpl'))->SERVERPATH());} /** * Returns if the Saimod is public(access for everyone) * * @return boolean Returns if the Saimod is public(true) or not(false) */ public static function right_public(){return true;} /** * Returns if the requesting user has the required rights to access the Saimod * * @return boolean Returns true if the user can access */ public static function right_right(){return true;} /** * Get all js System Paths required for this Saimod * * @return array Returns array of Pathobjects pointing to the saimods js */ public static function js(){ return array( \LIB\lib_jqbootstrapvalidation::js(), new \SYSTEM\PSAI('modules/saimod_sys_login/js/sai_sys_login_submit.js')); } }