@@ 93-99 (lines=7) @@ | ||
90 | $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_sessions&_force_search=true&rows=20&page=1&sidx=&sord=asc&filters=&searchField=s.name&searchString='.Security::remove_XSS($_REQUEST['keyword']).'&searchOper=bw'; |
|
91 | } |
|
92 | ||
93 | if (isset($_REQUEST['id_category'])) { |
|
94 | $sessionCategory = SessionManager::get_session_category($_REQUEST['id_category']); |
|
95 | if (!empty($sessionCategory)) { |
|
96 | //Begin with see the searchOper param |
|
97 | $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_sessions&_force_search=true&rows=20&page=1&sidx=&sord=asc&filters=&searchField=sc.name&searchString='.Security::remove_XSS($sessionCategory['name']).'&searchOper=bw'; |
|
98 | } |
|
99 | } |
|
100 | ||
101 | $url .= '&list_type='.$list_type; |
|
102 |
@@ 6170-6177 (lines=8) @@ | ||
6167 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
|
6168 | { |
|
6169 | $document = self::getDeletedDocument($id, $courseInfo, $sessionId); |
|
6170 | if (!empty($document)) { |
|
6171 | $coursePath = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document/'; |
|
6172 | ||
6173 | if (Security::check_abs_path($coursePath.$document['path'], $coursePath)) { |
|
6174 | self::file_send_for_download($coursePath.$document['path']); |
|
6175 | exit; |
|
6176 | } |
|
6177 | } |
|
6178 | } |
|
6179 | ||
6180 | /** |