| @@ 119-124 (lines=6) @@ | ||
| 116 | ||
| 117 | // Notification |
|
| 118 | if ($actions == 'notify' && isset($_GET['content']) && isset($_GET['id'])) { |
|
| 119 | if (api_get_session_id() != 0 && |
|
| 120 | api_is_allowed_to_session_edit(false, true) == false |
|
| 121 | ) { |
|
| 122 | api_not_allowed(); |
|
| 123 | } |
|
| 124 | $return_message = set_notification($_GET['content'], $_GET['id']); |
|
| 125 | Display::addFlash(Display::return_message($return_message, 'confirm', false)); |
|
| 126 | } |
|
| 127 | ||
| @@ 21-23 (lines=3) @@ | ||
| 18 | return false; |
|
| 19 | } |
|
| 20 | ||
| 21 | if (api_get_session_id() != 0 && api_is_allowed_to_session_edit(false, true) == false) { |
|
| 22 | return false; |
|
| 23 | } |
|
| 24 | ||
| 25 | $list = explode(',', $_REQUEST['id']); |
|
| 26 | foreach ($list as $itemId) { |
|
| @@ 3628-3632 (lines=5) @@ | ||
| 3625 | $groupfilter = $this->groupfilter; |
|
| 3626 | $tbl_wiki_discuss = $this->tbl_wiki_discuss; |
|
| 3627 | ||
| 3628 | if (api_get_session_id() != 0 && |
|
| 3629 | api_is_allowed_to_session_edit(false, true) == false |
|
| 3630 | ) { |
|
| 3631 | api_not_allowed(); |
|
| 3632 | } |
|
| 3633 | ||
| 3634 | if (!$_GET['title']) { |
|
| 3635 | Display::addFlash( |
|
| @@ 5501-5505 (lines=5) @@ | ||
| 5498 | $groupId = $this->group_id; |
|
| 5499 | $userId = api_get_user_id(); |
|
| 5500 | ||
| 5501 | if (api_get_session_id() != 0 && |
|
| 5502 | api_is_allowed_to_session_edit(false, true) == false |
|
| 5503 | ) { |
|
| 5504 | api_not_allowed(); |
|
| 5505 | } |
|
| 5506 | ||
| 5507 | $sql = 'SELECT * |
|
| 5508 | FROM '.$tbl_wiki.' w INNER JOIN '.$tbl_wiki_conf.' c |
|
| @@ 6224-6226 (lines=3) @@ | ||
| 6221 | self::getLinks($page); |
|
| 6222 | break; |
|
| 6223 | case 'addnew': |
|
| 6224 | if (api_get_session_id() != 0 && api_is_allowed_to_session_edit(false, true) == false) { |
|
| 6225 | api_not_allowed(); |
|
| 6226 | } |
|
| 6227 | $groupInfo = GroupManager::get_group_properties( |
|
| 6228 | api_get_group_id() |
|
| 6229 | ); |
|