@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | /** |
10 | 10 | * This form is included by ldap_import_students.php and ldap_import_students_to_session.php |
11 | 11 | */ |
12 | -$nbre=0; |
|
12 | +$nbre = 0; |
|
13 | 13 | echo '<form name="form" method="post" action="'.api_get_self().'?annee='.Security::remove_XSS($annee).'">'; |
14 | 14 | if ($statut == 1) { |
15 | 15 | echo get_lang( |
@@ -28,23 +28,23 @@ discard block |
||
28 | 28 | $is_western_name_order = api_is_western_name_order(); |
29 | 29 | echo '<input type="hidden" name="confirmed" value="yes">'; |
30 | 30 | echo '<table border="0" cellspacing="0" width="100%">'; |
31 | -echo '<tr align="center" id="header3">' . |
|
32 | - '<td width="15%"><input type="button" value="'.get_lang('AllSlashNone').'" onClick="checkAll();"></td>' . |
|
33 | - '<td width="40%"><b>'.get_lang('Email').'</b></td>' . |
|
31 | +echo '<tr align="center" id="header3">'. |
|
32 | + '<td width="15%"><input type="button" value="'.get_lang('AllSlashNone').'" onClick="checkAll();"></td>'. |
|
33 | + '<td width="40%"><b>'.get_lang('Email').'</b></td>'. |
|
34 | 34 | ($is_western_name_order |
35 | - ? '<td width="15%"><b>'.get_lang('FirstName').'</b></td>' . |
|
35 | + ? '<td width="15%"><b>'.get_lang('FirstName').'</b></td>'. |
|
36 | 36 | '<td width="15%"><b>'.get_lang('Name').'</b></td>' |
37 | - : '<td width="15%"><b>'.get_lang('Name').'</b></td>' . |
|
38 | - '<td width="15%"><b>'.get_lang('FirstName').'</b></td>') . |
|
39 | - '<td width="15%"><b>'.get_lang('Login').'</b></td>' . |
|
37 | + : '<td width="15%"><b>'.get_lang('Name').'</b></td>'. |
|
38 | + '<td width="15%"><b>'.get_lang('FirstName').'</b></td>'). |
|
39 | + '<td width="15%"><b>'.get_lang('Login').'</b></td>'. |
|
40 | 40 | '</tr>'."\n"; |
41 | 41 | while (list ($key, $val) = each($nom_form)) { |
42 | - $nbre=$nbre+1; |
|
43 | - if($nbre & 1) $ndiv=2; else $ndiv=3; |
|
42 | + $nbre = $nbre + 1; |
|
43 | + if ($nbre & 1) $ndiv = 2; else $ndiv = 3; |
|
44 | 44 | echo '<tr align="center" id="header'.$ndiv.'">'; |
45 | 45 | echo '<td><input type="checkbox" name="checkboxes[]" value="'.$key.'" checked="checked"></td>'; |
46 | 46 | echo '<td>'.$email_form[$key].'<input type="hidden" name="email_form['.$key.']" size="40" value="'.$email_form[$key].'"></td>'; |
47 | - if ($is_western_name_order) { |
|
47 | + if ($is_western_name_order) { |
|
48 | 48 | echo '<td>'.$prenom_form[$key].'<input type="hidden" name="prenom_form['.$key.']" size="20" value="'.$prenom_form[$key].'"></td>'; |
49 | 49 | echo '<td>'.$nom_form[$key].'<input type="hidden" name="nom_form['.$key.']" size="20" value="'.$nom_form[$key].'"></td>'; |
50 | 50 | } else { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | Display::return_message($plugin->get_lang('NoTool'), 'error') |
21 | 21 | ); |
22 | 22 | |
23 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'ims_lti/list.php'); |
|
23 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'ims_lti/list.php'); |
|
24 | 24 | exit; |
25 | 25 | } |
26 | 26 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | Display::return_message($plugin->get_lang('ToolEdited'), 'success') |
59 | 59 | ); |
60 | 60 | |
61 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'ims_lti/list.php'); |
|
61 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'ims_lti/list.php'); |
|
62 | 62 | exit; |
63 | 63 | } |
64 | 64 |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | 'urlPicture' => $this->course->getPicturePath(true), |
239 | 239 | 'teachers' => $teachers, |
240 | 240 | 'tools' => array_map( |
241 | - function ($tool) { |
|
241 | + function($tool) { |
|
242 | 242 | return ['type' => $tool['name']]; |
243 | 243 | }, |
244 | 244 | $tools |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $results[] = [ |
262 | 262 | 'id' => $description->get_description_type(), |
263 | 263 | 'title' => $description->get_title(), |
264 | - 'content' => str_replace('src="/', 'src="' . api_get_path(WEB_PATH), $description->get_content()) |
|
264 | + 'content' => str_replace('src="/', 'src="'.api_get_path(WEB_PATH), $description->get_content()) |
|
265 | 265 | ]; |
266 | 266 | } |
267 | 267 | |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | |
295 | 295 | $path = $directory['path']; |
296 | 296 | } |
297 | - require_once api_get_path(LIBRARY_PATH) . 'fileDisplay.lib.php'; |
|
297 | + require_once api_get_path(LIBRARY_PATH).'fileDisplay.lib.php'; |
|
298 | 298 | |
299 | 299 | $courseInfo = api_get_course_info_by_id($this->course->getId()); |
300 | 300 | $documents = DocumentManager::get_all_document_data( |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | $results = []; |
310 | 310 | |
311 | 311 | if (is_array($documents)) { |
312 | - $webPath = api_get_path(WEB_CODE_PATH) . 'document/document.php?'; |
|
312 | + $webPath = api_get_path(WEB_CODE_PATH).'document/document.php?'; |
|
313 | 313 | |
314 | 314 | /** @var array $document */ |
315 | 315 | foreach ($documents as $document) { |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | 'type' => $document['filetype'], |
327 | 327 | 'title' => $document['title'], |
328 | 328 | 'path' => $document['path'], |
329 | - 'url' => $webPath . http_build_query([ |
|
329 | + 'url' => $webPath.http_build_query([ |
|
330 | 330 | 'username' => $this->user->getUsername(), |
331 | 331 | 'api_key' => $this->apiKey, |
332 | 332 | 'cidReq' => $this->course->getCode(), |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | $sessionId |
371 | 371 | ); |
372 | 372 | |
373 | - $announcements = array_map(function ($announcement) { |
|
373 | + $announcements = array_map(function($announcement) { |
|
374 | 374 | return [ |
375 | 375 | 'id' => intval($announcement['id']), |
376 | 376 | 'title' => strip_tags($announcement['title']), |
@@ -452,11 +452,11 @@ discard block |
||
452 | 452 | $webPath = api_get_path(WEB_PATH); |
453 | 453 | |
454 | 454 | return array_map( |
455 | - function ($event) use ($webPath) { |
|
455 | + function($event) use ($webPath) { |
|
456 | 456 | return [ |
457 | 457 | 'id' => intval($event['unique_id']), |
458 | 458 | 'title' => $event['title'], |
459 | - 'content' => str_replace('src="/', 'src="' . $webPath, $event['description']), |
|
459 | + 'content' => str_replace('src="/', 'src="'.$webPath, $event['description']), |
|
460 | 460 | 'startDate' => $event['start_date_localtime'], |
461 | 461 | 'endDate' => $event['end_date_localtime'], |
462 | 462 | 'isAllDay' => $event['allDay'] ? true : false |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | $notebooks = $notebooksRepo->findByUser($this->user, $this->course, $this->session); |
479 | 479 | |
480 | 480 | return array_map( |
481 | - function (\Chamilo\CourseBundle\Entity\CNotebook $notebook) { |
|
481 | + function(\Chamilo\CourseBundle\Entity\CNotebook $notebook) { |
|
482 | 482 | return [ |
483 | 483 | 'id' => $notebook->getIid(), |
484 | 484 | 'title' => $notebook->getTitle(), |
@@ -502,9 +502,9 @@ discard block |
||
502 | 502 | public function getCourseForumCategories() |
503 | 503 | { |
504 | 504 | $sessionId = $this->session ? $this->session->getId() : 0; |
505 | - $webCoursePath = api_get_path(WEB_COURSE_PATH) . $this->course->getDirectory() . '/upload/forum/images/'; |
|
505 | + $webCoursePath = api_get_path(WEB_COURSE_PATH).$this->course->getDirectory().'/upload/forum/images/'; |
|
506 | 506 | |
507 | - require_once api_get_path(SYS_CODE_PATH) . 'forum/forumfunction.inc.php'; |
|
507 | + require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php'; |
|
508 | 508 | |
509 | 509 | $categoriesFullData = get_forum_categories('', $this->course->getId(), $sessionId); |
510 | 510 | $categories = []; |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | 'catId' => intval($forumInfo['forum_category']), |
519 | 519 | 'title' => $forumInfo['forum_title'], |
520 | 520 | 'description' => $forumInfo['forum_comment'], |
521 | - 'image' => $forumInfo['forum_image'] ? ($webCoursePath . $forumInfo['forum_image']) : '', |
|
521 | + 'image' => $forumInfo['forum_image'] ? ($webCoursePath.$forumInfo['forum_image']) : '', |
|
522 | 522 | 'numberOfThreads' => isset($forumInfo['number_of_threads']) ? intval($forumInfo['number_of_threads']) : 0, |
523 | 523 | 'lastPost' => null |
524 | 524 | ]; |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | foreach ($categoriesFullData as $category) { |
542 | 542 | $categoryForums = array_filter( |
543 | 543 | $forums, |
544 | - function (array $forum) use ($category) { |
|
544 | + function(array $forum) use ($category) { |
|
545 | 545 | if ($forum['catId'] != $category['cat_id']) { |
546 | 546 | return false; |
547 | 547 | } |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | */ |
571 | 571 | public function getCourseForum($forumId) |
572 | 572 | { |
573 | - require_once api_get_path(SYS_CODE_PATH) . 'forum/forumfunction.inc.php'; |
|
573 | + require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php'; |
|
574 | 574 | |
575 | 575 | $forumInfo = get_forums($forumId, $this->course->getCode()); |
576 | 576 | |
@@ -578,12 +578,12 @@ discard block |
||
578 | 578 | throw new Exception(get_lang('NoForum')); |
579 | 579 | } |
580 | 580 | |
581 | - $webCoursePath = api_get_path(WEB_COURSE_PATH) . $this->course->getDirectory() . '/upload/forum/images/'; |
|
581 | + $webCoursePath = api_get_path(WEB_COURSE_PATH).$this->course->getDirectory().'/upload/forum/images/'; |
|
582 | 582 | $forum = [ |
583 | 583 | 'id' => $forumInfo['iid'], |
584 | 584 | 'title' => $forumInfo['forum_title'], |
585 | 585 | 'description' => $forumInfo['forum_comment'], |
586 | - 'image' => $forumInfo['forum_image'] ? ($webCoursePath . $forumInfo['forum_image']) : '', |
|
586 | + 'image' => $forumInfo['forum_image'] ? ($webCoursePath.$forumInfo['forum_image']) : '', |
|
587 | 587 | 'threads' => [] |
588 | 588 | ]; |
589 | 589 | |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | */ |
611 | 611 | public function getCourseForumThread($forumId, $threadId) |
612 | 612 | { |
613 | - require_once api_get_path(SYS_CODE_PATH) . 'forum/forumfunction.inc.php'; |
|
613 | + require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php'; |
|
614 | 614 | |
615 | 615 | $threadInfo = get_thread_information($forumId, $threadId); |
616 | 616 | |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | $pictureInfo = UserManager::get_user_picture_path_by_id($this->user->getId(), 'web'); |
649 | 649 | |
650 | 650 | $result = [ |
651 | - 'pictureUri' => $pictureInfo['dir'] . $pictureInfo['file'], |
|
651 | + 'pictureUri' => $pictureInfo['dir'].$pictureInfo['file'], |
|
652 | 652 | 'fullName' => $this->user->getCompleteName(), |
653 | 653 | 'username' => $this->user->getUsername(), |
654 | 654 | 'officialCode' => $this->user->getOfficialCode(), |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | 'id' => $lpId, |
759 | 759 | 'title' => Security::remove_XSS($lpDetails['lp_name']), |
760 | 760 | 'progress' => intval($progress), |
761 | - 'url' => api_get_path(WEB_CODE_PATH) . 'webservices/api/v2.php?' . http_build_query([ |
|
761 | + 'url' => api_get_path(WEB_CODE_PATH).'webservices/api/v2.php?'.http_build_query([ |
|
762 | 762 | 'hash' => $this->encodeParams([ |
763 | 763 | 'action' => 'course_learnpath', |
764 | 764 | 'lp_id' => $lpId, |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | * @param string $encoded |
806 | 806 | * @return array |
807 | 807 | */ |
808 | - public static function decodeParams($encoded){ |
|
808 | + public static function decodeParams($encoded) { |
|
809 | 809 | $decoded = str_replace(['-', '_', '.'], ['+', '/', '='], $encoded); |
810 | 810 | $mod4 = strlen($decoded) % 4; |
811 | 811 | |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | ChamiloSession::write('_user', $loggedUser); |
834 | 834 | Login::init_user($this->user->getId(), true); |
835 | 835 | |
836 | - $url = api_get_path(WEB_CODE_PATH) . 'lp/lp_controller.php?' . http_build_query([ |
|
836 | + $url = api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?'.http_build_query([ |
|
837 | 837 | 'cidReq' => $this->course->getCode(), |
838 | 838 | 'id_session' => $sessionId, |
839 | 839 | 'gidReq' => 0, |
@@ -855,7 +855,7 @@ discard block |
||
855 | 855 | */ |
856 | 856 | public function saveForumPost(array $postValues, $forumId) |
857 | 857 | { |
858 | - require_once api_get_path(SYS_CODE_PATH) . 'forum/forumfunction.inc.php'; |
|
858 | + require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php'; |
|
859 | 859 | |
860 | 860 | $forum = get_forums($forumId, $this->course->getCode()); |
861 | 861 | |
@@ -992,7 +992,7 @@ discard block |
||
992 | 992 | */ |
993 | 993 | public function saveForumThread(array $values, $forumId) |
994 | 994 | { |
995 | - require_once api_get_path(SYS_CODE_PATH) . 'forum/forumfunction.inc.php'; |
|
995 | + require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php'; |
|
996 | 996 | |
997 | 997 | $forum = get_forums($forumId, $this->course->getCode()); |
998 | 998 | $courseInfo = api_get_course_info($this->course->getCode()); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ); |
99 | 99 | |
100 | 100 | // Generating the thumbnail. |
101 | - $image = $this->base_work_dir.$dir . $file_name; |
|
101 | + $image = $this->base_work_dir.$dir.$file_name; |
|
102 | 102 | |
103 | 103 | $pattern = '/(\w+)\.png$/'; |
104 | 104 | $replacement = '${1}_thumb.png'; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | $my_new_image = new Image($image); |
116 | 116 | $my_new_image->resize($thumb_width, $thumb_height); |
117 | - $my_new_image->send_image($this->base_work_dir.$dir . $thumb_name, -1, 'png'); |
|
117 | + $my_new_image->send_image($this->base_work_dir.$dir.$thumb_name, -1, 'png'); |
|
118 | 118 | |
119 | 119 | // Adding the thumbnail to documents. |
120 | 120 | $document_id_thumb = add_document( |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | <body> |
141 | 141 | <img src="'.$slide_src.'" /> |
142 | 142 | </body> |
143 | -</html>'); // This indentation is to make the generated html files to look well. |
|
143 | +</html>'); // This indentation is to make the generated html files to look well. |
|
144 | 144 | |
145 | 145 | fclose($fp); |
146 | 146 | $document_id = add_document( |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | foreach ($specific_fields as $specific_field) { |
176 | 176 | if (isset($_REQUEST[$specific_field['code']])) { |
177 | 177 | $sterms = trim($_REQUEST[$specific_field['code']]); |
178 | - $all_specific_terms .= ' '. $sterms; |
|
178 | + $all_specific_terms .= ' '.$sterms; |
|
179 | 179 | if (!empty($sterms)) { |
180 | 180 | $sterms = explode(',', $sterms); |
181 | 181 | foreach ($sterms as $sterm) { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | } |
185 | 185 | } |
186 | 186 | } |
187 | - $slide_body = $all_specific_terms .' '. $slide_body; |
|
187 | + $slide_body = $all_specific_terms.' '.$slide_body; |
|
188 | 188 | $ic_slide->addValue('content', $slide_body); |
189 | 189 | /* FIXME: cidReq:lp_id:doc_id al indexar */ |
190 | 190 | // Add a comment to say terms separated by commas. |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | SE_COURSE_ID => $courseid, |
197 | 197 | SE_TOOL_ID => TOOL_LEARNPATH, |
198 | 198 | SE_DATA => array('lp_id' => $lp_id, 'lp_item' => $previous, 'document_id' => $document_id), |
199 | - SE_USER => (int)api_get_user_id(), |
|
199 | + SE_USER => (int) api_get_user_id(), |
|
200 | 200 | ); |
201 | 201 | $ic_slide->xapian_data = serialize($xapian_data); |
202 | 202 | $di->addChunk($ic_slide); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $_course = api_get_course_info(); |
235 | 235 | foreach ($files as $file) { |
236 | 236 | // '||' is used as separator between slide name (with accents) and file name (without accents). |
237 | - list($slide_name,$file_name) = explode('||',$file); |
|
237 | + list($slide_name, $file_name) = explode('||', $file); |
|
238 | 238 | $slide_name = api_htmlentities($slide_name, ENT_COMPAT, $this->original_charset); |
239 | 239 | $slide_name = str_replace('’', '\'', $slide_name); |
240 | 240 | $slide_name = api_convert_encoding($slide_name, api_get_system_encoding(), $this->original_charset); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | LIMIT 0,1"; |
63 | 63 | $row = Database::query($sql); |
64 | 64 | $loginId = null; |
65 | - if (Database::num_rows($row)>0) { |
|
65 | + if (Database::num_rows($row) > 0) { |
|
66 | 66 | $loginId = Database::result($row, 0, "login_id"); |
67 | 67 | } |
68 | 68 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE); |
79 | 79 | |
80 | - $query = "DELETE FROM " . $online_table . " WHERE login_user_id = $userId"; |
|
80 | + $query = "DELETE FROM ".$online_table." WHERE login_user_id = $userId"; |
|
81 | 81 | Database::query($query); |
82 | 82 | |
83 | 83 | /*require_once api_get_path(SYS_PATH) . 'main/chat/chat_functions.lib.php'; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * current configuration file. |
15 | 15 | * @package chamilo.install |
16 | 16 | */ |
17 | -error_log("Starting " . basename(__FILE__)); |
|
17 | +error_log("Starting ".basename(__FILE__)); |
|
18 | 18 | |
19 | 19 | global $debug; |
20 | 20 | |
@@ -143,12 +143,12 @@ discard block |
||
143 | 143 | |
144 | 144 | $list = scandir($langPath); |
145 | 145 | foreach ($list as $entry) { |
146 | - if (is_dir($langPath . $entry) && |
|
146 | + if (is_dir($langPath.$entry) && |
|
147 | 147 | in_array($entry, $officialLanguages) |
148 | 148 | ) { |
149 | 149 | foreach ($filesToDelete as $file) { |
150 | - if (is_file($langPath . $entry . '/' . $file . '.inc.php')) { |
|
151 | - unlink($langPath . $entry . '/' . $file . '.inc.php'); |
|
150 | + if (is_file($langPath.$entry.'/'.$file.'.inc.php')) { |
|
151 | + unlink($langPath.$entry.'/'.$file.'.inc.php'); |
|
152 | 152 | } |
153 | 153 | } |
154 | 154 | } |
@@ -173,12 +173,12 @@ discard block |
||
173 | 173 | |
174 | 174 | // Move dirs into new structures. |
175 | 175 | $movePathList = [ |
176 | - api_get_path(SYS_CODE_PATH).'upload/users/groups' => api_get_path(SYS_UPLOAD_PATH) . 'groups', |
|
177 | - api_get_path(SYS_CODE_PATH).'upload/users' => api_get_path(SYS_UPLOAD_PATH) . 'users', |
|
178 | - api_get_path(SYS_CODE_PATH).'upload/badges' => api_get_path(SYS_UPLOAD_PATH) . 'badges', |
|
179 | - api_get_path(SYS_PATH).'courses' => api_get_path(SYS_APP_PATH) . 'courses', |
|
176 | + api_get_path(SYS_CODE_PATH).'upload/users/groups' => api_get_path(SYS_UPLOAD_PATH).'groups', |
|
177 | + api_get_path(SYS_CODE_PATH).'upload/users' => api_get_path(SYS_UPLOAD_PATH).'users', |
|
178 | + api_get_path(SYS_CODE_PATH).'upload/badges' => api_get_path(SYS_UPLOAD_PATH).'badges', |
|
179 | + api_get_path(SYS_PATH).'courses' => api_get_path(SYS_APP_PATH).'courses', |
|
180 | 180 | api_get_path(SYS_PATH).'searchdb' => api_get_path(SYS_UPLOAD_PATH).'plugins/xapian/', |
181 | - api_get_path(SYS_PATH).'home' => api_get_path(SYS_APP_PATH) . 'home' |
|
181 | + api_get_path(SYS_PATH).'home' => api_get_path(SYS_APP_PATH).'home' |
|
182 | 182 | ]; |
183 | 183 | |
184 | 184 | if ($debug) { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | $fs->remove($origin); |
200 | 200 | } catch (IOException $e) { |
201 | 201 | // If removing the directory doesn't work, just log an error and continue |
202 | - error_log('Could not move ' . $origin . ' to ' . $destination . '(' . $e->getMessage() . '). Please move it manually.'); |
|
202 | + error_log('Could not move '.$origin.' to '.$destination.'('.$e->getMessage().'). Please move it manually.'); |
|
203 | 203 | } |
204 | 204 | } |
205 | 205 | } |
@@ -246,5 +246,5 @@ discard block |
||
246 | 246 | @rrmdir(api_get_path(SYS_PATH).'archive'); |
247 | 247 | |
248 | 248 | } else { |
249 | - echo 'You are not allowed here !'. __FILE__; |
|
249 | + echo 'You are not allowed here !'.__FILE__; |
|
250 | 250 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | if ($show_output) { |
95 | 95 | Display::addFlash( |
96 | 96 | Display::return_message( |
97 | - get_lang('UplExceedMaxPostSize'). format_file_size($max_file_size), |
|
97 | + get_lang('UplExceedMaxPostSize').format_file_size($max_file_size), |
|
98 | 98 | 'error' |
99 | 99 | ) |
100 | 100 | ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | if ($show_output) { |
119 | 119 | Display::addFlash( |
120 | 120 | Display::return_message( |
121 | - get_lang('UplNoFileUploaded').' '. get_lang('UplSelectFileFirst'), |
|
121 | + get_lang('UplNoFileUploaded').' '.get_lang('UplSelectFileFirst'), |
|
122 | 122 | 'error' |
123 | 123 | ) |
124 | 124 | ); |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | if ($output) { |
473 | 473 | Display::addFlash( |
474 | 474 | Display::return_message( |
475 | - get_lang('UplUploadSucceeded') . '<br /> ' . $documentTitle . ' ' . get_lang('UplFileOverwritten'), |
|
475 | + get_lang('UplUploadSucceeded').'<br /> '.$documentTitle.' '.get_lang('UplFileOverwritten'), |
|
476 | 476 | 'confirmation', |
477 | 477 | false |
478 | 478 | ) |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | if ($output) { |
610 | 610 | Display::addFlash( |
611 | 611 | Display::return_message( |
612 | - get_lang('UplUploadSucceeded') . '<br />' . get_lang('UplFileSavedAs') . ' ' . $documentTitle, |
|
612 | + get_lang('UplUploadSucceeded').'<br />'.get_lang('UplFileSavedAs').' '.$documentTitle, |
|
613 | 613 | 'success', |
614 | 614 | false |
615 | 615 | ) |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | if ($output) { |
687 | 687 | Display::addFlash( |
688 | 688 | Display::display_confirmation_message( |
689 | - get_lang('UplUploadSucceeded') . '<br /> ' . $documentTitle, |
|
689 | + get_lang('UplUploadSucceeded').'<br /> '.$documentTitle, |
|
690 | 690 | false, |
691 | 691 | true |
692 | 692 | ) |
@@ -772,12 +772,12 @@ discard block |
||
772 | 772 | function dir_total_space($dir_path) |
773 | 773 | { |
774 | 774 | $save_dir = getcwd(); |
775 | - chdir($dir_path) ; |
|
775 | + chdir($dir_path); |
|
776 | 776 | $handle = opendir($dir_path); |
777 | 777 | $sumSize = 0; |
778 | 778 | $dirList = array(); |
779 | 779 | while ($element = readdir($handle)) { |
780 | - if ( $element == '.' || $element == '..') { |
|
780 | + if ($element == '.' || $element == '..') { |
|
781 | 781 | continue; // Skip the current and parent directories |
782 | 782 | } |
783 | 783 | if (is_file($element)) { |
@@ -788,11 +788,11 @@ discard block |
||
788 | 788 | } |
789 | 789 | } |
790 | 790 | |
791 | - closedir($handle) ; |
|
791 | + closedir($handle); |
|
792 | 792 | |
793 | 793 | if (sizeof($dirList) > 0) { |
794 | 794 | foreach ($dirList as $j) { |
795 | - $sizeDir = dir_total_space($j); // Recursivity |
|
795 | + $sizeDir = dir_total_space($j); // Recursivity |
|
796 | 796 | $sumSize += $sizeDir; |
797 | 797 | } |
798 | 798 | } |
@@ -826,63 +826,63 @@ discard block |
||
826 | 826 | |
827 | 827 | static $mime_type = array(); |
828 | 828 | |
829 | - $mime_type[] = 'application/msword'; $extension[] = '.doc'; |
|
830 | - $mime_type[] = 'application/rtf'; $extension[] = '.rtf'; |
|
831 | - $mime_type[] = 'application/vnd.ms-powerpoint'; $extension[] = '.ppt'; |
|
832 | - $mime_type[] = 'application/vnd.ms-excel'; $extension[] = '.xls'; |
|
833 | - $mime_type[] = 'application/pdf'; $extension[] = '.pdf'; |
|
834 | - $mime_type[] = 'application/postscript'; $extension[] = '.ps'; |
|
835 | - $mime_type[] = 'application/mac-binhex40'; $extension[] = '.hqx'; |
|
836 | - $mime_type[] = 'application/x-gzip'; $extension[] = 'tar.gz'; |
|
837 | - $mime_type[] = 'application/x-shockwave-flash'; $extension[] = '.swf'; |
|
838 | - $mime_type[] = 'application/x-stuffit'; $extension[] = '.sit'; |
|
839 | - $mime_type[] = 'application/x-tar'; $extension[] = '.tar'; |
|
840 | - $mime_type[] = 'application/zip'; $extension[] = '.zip'; |
|
841 | - $mime_type[] = 'application/x-tar'; $extension[] = '.tar'; |
|
842 | - $mime_type[] = 'text/html'; $extension[] = '.html'; |
|
843 | - $mime_type[] = 'text/plain'; $extension[] = '.txt'; |
|
844 | - $mime_type[] = 'text/rtf'; $extension[] = '.rtf'; |
|
845 | - $mime_type[] = 'img/gif'; $extension[] = '.gif'; |
|
846 | - $mime_type[] = 'img/jpeg'; $extension[] = '.jpg'; |
|
847 | - $mime_type[] = 'img/png'; $extension[] = '.png'; |
|
848 | - $mime_type[] = 'audio/midi'; $extension[] = '.mid'; |
|
849 | - $mime_type[] = 'audio/mpeg'; $extension[] = '.mp3'; |
|
850 | - $mime_type[] = 'audio/x-aiff'; $extension[] = '.aif'; |
|
851 | - $mime_type[] = 'audio/x-pn-realaudio'; $extension[] = '.rm'; |
|
852 | - $mime_type[] = 'audio/x-pn-realaudio-plugin'; $extension[] = '.rpm'; |
|
853 | - $mime_type[] = 'audio/x-wav'; $extension[] = '.wav'; |
|
854 | - $mime_type[] = 'video/mpeg'; $extension[] = '.mpg'; |
|
855 | - $mime_type[] = 'video/mpeg4-generic'; $extension[] = '.mp4'; |
|
856 | - $mime_type[] = 'video/quicktime'; $extension[] = '.mov'; |
|
857 | - $mime_type[] = 'video/x-msvideo'; $extension[] = '.avi'; |
|
858 | - |
|
859 | - $mime_type[] = 'video/x-ms-wmv'; $extension[] = '.wmv'; |
|
860 | - $mime_type[] = 'video/x-flv'; $extension[] = '.flv'; |
|
861 | - $mime_type[] = 'image/svg+xml'; $extension[] = '.svg'; |
|
862 | - $mime_type[] = 'image/svg+xml'; $extension[] = '.svgz'; |
|
863 | - $mime_type[] = 'video/ogg'; $extension[] = '.ogv'; |
|
864 | - $mime_type[] = 'audio/ogg'; $extension[] = '.oga'; |
|
865 | - $mime_type[] = 'application/ogg'; $extension[] = '.ogg'; |
|
866 | - $mime_type[] = 'application/ogg'; $extension[] = '.ogx'; |
|
867 | - $mime_type[] = 'application/x-freemind'; $extension[] = '.mm'; |
|
868 | - |
|
869 | - $mime_type[] = 'application/vnd.ms-word.document.macroEnabled.12'; $extension[] = '.docm'; |
|
870 | - $mime_type[] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; $extension[] = '.docx'; |
|
871 | - $mime_type[] = 'application/vnd.ms-word.template.macroEnabled.12'; $extension[] = '.dotm'; |
|
872 | - $mime_type[] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.template'; $extension[] = '.dotx'; |
|
873 | - $mime_type[] = 'application/vnd.ms-powerpoint.template.macroEnabled.12'; $extension[] = '.potm'; |
|
874 | - $mime_type[] = 'application/vnd.openxmlformats-officedocument.presentationml.template'; $extension[] = '.potx'; |
|
875 | - $mime_type[] = 'application/vnd.ms-powerpoint.addin.macroEnabled.12'; $extension[] = '.ppam'; |
|
876 | - $mime_type[] = 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12'; $extension[] = '.ppsm'; |
|
877 | - $mime_type[] = 'application/vnd.openxmlformats-officedocument.presentationml.slideshow'; $extension[] = '.ppsx'; |
|
878 | - $mime_type[] = 'application/vnd.ms-powerpoint.presentation.macroEnabled.12'; $extension[] = '.pptm'; |
|
879 | - $mime_type[] = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; $extension[] = '.pptx'; |
|
880 | - $mime_type[] = 'application/vnd.ms-excel.addin.macroEnabled.12'; $extension[] = '.xlam'; |
|
881 | - $mime_type[] = 'application/vnd.ms-excel.sheet.binary.macroEnabled.12'; $extension[] = '.xlsb'; |
|
882 | - $mime_type[] = 'application/vnd.ms-excel.sheet.macroEnabled.12'; $extension[] = '.xlsm'; |
|
883 | - $mime_type[] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; $extension[] = '.xlsx'; |
|
884 | - $mime_type[] = 'application/vnd.ms-excel.template.macroEnabled.12'; $extension[] = '.xltm'; |
|
885 | - $mime_type[] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.template'; $extension[] = '.xltx'; |
|
829 | + $mime_type[] = 'application/msword'; $extension[] = '.doc'; |
|
830 | + $mime_type[] = 'application/rtf'; $extension[] = '.rtf'; |
|
831 | + $mime_type[] = 'application/vnd.ms-powerpoint'; $extension[] = '.ppt'; |
|
832 | + $mime_type[] = 'application/vnd.ms-excel'; $extension[] = '.xls'; |
|
833 | + $mime_type[] = 'application/pdf'; $extension[] = '.pdf'; |
|
834 | + $mime_type[] = 'application/postscript'; $extension[] = '.ps'; |
|
835 | + $mime_type[] = 'application/mac-binhex40'; $extension[] = '.hqx'; |
|
836 | + $mime_type[] = 'application/x-gzip'; $extension[] = 'tar.gz'; |
|
837 | + $mime_type[] = 'application/x-shockwave-flash'; $extension[] = '.swf'; |
|
838 | + $mime_type[] = 'application/x-stuffit'; $extension[] = '.sit'; |
|
839 | + $mime_type[] = 'application/x-tar'; $extension[] = '.tar'; |
|
840 | + $mime_type[] = 'application/zip'; $extension[] = '.zip'; |
|
841 | + $mime_type[] = 'application/x-tar'; $extension[] = '.tar'; |
|
842 | + $mime_type[] = 'text/html'; $extension[] = '.html'; |
|
843 | + $mime_type[] = 'text/plain'; $extension[] = '.txt'; |
|
844 | + $mime_type[] = 'text/rtf'; $extension[] = '.rtf'; |
|
845 | + $mime_type[] = 'img/gif'; $extension[] = '.gif'; |
|
846 | + $mime_type[] = 'img/jpeg'; $extension[] = '.jpg'; |
|
847 | + $mime_type[] = 'img/png'; $extension[] = '.png'; |
|
848 | + $mime_type[] = 'audio/midi'; $extension[] = '.mid'; |
|
849 | + $mime_type[] = 'audio/mpeg'; $extension[] = '.mp3'; |
|
850 | + $mime_type[] = 'audio/x-aiff'; $extension[] = '.aif'; |
|
851 | + $mime_type[] = 'audio/x-pn-realaudio'; $extension[] = '.rm'; |
|
852 | + $mime_type[] = 'audio/x-pn-realaudio-plugin'; $extension[] = '.rpm'; |
|
853 | + $mime_type[] = 'audio/x-wav'; $extension[] = '.wav'; |
|
854 | + $mime_type[] = 'video/mpeg'; $extension[] = '.mpg'; |
|
855 | + $mime_type[] = 'video/mpeg4-generic'; $extension[] = '.mp4'; |
|
856 | + $mime_type[] = 'video/quicktime'; $extension[] = '.mov'; |
|
857 | + $mime_type[] = 'video/x-msvideo'; $extension[] = '.avi'; |
|
858 | + |
|
859 | + $mime_type[] = 'video/x-ms-wmv'; $extension[] = '.wmv'; |
|
860 | + $mime_type[] = 'video/x-flv'; $extension[] = '.flv'; |
|
861 | + $mime_type[] = 'image/svg+xml'; $extension[] = '.svg'; |
|
862 | + $mime_type[] = 'image/svg+xml'; $extension[] = '.svgz'; |
|
863 | + $mime_type[] = 'video/ogg'; $extension[] = '.ogv'; |
|
864 | + $mime_type[] = 'audio/ogg'; $extension[] = '.oga'; |
|
865 | + $mime_type[] = 'application/ogg'; $extension[] = '.ogg'; |
|
866 | + $mime_type[] = 'application/ogg'; $extension[] = '.ogx'; |
|
867 | + $mime_type[] = 'application/x-freemind'; $extension[] = '.mm'; |
|
868 | + |
|
869 | + $mime_type[] = 'application/vnd.ms-word.document.macroEnabled.12'; $extension[] = '.docm'; |
|
870 | + $mime_type[] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; $extension[] = '.docx'; |
|
871 | + $mime_type[] = 'application/vnd.ms-word.template.macroEnabled.12'; $extension[] = '.dotm'; |
|
872 | + $mime_type[] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.template'; $extension[] = '.dotx'; |
|
873 | + $mime_type[] = 'application/vnd.ms-powerpoint.template.macroEnabled.12'; $extension[] = '.potm'; |
|
874 | + $mime_type[] = 'application/vnd.openxmlformats-officedocument.presentationml.template'; $extension[] = '.potx'; |
|
875 | + $mime_type[] = 'application/vnd.ms-powerpoint.addin.macroEnabled.12'; $extension[] = '.ppam'; |
|
876 | + $mime_type[] = 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12'; $extension[] = '.ppsm'; |
|
877 | + $mime_type[] = 'application/vnd.openxmlformats-officedocument.presentationml.slideshow'; $extension[] = '.ppsx'; |
|
878 | + $mime_type[] = 'application/vnd.ms-powerpoint.presentation.macroEnabled.12'; $extension[] = '.pptm'; |
|
879 | + $mime_type[] = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; $extension[] = '.pptx'; |
|
880 | + $mime_type[] = 'application/vnd.ms-excel.addin.macroEnabled.12'; $extension[] = '.xlam'; |
|
881 | + $mime_type[] = 'application/vnd.ms-excel.sheet.binary.macroEnabled.12'; $extension[] = '.xlsb'; |
|
882 | + $mime_type[] = 'application/vnd.ms-excel.sheet.macroEnabled.12'; $extension[] = '.xlsm'; |
|
883 | + $mime_type[] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; $extension[] = '.xlsx'; |
|
884 | + $mime_type[] = 'application/vnd.ms-excel.template.macroEnabled.12'; $extension[] = '.xltm'; |
|
885 | + $mime_type[] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.template'; $extension[] = '.xltx'; |
|
886 | 886 | |
887 | 887 | // Test on PC (files with no extension get application/octet-stream) |
888 | 888 | //$mime_type[] = 'application/octet-stream'; $extension[] = '.ext'; |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | |
892 | 892 | foreach ($mime_type as $key => & $type) { |
893 | 893 | if ($type == $file_type) { |
894 | - $file_name .= $extension[$key]; |
|
894 | + $file_name .= $extension[$key]; |
|
895 | 895 | break; |
896 | 896 | } |
897 | 897 | } |
@@ -967,12 +967,12 @@ discard block |
||
967 | 967 | } |
968 | 968 | |
969 | 969 | // It happens on Linux that $upload_path sometimes doesn't start with '/' |
970 | - if ($upload_path[0] != '/' && substr($base_work_dir,-1,1) != '/') { |
|
970 | + if ($upload_path[0] != '/' && substr($base_work_dir, -1, 1) != '/') { |
|
971 | 971 | $upload_path = '/'.$upload_path; |
972 | 972 | } |
973 | 973 | |
974 | 974 | if ($upload_path[strlen($upload_path) - 1] == '/') { |
975 | - $upload_path=substr($upload_path, 0, -1); |
|
975 | + $upload_path = substr($upload_path, 0, -1); |
|
976 | 976 | } |
977 | 977 | |
978 | 978 | /* Uncompressing phase */ |
@@ -984,15 +984,15 @@ discard block |
||
984 | 984 | - add it to the database |
985 | 985 | - parse & change relative html links |
986 | 986 | */ |
987 | - if (PHP_OS == 'Linux' && ! get_cfg_var('safe_mode') && false) { // *** UGent, changed by OC *** |
|
987 | + if (PHP_OS == 'Linux' && !get_cfg_var('safe_mode') && false) { // *** UGent, changed by OC *** |
|
988 | 988 | // Shell Method - if this is possible, it gains some speed |
989 | - exec("unzip -d \"".$base_work_dir.$upload_path."/\"".$uploaded_file['name']." " .$uploaded_file['tmp_name']); |
|
989 | + exec("unzip -d \"".$base_work_dir.$upload_path."/\"".$uploaded_file['name']." ".$uploaded_file['tmp_name']); |
|
990 | 990 | } else { |
991 | 991 | // PHP method - slower... |
992 | 992 | $save_dir = getcwd(); |
993 | 993 | chdir($base_work_dir.$upload_path); |
994 | 994 | $unzippingState = $zip_file->extract(); |
995 | - for ($j=0; $j < count($unzippingState); $j++) { |
|
995 | + for ($j = 0; $j < count($unzippingState); $j++) { |
|
996 | 996 | $state = $unzippingState[$j]; |
997 | 997 | |
998 | 998 | // Fix relative links in html files |
@@ -1006,8 +1006,8 @@ discard block |
||
1006 | 1006 | if (is_dir($base_work_dir.$upload_path.'/'.$file)) $filetype = 'folder'; |
1007 | 1007 | |
1008 | 1008 | $safe_file = api_replace_dangerous_char($file); |
1009 | - @rename($base_work_dir.$upload_path.'/'.$file,$base_work_dir.$upload_path.'/'.$safe_file); |
|
1010 | - set_default_settings($upload_path, $safe_file,$filetype); |
|
1009 | + @rename($base_work_dir.$upload_path.'/'.$file, $base_work_dir.$upload_path.'/'.$safe_file); |
|
1010 | + set_default_settings($upload_path, $safe_file, $filetype); |
|
1011 | 1011 | } |
1012 | 1012 | } |
1013 | 1013 | |
@@ -1057,7 +1057,7 @@ discard block |
||
1057 | 1057 | $zip = new PclZip($uploaded_file['tmp_name']); |
1058 | 1058 | |
1059 | 1059 | // Check the zip content (real size and file extension) |
1060 | - $zip_content_array = (array)$zip->listContent(); |
|
1060 | + $zip_content_array = (array) $zip->listContent(); |
|
1061 | 1061 | |
1062 | 1062 | $realSize = 0; |
1063 | 1063 | foreach ($zip_content_array as & $this_content) { |
@@ -1159,7 +1159,7 @@ discard block |
||
1159 | 1159 | function filter_extension(&$filename) |
1160 | 1160 | { |
1161 | 1161 | if (substr($filename, -1) == '/') { |
1162 | - return 1; // Authorize directories |
|
1162 | + return 1; // Authorize directories |
|
1163 | 1163 | } |
1164 | 1164 | $blacklist = api_get_setting('upload_extensions_list_type'); |
1165 | 1165 | if ($blacklist != 'whitelist') { // if = blacklist |
@@ -1392,9 +1392,9 @@ discard block |
||
1392 | 1392 | $upload_path = str_replace('//', '/', $upload_path); |
1393 | 1393 | |
1394 | 1394 | if ($upload_path == '/') { |
1395 | - $upload_path=''; |
|
1395 | + $upload_path = ''; |
|
1396 | 1396 | } elseif (!empty($upload_path) && $upload_path[0] != '/') { |
1397 | - $upload_path="/$upload_path"; |
|
1397 | + $upload_path = "/$upload_path"; |
|
1398 | 1398 | } |
1399 | 1399 | |
1400 | 1400 | $endchar = substr($filename, strlen($filename) - 1, 1); |
@@ -1432,7 +1432,7 @@ discard block |
||
1432 | 1432 | $img_path_list = array(); |
1433 | 1433 | |
1434 | 1434 | if (!$fp = fopen($html_file, 'r')) { |
1435 | - return ; |
|
1435 | + return; |
|
1436 | 1436 | } |
1437 | 1437 | |
1438 | 1438 | // Aearch and store occurences of the <img> tag in an array |
@@ -1452,7 +1452,7 @@ discard block |
||
1452 | 1452 | $img_tag_list = $matches[0]; |
1453 | 1453 | } |
1454 | 1454 | |
1455 | - fclose ($fp); |
|
1455 | + fclose($fp); |
|
1456 | 1456 | unset($buffer); |
1457 | 1457 | |
1458 | 1458 | // Search the image file path from all the <IMG> tag detected |
@@ -1551,7 +1551,7 @@ discard block |
||
1551 | 1551 | |
1552 | 1552 | if (!is_dir($base_work_dir.$systemFolderName)) { |
1553 | 1553 | $result = mkdir( |
1554 | - $base_work_dir . $systemFolderName, |
|
1554 | + $base_work_dir.$systemFolderName, |
|
1555 | 1555 | api_get_permissions_for_new_directories(), |
1556 | 1556 | true |
1557 | 1557 | ); |
@@ -1564,7 +1564,7 @@ discard block |
||
1564 | 1564 | WHERE |
1565 | 1565 | c_id = $course_id AND |
1566 | 1566 | ( |
1567 | - path = '" . Database::escape_string($systemFolderName). "' |
|
1567 | + path = '".Database::escape_string($systemFolderName)."' |
|
1568 | 1568 | ) |
1569 | 1569 | "; |
1570 | 1570 | |
@@ -1721,7 +1721,7 @@ discard block |
||
1721 | 1721 | |
1722 | 1722 | // Fix the image tags |
1723 | 1723 | |
1724 | - for ($i = 0, $fileNb = count($original_img_path); $i < $fileNb ; $i++) { |
|
1724 | + for ($i = 0, $fileNb = count($original_img_path); $i < $fileNb; $i++) { |
|
1725 | 1725 | $replace_what = $original_img_path[$i]; |
1726 | 1726 | // We only need the directory and the filename /path/to/file_html_files/missing_file.gif -> file_html_files/missing_file.gif |
1727 | 1727 | $exploded_file_path = explode('/', $new_img_path[$i]); |
@@ -1762,7 +1762,7 @@ discard block |
||
1762 | 1762 | .'</body>' |
1763 | 1763 | .'</html>'; |
1764 | 1764 | if (file_exists($file_path)) { |
1765 | - if (!($fp = fopen ($file_path, 'w'))) { |
|
1765 | + if (!($fp = fopen($file_path, 'w'))) { |
|
1766 | 1766 | return false; |
1767 | 1767 | } |
1768 | 1768 | return fwrite($fp, $file_content); |
@@ -1799,7 +1799,7 @@ discard block |
||
1799 | 1799 | { |
1800 | 1800 | // Do we need a / or not? |
1801 | 1801 | $added_slash = ($upload_path == '/') ? '' : '/'; |
1802 | - $folder_id = DocumentManager::get_document_id(api_get_course_info(), $upload_path); |
|
1802 | + $folder_id = DocumentManager::get_document_id(api_get_course_info(), $upload_path); |
|
1803 | 1803 | // Build the form |
1804 | 1804 | $form = "<p><strong>".get_lang('MissingImagesDetected')."</strong></p>" |
1805 | 1805 | ."<form method=\"post\" action=\"".api_get_self()."\" enctype=\"multipart/form-data\">" |
@@ -34,8 +34,8 @@ |
||
34 | 34 | $idUserLocal = api_get_user_id(); |
35 | 35 | $userLocal = api_get_user_info($idUserLocal, true); |
36 | 36 | $htmlHeadXtra[] = '<script type="text/javascript" src="' |
37 | - . api_get_path(WEB_PATH) . 'web/assets/simpleWebRTC/latest.js' |
|
38 | - . '"></script>' . "\n"; |
|
37 | + . api_get_path(WEB_PATH).'web/assets/simpleWebRTC/latest.js' |
|
38 | + . '"></script>'."\n"; |
|
39 | 39 | |
40 | 40 | $template = new Template(); |
41 | 41 | $template->assign('room_name', $chatVideo->getRoomName()); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | 'Institution' => 'Platform', |
142 | 142 | 'InstitutionUrl' => 'Platform', |
143 | 143 | 'siteName' => 'Platform', |
144 | - 'emailAdministrator' => 'admin',//'emailAdministrator' => 'Platform', |
|
144 | + 'emailAdministrator' => 'admin', //'emailAdministrator' => 'Platform', |
|
145 | 145 | 'administratorSurname' => 'admin', |
146 | 146 | 'administratorTelephone' => 'admin', |
147 | 147 | 'administratorName' => 'admin', |
@@ -252,11 +252,11 @@ discard block |
||
252 | 252 | 'allow_send_message_to_all_platform_users' => 'Tools', |
253 | 253 | 'message_max_upload_filesize' => 'Tools', |
254 | 254 | 'use_users_timezone' => 'profile', //'use_users_timezone' => 'Timezones', |
255 | - 'timezone_value' => 'platform',//'timezone_value' => 'Timezones', |
|
255 | + 'timezone_value' => 'platform', //'timezone_value' => 'Timezones', |
|
256 | 256 | 'allow_user_course_subscription_by_course_admin' => 'Security', |
257 | 257 | 'show_link_bug_notification' => 'Platform', |
258 | 258 | 'show_link_ticket_notification' => 'Platform', |
259 | - 'course_validation' => 'course',//'course_validation' => 'Platform', |
|
259 | + 'course_validation' => 'course', //'course_validation' => 'Platform', |
|
260 | 260 | 'course_validation_terms_and_conditions_url' => 'Platform', |
261 | 261 | 'sso_authentication' => 'Security', |
262 | 262 | 'sso_authentication_domain' => 'Security', |