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");
123 if ((
int) $t_arr[3] > 0)
125 $refs = array((
int) $t_arr[3]);
131 foreach ($refs as $r)
133 if ($ilAccess->checkAccess(
"read",
"", $r))
139 else if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
155 $q =
"SELECT * FROM il_wiki_data WHERE id = ".
156 $ilDB->quote($a_id,
"integer");
157 $wk_set = $ilDB->query($q);
158 $wk_rec = $ilDB->fetchAssoc($wk_set);
160 return $wk_rec[
"is_online"];
172 $q =
"SELECT * FROM il_wiki_data WHERE id = ".
173 $ilDB->quote($a_id,
"integer");
174 $wk_set = $ilDB->query($q);
175 $wk_rec = $ilDB->fetchAssoc($wk_set);
177 return $wk_rec[
"public_files"];