4 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
5 require_once(
'./Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php');
26 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
39 if (
'usr_registration' == $a_target) {
40 require_once
'Services/Registration/classes/class.ilRegistrationSettings.php';
43 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'registration');
44 ilUtil::sendFailure(sprintf(
$GLOBALS[
'DIC']->language()->txt(
'registration_disabled_no_access'), $settings->get(
'admin_email')),
true);
47 } elseif (
'usr_nameassist' == $a_target) {
48 if (!$settings->get(
'password_assistance')) {
49 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'pwassist');
53 } elseif (
'usr_pwassist' == $a_target) {
54 if (!$settings->get(
'password_assistance')) {
55 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'pwassist');
74 preg_match(
"/usr_(\\d*).*/ui", $ilWACPath->
getFileName(), $matches);
75 $usr_id = $matches[1];
78 if ($usr_id == $ilUser->getId()) {
84 if ($public_upload !=
'y') {
91 if ($public_profile ==
'g' and $ilSetting->get(
'enable_global_profiles') and $ilSetting->get(
'pub_section')) {
94 } elseif (($public_profile ==
'y' or $public_profile ==
'g') and $ilUser->getId() != ANONYMOUS_USER_ID && $ilUser->getId() != 0) {
static _checkGoto($a_target)
check whether goto script will succeed
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
canBeDelivered(ilWACPath $ilWACPath)
Class ilWACCheckingClass.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
static _lookupPref($a_usr_id, $a_keyword)