4 include_once(
"classes/class.ilObjectAccess.php");
34 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
36 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"edit")
54 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
56 global $ilUser,
$lng, $rbacsystem, $ilAccess;
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)
118 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
134 $q =
"SELECT * FROM il_wiki_data WHERE id = ".
135 $ilDB->quote($a_id,
"integer");
136 $wk_set = $ilDB->query(
$q);
137 $wk_rec = $ilDB->fetchAssoc($wk_set);
139 return $wk_rec[
"is_online"];
151 $q =
"SELECT * FROM il_wiki_data WHERE id = ".
152 $ilDB->quote($a_id,
"integer");
153 $wk_set = $ilDB->query(
$q);
154 $wk_rec = $ilDB->fetchAssoc($wk_set);
156 return $wk_rec[
"public_files"];