24 include_once(
"classes/class.ilObjectAccess.php");
54 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
56 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"edit")
74 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
76 global $ilUser,
$lng, $rbacsystem, $ilAccess;
80 $a_user_id = $ilUser->getId();
88 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
103 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
108 switch ($a_permission)
113 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
131 $t_arr = explode(
"_", $a_target);
133 if ($t_arr[0] !=
"wiki" || ((
int) $t_arr[1]) <= 0)
138 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
154 $q =
"SELECT * FROM il_wiki_data WHERE id = ".$ilDB->quote($a_id);
155 $wk_set = $ilDB->query($q);
158 return $wk_rec[
"online"];
170 $q =
"SELECT * FROM il_wiki_data WHERE id = ".$ilDB->quote($a_id);
171 $wk_set = $ilDB->query($q);
174 return $wk_rec[
"public_files"];