4 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
34 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
36 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings")
54 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
60 $a_user_id = $ilUser->getId();
68 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
83 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
88 switch ($a_permission)
93 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
111 $t_arr = explode(
"_", $a_target);
113 if ($t_arr[0] !=
"wiki" || (((
int) $t_arr[1]) <= 0) && $t_arr[1] !=
"wpage")
118 if ($t_arr[1] ==
"wpage")
120 $wpg_id = (int) $t_arr[2];
121 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
124 foreach ($refs as $r)
126 if ($ilAccess->checkAccess(
"read",
"", $r))
132 else if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
148 $q =
"SELECT * FROM il_wiki_data WHERE id = ".
149 $ilDB->quote($a_id,
"integer");
150 $wk_set = $ilDB->query($q);
151 $wk_rec = $ilDB->fetchAssoc($wk_set);
153 return $wk_rec[
"is_online"];
165 $q =
"SELECT * FROM il_wiki_data WHERE id = ".
166 $ilDB->quote($a_id,
"integer");
167 $wk_set = $ilDB->query($q);
168 $wk_rec = $ilDB->fetchAssoc($wk_set);
170 return $wk_rec[
"public_files"];