@@ -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 | } |
@@ -10,25 +10,25 @@ discard block |
||
10 | 10 | */ |
11 | 11 | class Announcement extends Coursecopy\Resource |
12 | 12 | { |
13 | - /** |
|
14 | - * The title of the announcement |
|
15 | - */ |
|
13 | + /** |
|
14 | + * The title of the announcement |
|
15 | + */ |
|
16 | 16 | public $title; |
17 | - /** |
|
18 | - * The content of the announcement |
|
19 | - */ |
|
17 | + /** |
|
18 | + * The content of the announcement |
|
19 | + */ |
|
20 | 20 | public $content; |
21 | - /** |
|
22 | - * The date on which this announcement was made |
|
23 | - */ |
|
21 | + /** |
|
22 | + * The date on which this announcement was made |
|
23 | + */ |
|
24 | 24 | public $date; |
25 | - /** |
|
26 | - * The display order of this announcement |
|
27 | - */ |
|
25 | + /** |
|
26 | + * The display order of this announcement |
|
27 | + */ |
|
28 | 28 | public $display_order; |
29 | - /** |
|
30 | - * Has the e-mail been sent? |
|
31 | - */ |
|
29 | + /** |
|
30 | + * Has the e-mail been sent? |
|
31 | + */ |
|
32 | 32 | public $email_sent; |
33 | 33 | |
34 | 34 | public $attachment_path; |
@@ -39,36 +39,36 @@ discard block |
||
39 | 39 | |
40 | 40 | public $attachment_comment; |
41 | 41 | |
42 | - /** |
|
43 | - * Create a new announcement |
|
44 | - * @param int $id |
|
45 | - * @param string $title |
|
46 | - * @param string $content |
|
47 | - * @param string $date |
|
48 | - * @param int display_order |
|
49 | - */ |
|
42 | + /** |
|
43 | + * Create a new announcement |
|
44 | + * @param int $id |
|
45 | + * @param string $title |
|
46 | + * @param string $content |
|
47 | + * @param string $date |
|
48 | + * @param int display_order |
|
49 | + */ |
|
50 | 50 | function __construct($id, $title, $content, $date, $display_order, $email_sent, $path, $filename, $size, $comment) |
51 | 51 | { |
52 | - parent::__construct($id,RESOURCE_ANNOUNCEMENT); |
|
52 | + parent::__construct($id,RESOURCE_ANNOUNCEMENT); |
|
53 | 53 | |
54 | - $this->content = $content; |
|
55 | - $this->title = $title; |
|
56 | - $this->date = $date; |
|
57 | - $this->display_order = $display_order; |
|
58 | - $this->email_sent = $email_sent; |
|
54 | + $this->content = $content; |
|
55 | + $this->title = $title; |
|
56 | + $this->date = $date; |
|
57 | + $this->display_order = $display_order; |
|
58 | + $this->email_sent = $email_sent; |
|
59 | 59 | |
60 | - $this->attachment_path = $path; |
|
61 | - $this->attachment_filename = $filename; |
|
62 | - $this->attachment_size = $size; |
|
63 | - $this->attachment_comment = $comment; |
|
64 | - } |
|
60 | + $this->attachment_path = $path; |
|
61 | + $this->attachment_filename = $filename; |
|
62 | + $this->attachment_size = $size; |
|
63 | + $this->attachment_comment = $comment; |
|
64 | + } |
|
65 | 65 | |
66 | - /** |
|
67 | - * Show this announcement |
|
68 | - */ |
|
69 | - function show() |
|
70 | - { |
|
71 | - parent::show(); |
|
72 | - echo $this->date.': '.$this->title; |
|
73 | - } |
|
66 | + /** |
|
67 | + * Show this announcement |
|
68 | + */ |
|
69 | + function show() |
|
70 | + { |
|
71 | + parent::show(); |
|
72 | + echo $this->date.': '.$this->title; |
|
73 | + } |
|
74 | 74 | } |