| @@ 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 | ||
| @@ 6161-6168 (lines=8) @@ | ||
| 6158 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
|
| 6159 | { |
|
| 6160 | $document = self::getDeletedDocument($id, $courseInfo, $sessionId); |
|
| 6161 | if (!empty($document)) { |
|
| 6162 | $coursePath = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document/'; |
|
| 6163 | ||
| 6164 | if (Security::check_abs_path($coursePath.$document['path'], $coursePath)) { |
|
| 6165 | self::file_send_for_download($coursePath.$document['path']); |
|
| 6166 | exit; |
|
| 6167 | } |
|
| 6168 | } |
|
| 6169 | } |
|
| 6170 | ||
| 6171 | /** |
|