@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | $interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('MySpace')); |
19 | 19 | $id_session = ''; |
20 | 20 | if (isset($_GET['id_session']) && $_GET['id_session'] != '') { |
21 | - $id_session = intval($_GET['id_session']); |
|
22 | - $interbreadcrumb[] = array ('url' => 'session.php', 'name' => get_lang('Sessions')); |
|
23 | - $interbreadcrumb[] = array ('url' => 'course.php?id_session='.$id_session.'', 'name' => get_lang('Course')); |
|
21 | + $id_session = intval($_GET['id_session']); |
|
22 | + $interbreadcrumb[] = array ('url' => 'session.php', 'name' => get_lang('Sessions')); |
|
23 | + $interbreadcrumb[] = array ('url' => 'course.php?id_session='.$id_session.'', 'name' => get_lang('Course')); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | // Set this option to true to enforce strict purification for usenames. |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | } |
44 | 44 | } else { |
45 | - api_not_allowed(true); |
|
45 | + api_not_allowed(true); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | set_time_limit(0); |
@@ -87,18 +87,18 @@ discard block |
||
87 | 87 | Display :: display_header($tool_name); |
88 | 88 | |
89 | 89 | if ($_FILES['import_file']['size'] == 0 && $_POST) { |
90 | - Display::display_error_message(get_lang('ThisFieldIsRequired')); |
|
90 | + Display::display_error_message(get_lang('ThisFieldIsRequired')); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | if (count($errors) != 0) { |
94 | - $error_message = '<ul>'; |
|
95 | - foreach ($errors as $index => $error_user) { |
|
96 | - $error_message .= '<li><strong>'.$error_user['error'].'</strong>: '; |
|
97 | - $error_message .= api_get_person_name($error_user['FirstName'], $error_user['LastName']); |
|
98 | - $error_message .= '</li>'; |
|
99 | - } |
|
100 | - $error_message .= '</ul>'; |
|
101 | - Display :: display_error_message($error_message, false); |
|
94 | + $error_message = '<ul>'; |
|
95 | + foreach ($errors as $index => $error_user) { |
|
96 | + $error_message .= '<li><strong>'.$error_user['error'].'</strong>: '; |
|
97 | + $error_message .= api_get_person_name($error_user['FirstName'], $error_user['LastName']); |
|
98 | + $error_message .= '</li>'; |
|
99 | + } |
|
100 | + $error_message .= '</ul>'; |
|
101 | + Display :: display_error_message($error_message, false); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | $form = new FormValidator('user_import'); |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * CLAROLINE |
|
4 | - * |
|
5 | - * @version 1.7 $Revision: 1.12 $ |
|
6 | - * |
|
7 | - * @copyright 2001-2005 Universite catholique de Louvain (UCL) |
|
8 | - * |
|
9 | - * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE |
|
10 | - * This program is under the terms of the GENERAL PUBLIC LICENSE (GPL) |
|
11 | - * as published by the FREE SOFTWARE FOUNDATION. The GPL is available |
|
12 | - * through the world-wide-web at http://www.gnu.org/copyleft/gpl.html |
|
13 | - * |
|
14 | - * @author Frederic Minne <[email protected]> |
|
15 | - * |
|
16 | - * @package Wiki |
|
17 | - */ |
|
3 | + * CLAROLINE |
|
4 | + * |
|
5 | + * @version 1.7 $Revision: 1.12 $ |
|
6 | + * |
|
7 | + * @copyright 2001-2005 Universite catholique de Louvain (UCL) |
|
8 | + * |
|
9 | + * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE |
|
10 | + * This program is under the terms of the GENERAL PUBLIC LICENSE (GPL) |
|
11 | + * as published by the FREE SOFTWARE FOUNDATION. The GPL is available |
|
12 | + * through the world-wide-web at http://www.gnu.org/copyleft/gpl.html |
|
13 | + * |
|
14 | + * @author Frederic Minne <[email protected]> |
|
15 | + * |
|
16 | + * @package Wiki |
|
17 | + */ |
|
18 | 18 | /** |
19 | - * Code |
|
20 | - */ |
|
19 | + * Code |
|
20 | + */ |
|
21 | 21 | define("DIFF_EQUAL", "="); |
22 | 22 | define("DIFF_ADDED", "+"); |
23 | 23 | define("DIFF_DELETED", "-"); |
@@ -457,8 +457,8 @@ |
||
457 | 457 | |
458 | 458 | // The post has been displayed => it can be removed from the what's new array |
459 | 459 | if (isset($whatsnew_post_info[$forumId][$threadId][$row['post_id']])) { |
460 | - unset($whatsnew_post_info[$forumId][$threadId][$row['post_id']]); |
|
461 | - unset($_SESSION['whatsnew_post_info'][$forumId][$threadId][$row['post_id']]); |
|
460 | + unset($whatsnew_post_info[$forumId][$threadId][$row['post_id']]); |
|
461 | + unset($_SESSION['whatsnew_post_info'][$forumId][$threadId][$row['post_id']]); |
|
462 | 462 | } |
463 | 463 | echo "</table>"; |
464 | 464 |
@@ -500,7 +500,7 @@ |
||
500 | 500 | $html .= '</div>'; |
501 | 501 | $html .= '</div></div>'; |
502 | 502 | } |
503 | - echo $html; |
|
503 | + echo $html; |
|
504 | 504 | } |
505 | 505 | } |
506 | 506 | if (count($forum_list) == 0) { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * @package chamilo.forum |
|
5 | - */ |
|
4 | + * @package chamilo.forum |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | require_once '../inc/global.inc.php'; |
8 | 8 |
@@ -10,11 +10,11 @@ discard block |
||
10 | 10 | $this_section = SECTION_COURSES; |
11 | 11 | |
12 | 12 | if (isset($_GET['session']) && $_GET['session']) { |
13 | - $archive_path = api_get_path(SYS_ARCHIVE_PATH).'temp/'; |
|
14 | - $_cid = true; |
|
15 | - $is_courseAdmin = true; |
|
13 | + $archive_path = api_get_path(SYS_ARCHIVE_PATH).'temp/'; |
|
14 | + $_cid = true; |
|
15 | + $is_courseAdmin = true; |
|
16 | 16 | } else { |
17 | - $archive_path = api_get_path(SYS_ARCHIVE_PATH); |
|
17 | + $archive_path = api_get_path(SYS_ARCHIVE_PATH); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $archive_file = isset($_GET['archive']) ? $_GET['archive'] : null; |
@@ -23,20 +23,20 @@ discard block |
||
23 | 23 | list($extension) = getextension($archive_file); |
24 | 24 | |
25 | 25 | if (empty($extension) || !file_exists($archive_path.$archive_file)) { |
26 | - exit; |
|
26 | + exit; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | $extension = strtolower($extension); |
30 | 30 | $content_type = ''; |
31 | 31 | |
32 | 32 | if (in_array($extension, array('xml', 'csv')) && (api_is_platform_admin(true) || api_is_drh())) { |
33 | - $content_type = 'application/force-download'; |
|
33 | + $content_type = 'application/force-download'; |
|
34 | 34 | } elseif ($extension == 'zip' && $_cid && (api_is_platform_admin(true) || $is_courseAdmin)) { |
35 | - $content_type = 'application/force-download'; |
|
35 | + $content_type = 'application/force-download'; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | if (empty($content_type)) { |
39 | - api_not_allowed(true); |
|
39 | + api_not_allowed(true); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | if (Security::check_abs_path($archive_path.$archive_file, $archive_path)) { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $current_course_name = $_course['name']; |
22 | 22 | |
23 | 23 | if (!api_is_allowed_to_edit()) { |
24 | - api_not_allowed(true); |
|
24 | + api_not_allowed(true); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | $tool_name = get_lang('DelCourse'); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $message .= '<p><a class="btn btn-primary" href="'.api_get_path(WEB_CODE_PATH).'course_info/maintenance.php?'.api_get_cidreq().'">'. |
46 | 46 | get_lang('No').'</a> <a class="btn btn-danger" href="'.api_get_self().'?delete=yes&'.api_get_cidreq().'">'. |
47 | 47 | get_lang('Yes').'</a></p>'; |
48 | - $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance')); |
|
48 | + $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance')); |
|
49 | 49 | } |
50 | 50 | Display :: display_header($tool_name, 'Settings'); |
51 | 51 | echo Display::page_header($tool_name); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | if (api_is_allowed_to_edit() || api_is_coach()) { |
64 | 64 | //Search for all files that are not deleted => visibility != 2 |
65 | - $sql = "SELECT DISTINCT |
|
65 | + $sql = "SELECT DISTINCT |
|
66 | 66 | url, |
67 | 67 | title, |
68 | 68 | description, |
@@ -9,43 +9,43 @@ discard block |
||
9 | 9 | */ |
10 | 10 | class Wiki extends Coursecopy\Resource |
11 | 11 | { |
12 | - public $id; |
|
13 | - public $page_id; |
|
14 | - public $reflink; |
|
15 | - public $title; |
|
16 | - public $content; |
|
17 | - public $user_id; |
|
18 | - public $group_id; |
|
19 | - public $timestamp; |
|
20 | - public $progress; |
|
21 | - public $version; |
|
12 | + public $id; |
|
13 | + public $page_id; |
|
14 | + public $reflink; |
|
15 | + public $title; |
|
16 | + public $content; |
|
17 | + public $user_id; |
|
18 | + public $group_id; |
|
19 | + public $timestamp; |
|
20 | + public $progress; |
|
21 | + public $version; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Wiki constructor. |
|
25 | - * @param int $id |
|
26 | - * @param int $page_id |
|
27 | - * @param $reflink |
|
28 | - * @param $title |
|
29 | - * @param $content |
|
30 | - * @param $user_id |
|
31 | - * @param $group_id |
|
32 | - * @param $timestamp |
|
33 | - * @param $progress |
|
34 | - * @param $version |
|
35 | - */ |
|
36 | - public function __construct( |
|
37 | - $id, |
|
38 | - $page_id, |
|
39 | - $reflink, |
|
40 | - $title, |
|
41 | - $content, |
|
42 | - $user_id, |
|
43 | - $group_id, |
|
44 | - $timestamp, |
|
45 | - $progress, |
|
46 | - $version |
|
47 | - ) { |
|
48 | - parent::__construct($id,RESOURCE_WIKI); |
|
23 | + /** |
|
24 | + * Wiki constructor. |
|
25 | + * @param int $id |
|
26 | + * @param int $page_id |
|
27 | + * @param $reflink |
|
28 | + * @param $title |
|
29 | + * @param $content |
|
30 | + * @param $user_id |
|
31 | + * @param $group_id |
|
32 | + * @param $timestamp |
|
33 | + * @param $progress |
|
34 | + * @param $version |
|
35 | + */ |
|
36 | + public function __construct( |
|
37 | + $id, |
|
38 | + $page_id, |
|
39 | + $reflink, |
|
40 | + $title, |
|
41 | + $content, |
|
42 | + $user_id, |
|
43 | + $group_id, |
|
44 | + $timestamp, |
|
45 | + $progress, |
|
46 | + $version |
|
47 | + ) { |
|
48 | + parent::__construct($id,RESOURCE_WIKI); |
|
49 | 49 | $this->id = $id; |
50 | 50 | $this->page_id = $page_id; |
51 | 51 | $this->reflink = $reflink; |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | $this->dtime = $timestamp; |
57 | 57 | $this->progress = $progress; |
58 | 58 | $this->version = $version; |
59 | - } |
|
59 | + } |
|
60 | 60 | |
61 | - public function show() |
|
62 | - { |
|
63 | - parent::show(); |
|
64 | - echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>'; |
|
65 | - } |
|
61 | + public function show() |
|
62 | + { |
|
63 | + parent::show(); |
|
64 | + echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>'; |
|
65 | + } |
|
66 | 66 | } |