SERVERPATH(), $vars);
} else {
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/login.tpl'))->SERVERPATH(), $vars);}
}
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,
'joindate' => $user->creationDate,
'locale' => $user->locale,
'last_active' => $user->lastLoginDate));
}
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);}
/**
* Generate
Menu for the Saimod
*
* @return string Returns Menu for the Saimod
*/
public static function html_li_menu(){return '';}
/**
* 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'),
new \SYSTEM\PSAI('js/crypto/jquery.md5.js'),
new \SYSTEM\PSAI('js/crypto/jquery.sha1.js'));
}
}