function is_user_logged_in() { global $lang, $loc, $responseMsg; $session = new Session(); if ($session->getItem('username') !== '' && $session->getItem('userlevel') !== '') { if (_checkUsername($session->getItem('username'))) { return true; } else { return false; } } else { return false; } }
function _samba4_verifInfo($FH, $mode) { global $error; $samba4Errors = ""; $samba4Errors .= _checkSambaProvisionError(); $samba4Errors .= _checkUsername($FH); $samba4Errors .= _checkPassword($FH, $mode); $error .= $samba4Errors; return $samba4Errors ? 1 : 0; }