@@ -91,16 +91,16 @@ |
||
91 | 91 | $pathinfo = pathinfo($header_file); |
92 | 92 | |
93 | 93 | if ($pathinfo['extension']=='wav' && preg_match('/_chnano_.wav/i', $file_url_web) && api_get_setting('enable_nanogong') == 'true'){ |
94 | - echo '<div align="center">'; |
|
95 | - echo '<br/>'; |
|
96 | - echo '<applet id="applet" archive="../inc/lib/nanogong/nanogong.jar" code="gong.NanoGong" width="160" height="95" >'; |
|
97 | - echo '<param name="SoundFileURL" value="'.$file_url_web.'" />'; |
|
98 | - echo '<param name="ShowSaveButton" value="false" />'; |
|
99 | - echo '<param name="ShowTime" value="true" />'; |
|
100 | - echo '<param name="ShowRecordButton" value="false" />'; |
|
101 | - echo '</applet>'; |
|
102 | - echo '</div>'; |
|
94 | + echo '<div align="center">'; |
|
95 | + echo '<br/>'; |
|
96 | + echo '<applet id="applet" archive="../inc/lib/nanogong/nanogong.jar" code="gong.NanoGong" width="160" height="95" >'; |
|
97 | + echo '<param name="SoundFileURL" value="'.$file_url_web.'" />'; |
|
98 | + echo '<param name="ShowSaveButton" value="false" />'; |
|
99 | + echo '<param name="ShowTime" value="true" />'; |
|
100 | + echo '<param name="ShowRecordButton" value="false" />'; |
|
101 | + echo '</applet>'; |
|
102 | + echo '</div>'; |
|
103 | 103 | } else { |
104 | - if ($pathinfo['extension']=='swf') { $width='83%'; $height='83%';} else {$width='100%'; $height='100%';} |
|
105 | - echo '<iframe border="0" frameborder="0" scrolling="no" style="width:'.$width.'; height:'.$height.';background-color:#ffffff;" id="mainFrame" name="mainFrame" src="'.$file_url_web.'?'.api_get_cidreq().'&rand='.mt_rand(1, 1000).'"></iframe>'; |
|
104 | + if ($pathinfo['extension']=='swf') { $width='83%'; $height='83%';} else {$width='100%'; $height='100%';} |
|
105 | + echo '<iframe border="0" frameborder="0" scrolling="no" style="width:'.$width.'; height:'.$height.';background-color:#ffffff;" id="mainFrame" name="mainFrame" src="'.$file_url_web.'?'.api_get_cidreq().'&rand='.mt_rand(1, 1000).'"></iframe>'; |
|
106 | 106 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $result = $objExercise->read($exercise_id); |
18 | 18 | |
19 | 19 | if (!$result) { |
20 | - api_not_allowed(true); |
|
20 | + api_not_allowed(true); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | $interbreadcrumb[] = array( |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $result = $objExercise->read($exercise_id); |
18 | 18 | |
19 | 19 | if (!$result) { |
20 | - api_not_allowed(true); |
|
20 | + api_not_allowed(true); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | $interbreadcrumb[] = array( |
@@ -261,7 +261,7 @@ |
||
261 | 261 | ?> |
262 | 262 | <option value="<?php echo $enreg['user_id']; ?>"><?php echo $enreg['username'].' - '.api_get_person_name($enreg['firstname'], $enreg['lastname']); ?></option> |
263 | 263 | <?php |
264 | - } |
|
264 | + } |
|
265 | 265 | unset($nosessionUsersList); |
266 | 266 | ?> |
267 | 267 | </select> |
@@ -60,9 +60,9 @@ |
||
60 | 60 | |
61 | 61 | <?php |
62 | 62 | if (isset($action) && ($action=="synchro")) { |
63 | - $included=true; |
|
64 | - require('ldap_synchro.php'); |
|
65 | - Display :: display_normal_message($message,false); |
|
63 | + $included=true; |
|
64 | + require('ldap_synchro.php'); |
|
65 | + Display :: display_normal_message($message,false); |
|
66 | 66 | } |
67 | 67 | Display::display_footer(); |
68 | 68 | ?> |
@@ -24,39 +24,39 @@ |
||
24 | 24 | $message = null; |
25 | 25 | |
26 | 26 | if ($form->validate()) { |
27 | - $archive_path = api_get_path(SYS_ARCHIVE_PATH); |
|
28 | - $htaccess = @file_get_contents($archive_path.'.htaccess'); |
|
29 | - $result = rmdirr($archive_path, true, true); |
|
27 | + $archive_path = api_get_path(SYS_ARCHIVE_PATH); |
|
28 | + $htaccess = @file_get_contents($archive_path.'.htaccess'); |
|
29 | + $result = rmdirr($archive_path, true, true); |
|
30 | 30 | |
31 | - \Chamilo\CoreBundle\Composer\ScriptHandler::dumpCssFiles(); |
|
31 | + \Chamilo\CoreBundle\Composer\ScriptHandler::dumpCssFiles(); |
|
32 | 32 | |
33 | - if (!empty($htaccess)) { |
|
34 | - @file_put_contents($archive_path.'/.htaccess', $htaccess); |
|
35 | - } |
|
36 | - if ($result) { |
|
37 | - $message = 'ArchiveDirCleanupSucceeded'; |
|
38 | - $type = 'confirmation'; |
|
39 | - } else { |
|
40 | - $message = 'ArchiveDirCleanupFailed'; |
|
41 | - $type = 'error'; |
|
42 | - } |
|
33 | + if (!empty($htaccess)) { |
|
34 | + @file_put_contents($archive_path.'/.htaccess', $htaccess); |
|
35 | + } |
|
36 | + if ($result) { |
|
37 | + $message = 'ArchiveDirCleanupSucceeded'; |
|
38 | + $type = 'confirmation'; |
|
39 | + } else { |
|
40 | + $message = 'ArchiveDirCleanupFailed'; |
|
41 | + $type = 'error'; |
|
42 | + } |
|
43 | 43 | |
44 | - header('Location: '.api_get_self().'?msg='.$message.'&type='.$type); |
|
45 | - exit; |
|
44 | + header('Location: '.api_get_self().'?msg='.$message.'&type='.$type); |
|
45 | + exit; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | Display::display_header(get_lang('ArchiveDirCleanup')); |
49 | 49 | Display::display_warning_message(get_lang('ArchiveDirCleanupDescr')); |
50 | 50 | |
51 | 51 | if (isset($_GET['msg']) && isset($_GET['type'])) { |
52 | - if (in_array($_GET['msg'], array('ArchiveDirCleanupSucceeded', 'ArchiveDirCleanupFailed'))) |
|
53 | - switch($_GET['type']) { |
|
54 | - case 'error': |
|
55 | - $message = Display::return_message(get_lang($_GET['msg']), 'error'); |
|
56 | - break; |
|
57 | - case 'confirmation': |
|
58 | - $message = Display::return_message(get_lang($_GET['msg']), 'confirm'); |
|
59 | - } |
|
52 | + if (in_array($_GET['msg'], array('ArchiveDirCleanupSucceeded', 'ArchiveDirCleanupFailed'))) |
|
53 | + switch($_GET['type']) { |
|
54 | + case 'error': |
|
55 | + $message = Display::return_message(get_lang($_GET['msg']), 'error'); |
|
56 | + break; |
|
57 | + case 'confirmation': |
|
58 | + $message = Display::return_message(get_lang($_GET['msg']), 'confirm'); |
|
59 | + } |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | if (!empty($message)) { |
@@ -4,8 +4,7 @@ |
||
4 | 4 | @author Andre Boivin base code |
5 | 5 | @author Julio Montoya fixing lot of little details |
6 | 6 | @todo this script is not ready for a production use that's why I'm commenting the function delete_inactive_student |
7 | - |
|
8 | -* @package chamilo.admin |
|
7 | + * @package chamilo.admin |
|
9 | 8 | * script pour effacer les user inactif depuis x temps |
10 | 9 | */ |
11 | 10 | $cidReset = true; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | public function deleteAction($id) { |
34 | - $event_email_template = new EventEmailTemplate(); |
|
34 | + $event_email_template = new EventEmailTemplate(); |
|
35 | 35 | return $event_email_template->delete($id); |
36 | 36 | } |
37 | 37 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | array('name'=>'language_id', 'index'=>'language_id', 'width'=>'80', 'align'=>'left'), |
74 | 74 | array('name'=>'activated', 'index'=>'activated', 'width'=>'80', 'align'=>'left'), |
75 | 75 | array('name'=>'actions', 'index'=>'actions', 'width'=>'100') |
76 | - ); |
|
76 | + ); |
|
77 | 77 | //Autowidth |
78 | 78 | $extra_params['autowidth'] = 'true'; |
79 | 79 | //height auto |
@@ -15,15 +15,15 @@ |
||
15 | 15 | Display::display_header($tool_name); |
16 | 16 | //api_display_tool_title($tool_name); |
17 | 17 | if (api_get_setting('server_type') != 'test') { |
18 | - echo get_lang('DummyCourseOnlyOnTestServer'); |
|
18 | + echo get_lang('DummyCourseOnlyOnTestServer'); |
|
19 | 19 | } elseif( isset($_POST['action'])) { |
20 | - require_once('../coursecopy/classes/DummyCourseCreator.class.php'); |
|
21 | - $dcc = new DummyCourseCreator(); |
|
22 | - $dcc->create_dummy_course($_POST['course_code']); |
|
23 | - echo get_lang('Done'); |
|
20 | + require_once('../coursecopy/classes/DummyCourseCreator.class.php'); |
|
21 | + $dcc = new DummyCourseCreator(); |
|
22 | + $dcc->create_dummy_course($_POST['course_code']); |
|
23 | + echo get_lang('Done'); |
|
24 | 24 | } else { |
25 | - echo get_lang('DummyCourseDescription'); |
|
26 | - echo '<form method="post"><input type="hidden" name="course_code" value="'.Security::remove_XSS($_GET['course_code']).'"/><input type="submit" name="action" value="'.get_lang('Ok').'"/></form>'; |
|
25 | + echo get_lang('DummyCourseDescription'); |
|
26 | + echo '<form method="post"><input type="hidden" name="course_code" value="'.Security::remove_XSS($_GET['course_code']).'"/><input type="submit" name="action" value="'.get_lang('Ok').'"/></form>'; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | Display::display_footer(); |