@@ -45,13 +45,13 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function is_block_visible_for_user($user_id) |
| 47 | 47 | { |
| 48 | - $user_info = api_get_user_info($user_id); |
|
| 49 | - $user_status = $user_info['status']; |
|
| 50 | - $is_block_visible_for_user = false; |
|
| 51 | - if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
|
| 52 | - $is_block_visible_for_user = true; |
|
| 53 | - } |
|
| 54 | - return $is_block_visible_for_user; |
|
| 48 | + $user_info = api_get_user_info($user_id); |
|
| 49 | + $user_status = $user_info['status']; |
|
| 50 | + $is_block_visible_for_user = false; |
|
| 51 | + if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
|
| 52 | + $is_block_visible_for_user = true; |
|
| 53 | + } |
|
| 54 | + return $is_block_visible_for_user; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | |
@@ -62,11 +62,11 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function get_block() |
| 64 | 64 | { |
| 65 | - global $charset; |
|
| 66 | - $column = 2; |
|
| 67 | - $data = array(); |
|
| 65 | + global $charset; |
|
| 66 | + $column = 2; |
|
| 67 | + $data = array(); |
|
| 68 | 68 | $content = $this->get_content_html(); |
| 69 | - $html = ' |
|
| 69 | + $html = ' |
|
| 70 | 70 | <div class="panel panel-default" id="intro"> |
| 71 | 71 | <div class="panel-heading">'.get_lang('GlobalPlatformInformation').' |
| 72 | 72 | <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
@@ -78,46 +78,46 @@ discard block |
||
| 78 | 78 | </div> |
| 79 | 79 | </div> |
| 80 | 80 | '; |
| 81 | - $data['column'] = $column; |
|
| 82 | - $data['content_html'] = $html; |
|
| 81 | + $data['column'] = $column; |
|
| 82 | + $data['content_html'] = $html; |
|
| 83 | 83 | |
| 84 | - return $data; |
|
| 84 | + return $data; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - /** |
|
| 88 | - * This method return a content html, it's used inside get_block method for showing it inside dashboard interface |
|
| 89 | - * @return string content html |
|
| 90 | - */ |
|
| 91 | - public function get_content_html() |
|
| 92 | - { |
|
| 93 | - $global_data = $this->get_global_information_data(); |
|
| 94 | - //$content = '<div style="margin:10px;">'; |
|
| 95 | - $content = '<h4>'.get_lang('GlobalPlatformInformation').'</h4>'; |
|
| 96 | - $data_table = null; |
|
| 97 | - if (!empty($global_data)) { |
|
| 98 | - $data_table = '<table class="table table-bordered" width:"95%">'; |
|
| 99 | - $i = 1; |
|
| 100 | - foreach ($global_data as $data) { |
|
| 101 | - if ($i%2 == 0) { |
|
| 102 | - $class_tr = 'row_odd'; |
|
| 103 | - } else { |
|
| 104 | - $class_tr = 'row_even'; |
|
| 105 | - } |
|
| 106 | - $data_table .= '<tr class="'.$class_tr.'">'; |
|
| 107 | - foreach ($data as $cell) { |
|
| 108 | - $data_table .= '<td align="right">'.$cell.'</td>'; |
|
| 109 | - } |
|
| 110 | - $data_table .= '</tr>'; |
|
| 111 | - $i++; |
|
| 112 | - } |
|
| 113 | - $data_table .= '</table>'; |
|
| 114 | - } else { |
|
| 115 | - $data_table .= get_lang('ThereIsNoInformationAboutThePlatform'); |
|
| 116 | - } |
|
| 117 | - $content .= $data_table; |
|
| 118 | - //$content .= '</div>'; |
|
| 87 | + /** |
|
| 88 | + * This method return a content html, it's used inside get_block method for showing it inside dashboard interface |
|
| 89 | + * @return string content html |
|
| 90 | + */ |
|
| 91 | + public function get_content_html() |
|
| 92 | + { |
|
| 93 | + $global_data = $this->get_global_information_data(); |
|
| 94 | + //$content = '<div style="margin:10px;">'; |
|
| 95 | + $content = '<h4>'.get_lang('GlobalPlatformInformation').'</h4>'; |
|
| 96 | + $data_table = null; |
|
| 97 | + if (!empty($global_data)) { |
|
| 98 | + $data_table = '<table class="table table-bordered" width:"95%">'; |
|
| 99 | + $i = 1; |
|
| 100 | + foreach ($global_data as $data) { |
|
| 101 | + if ($i%2 == 0) { |
|
| 102 | + $class_tr = 'row_odd'; |
|
| 103 | + } else { |
|
| 104 | + $class_tr = 'row_even'; |
|
| 105 | + } |
|
| 106 | + $data_table .= '<tr class="'.$class_tr.'">'; |
|
| 107 | + foreach ($data as $cell) { |
|
| 108 | + $data_table .= '<td align="right">'.$cell.'</td>'; |
|
| 109 | + } |
|
| 110 | + $data_table .= '</tr>'; |
|
| 111 | + $i++; |
|
| 112 | + } |
|
| 113 | + $data_table .= '</table>'; |
|
| 114 | + } else { |
|
| 115 | + $data_table .= get_lang('ThereIsNoInformationAboutThePlatform'); |
|
| 116 | + } |
|
| 117 | + $content .= $data_table; |
|
| 118 | + //$content .= '</div>'; |
|
| 119 | 119 | |
| 120 | - return $content; |
|
| 120 | + return $content; |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
@@ -29,10 +29,10 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * Constructor |
| 31 | 31 | */ |
| 32 | - public function __construct ($user_id) |
|
| 32 | + public function __construct($user_id) |
|
| 33 | 33 | { |
| 34 | - $this->user_id = $user_id; |
|
| 35 | - $this->path = 'block_global_info'; |
|
| 34 | + $this->user_id = $user_id; |
|
| 35 | + $this->path = 'block_global_info'; |
|
| 36 | 36 | if ($this->is_block_visible_for_user($user_id)) { |
| 37 | 37 | //$this->courses = CourseManager::get_courses_followed_by_drh($user_id); |
| 38 | 38 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $html = ' |
| 70 | 70 | <div class="panel panel-default" id="intro"> |
| 71 | 71 | <div class="panel-heading">'.get_lang('GlobalPlatformInformation').' |
| 72 | - <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
|
| 72 | + <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
|
| 73 | 73 | <em class="fa fa-times"></em> |
| 74 | 74 | </a></div> |
| 75 | 75 | </div> |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $data_table = '<table class="table table-bordered" width:"95%">'; |
| 99 | 99 | $i = 1; |
| 100 | 100 | foreach ($global_data as $data) { |
| 101 | - if ($i%2 == 0) { |
|
| 101 | + if ($i % 2 == 0) { |
|
| 102 | 102 | $class_tr = 'row_odd'; |
| 103 | 103 | } else { |
| 104 | 104 | $class_tr = 'row_even'; |
@@ -29,10 +29,10 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * Controller |
| 31 | 31 | */ |
| 32 | - public function __construct ($user_id) |
|
| 32 | + public function __construct($user_id) |
|
| 33 | 33 | { |
| 34 | - $this->user_id = $user_id; |
|
| 35 | - $this->path = 'block_teacher_graph'; |
|
| 34 | + $this->user_id = $user_id; |
|
| 35 | + $this->path = 'block_teacher_graph'; |
|
| 36 | 36 | if ($this->is_block_visible_for_user($user_id)) { |
| 37 | 37 | $this->teachers = UserManager::get_users_followed_by_drh($user_id, COURSEMANAGER); |
| 38 | 38 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $html = ' |
| 69 | 69 | <div class="panel panel-default" id="intro"> |
| 70 | 70 | <div class="panel-heading">'.get_lang('TeachersInformationsGraph').' |
| 71 | - <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
|
| 71 | + <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
|
| 72 | 72 | <em class="fa fa-times"></em> |
| 73 | 73 | </a></div> |
| 74 | 74 | </div> |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | foreach ($a_last_week as $day) { |
| 108 | 108 | // day is received as y-m-d 12:00:00 |
| 109 | 109 | $start_date = api_get_utc_datetime($day); |
| 110 | - $end_date = api_get_utc_datetime($day+(3600*24-1)); |
|
| 110 | + $end_date = api_get_utc_datetime($day + (3600 * 24 - 1)); |
|
| 111 | 111 | |
| 112 | 112 | $time_on_platform_by_day = Tracking::get_time_spent_on_the_platform($user_id, 'custom', $start_date, $end_date); |
| 113 | 113 | $hours = floor($time_on_platform_by_day / 3600); |
@@ -117,26 +117,26 @@ discard block |
||
| 117 | 117 | $dataSet->addPoints($time_by_days, $username); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - $last_week = date('Y-m-d',$a_last_week[0]).' '.get_lang('To').' '.date('Y-m-d', $a_last_week[6]); |
|
| 120 | + $last_week = date('Y-m-d', $a_last_week[0]).' '.get_lang('To').' '.date('Y-m-d', $a_last_week[6]); |
|
| 121 | 121 | $days_on_week = array(); |
| 122 | 122 | foreach ($a_last_week as $weekday) { |
| 123 | - $days_on_week[] = date('d/m',$weekday); |
|
| 123 | + $days_on_week[] = date('d/m', $weekday); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $dataSet->addPoints($days_on_week, 'Days'); |
| 127 | 127 | $dataSet->setAbscissaName($last_week); |
| 128 | 128 | $dataSet->setAxisName(0, get_lang('Minutes')); |
| 129 | 129 | $dataSet->setAbscissa('Days'); |
| 130 | - $dataSet->loadPalette(api_get_path(SYS_CODE_PATH) . 'palettes/pchart/default.color', true); |
|
| 130 | + $dataSet->loadPalette(api_get_path(SYS_CODE_PATH).'palettes/pchart/default.color', true); |
|
| 131 | 131 | |
| 132 | 132 | // Cache definition |
| 133 | 133 | $cachePath = api_get_path(SYS_ARCHIVE_PATH); |
| 134 | 134 | $myCache = new pCache(array('CacheFolder' => substr($cachePath, 0, strlen($cachePath) - 1))); |
| 135 | 135 | $chartHash = $myCache->getHash($dataSet); |
| 136 | 136 | if ($myCache->isInCache($chartHash)) { |
| 137 | - $imgPath = api_get_path(SYS_ARCHIVE_PATH) . $chartHash; |
|
| 137 | + $imgPath = api_get_path(SYS_ARCHIVE_PATH).$chartHash; |
|
| 138 | 138 | $myCache->saveFromCache($chartHash, $imgPath); |
| 139 | - $imgPath = api_get_path(WEB_ARCHIVE_PATH) . $chartHash; |
|
| 139 | + $imgPath = api_get_path(WEB_ARCHIVE_PATH).$chartHash; |
|
| 140 | 140 | } else { |
| 141 | 141 | |
| 142 | 142 | /* Create the pChart object */ |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | $myPicture->drawRectangle(0, 0, $widthSize - 1, $heightSize - 1, array('R' => 0, 'G' => 0, 'B' => 0)); |
| 154 | 154 | |
| 155 | 155 | /* Set the default font */ |
| 156 | - $myPicture->setFontProperties(array('FontName' => api_get_path(SYS_FONTS_PATH) . 'opensans/OpenSans-Regular.ttf', 'FontSize' => 10)); |
|
| 156 | + $myPicture->setFontProperties(array('FontName' => api_get_path(SYS_FONTS_PATH).'opensans/OpenSans-Regular.ttf', 'FontSize' => 10)); |
|
| 157 | 157 | |
| 158 | 158 | /* Do NOT Write the chart title */ |
| 159 | 159 | |
@@ -189,11 +189,11 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | /* Write and save into cache */ |
| 191 | 191 | $myCache->writeToCache($chartHash, $myPicture); |
| 192 | - $imgPath = api_get_path(SYS_ARCHIVE_PATH) . $chartHash; |
|
| 192 | + $imgPath = api_get_path(SYS_ARCHIVE_PATH).$chartHash; |
|
| 193 | 193 | $myCache->saveFromCache($chartHash, $imgPath); |
| 194 | - $imgPath = api_get_path(WEB_ARCHIVE_PATH) . $chartHash; |
|
| 194 | + $imgPath = api_get_path(WEB_ARCHIVE_PATH).$chartHash; |
|
| 195 | 195 | } |
| 196 | - $graph = '<img src="' . $imgPath . '" >'; |
|
| 196 | + $graph = '<img src="'.$imgPath.'" >'; |
|
| 197 | 197 | } else { |
| 198 | 198 | $graph = '<p>'.api_convert_encoding(get_lang('GraphicNotAvailable'), 'UTF-8').'</p>'; |
| 199 | 199 | } |
@@ -26,32 +26,32 @@ discard block |
||
| 26 | 26 | private $path; |
| 27 | 27 | private $permission = array(DRH); |
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * Controller |
|
| 31 | - */ |
|
| 29 | + /** |
|
| 30 | + * Controller |
|
| 31 | + */ |
|
| 32 | 32 | public function __construct ($user_id) |
| 33 | 33 | { |
| 34 | - $this->user_id = $user_id; |
|
| 35 | - $this->path = 'block_teacher_graph'; |
|
| 36 | - if ($this->is_block_visible_for_user($user_id)) { |
|
| 34 | + $this->user_id = $user_id; |
|
| 35 | + $this->path = 'block_teacher_graph'; |
|
| 36 | + if ($this->is_block_visible_for_user($user_id)) { |
|
| 37 | 37 | $this->teachers = UserManager::get_users_followed_by_drh($user_id, COURSEMANAGER); |
| 38 | - } |
|
| 38 | + } |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * This method check if a user is allowed to see the block inside dashboard interface |
|
| 43 | - * @param int User id |
|
| 44 | - * @return bool Is block visible for user |
|
| 45 | - */ |
|
| 42 | + * This method check if a user is allowed to see the block inside dashboard interface |
|
| 43 | + * @param int User id |
|
| 44 | + * @return bool Is block visible for user |
|
| 45 | + */ |
|
| 46 | 46 | public function is_block_visible_for_user($user_id) |
| 47 | 47 | { |
| 48 | - $user_info = api_get_user_info($user_id); |
|
| 49 | - $user_status = $user_info['status']; |
|
| 50 | - $is_block_visible_for_user = false; |
|
| 51 | - if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
|
| 52 | - $is_block_visible_for_user = true; |
|
| 53 | - } |
|
| 54 | - return $is_block_visible_for_user; |
|
| 48 | + $user_info = api_get_user_info($user_id); |
|
| 49 | + $user_status = $user_info['status']; |
|
| 50 | + $is_block_visible_for_user = false; |
|
| 51 | + if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
|
| 52 | + $is_block_visible_for_user = true; |
|
| 53 | + } |
|
| 54 | + return $is_block_visible_for_user; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function get_block() |
| 63 | 63 | { |
| 64 | - global $charset; |
|
| 65 | - $column = 1; |
|
| 66 | - $data = array(); |
|
| 67 | - $teacher_information_graph = $this->get_teachers_information_graph(); |
|
| 68 | - $html = ' |
|
| 64 | + global $charset; |
|
| 65 | + $column = 1; |
|
| 66 | + $data = array(); |
|
| 67 | + $teacher_information_graph = $this->get_teachers_information_graph(); |
|
| 68 | + $html = ' |
|
| 69 | 69 | <div class="panel panel-default" id="intro"> |
| 70 | 70 | <div class="panel-heading">'.get_lang('TeachersInformationsGraph').' |
| 71 | 71 | <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
@@ -79,53 +79,53 @@ discard block |
||
| 79 | 79 | </div> |
| 80 | 80 | '; |
| 81 | 81 | |
| 82 | - $data['column'] = $column; |
|
| 83 | - $data['content_html'] = $html; |
|
| 82 | + $data['column'] = $column; |
|
| 83 | + $data['content_html'] = $html; |
|
| 84 | 84 | |
| 85 | - return $data; |
|
| 85 | + return $data; |
|
| 86 | 86 | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * This method return a content html, it's used inside get_block method for showing it inside dashboard interface |
|
| 91 | - * @return string content html |
|
| 92 | - */ |
|
| 90 | + * This method return a content html, it's used inside get_block method for showing it inside dashboard interface |
|
| 91 | + * @return string content html |
|
| 92 | + */ |
|
| 93 | 93 | public function get_teachers_information_graph() |
| 94 | 94 | { |
| 95 | - $teachers = $this->teachers; |
|
| 96 | - $graph = ''; |
|
| 97 | - |
|
| 98 | - $user_ids = array_keys($teachers); |
|
| 99 | - $a_last_week = get_last_week(); |
|
| 100 | - |
|
| 101 | - if (is_array($user_ids) && count($user_ids) > 0) { |
|
| 102 | - $dataSet = new pData; |
|
| 103 | - foreach ($user_ids as $user_id) { |
|
| 104 | - $teacher_info = api_get_user_info($user_id); |
|
| 105 | - $username = $teacher_info['username']; |
|
| 106 | - $time_by_days = array(); |
|
| 107 | - foreach ($a_last_week as $day) { |
|
| 108 | - // day is received as y-m-d 12:00:00 |
|
| 109 | - $start_date = api_get_utc_datetime($day); |
|
| 110 | - $end_date = api_get_utc_datetime($day+(3600*24-1)); |
|
| 111 | - |
|
| 112 | - $time_on_platform_by_day = Tracking::get_time_spent_on_the_platform($user_id, 'custom', $start_date, $end_date); |
|
| 113 | - $hours = floor($time_on_platform_by_day / 3600); |
|
| 114 | - $min = floor(($time_on_platform_by_day - ($hours * 3600)) / 60); |
|
| 115 | - $time_by_days[] = $min; |
|
| 116 | - } |
|
| 117 | - $dataSet->addPoints($time_by_days, $username); |
|
| 118 | - } |
|
| 119 | - |
|
| 120 | - $last_week = date('Y-m-d',$a_last_week[0]).' '.get_lang('To').' '.date('Y-m-d', $a_last_week[6]); |
|
| 121 | - $days_on_week = array(); |
|
| 122 | - foreach ($a_last_week as $weekday) { |
|
| 123 | - $days_on_week[] = date('d/m',$weekday); |
|
| 124 | - } |
|
| 125 | - |
|
| 126 | - $dataSet->addPoints($days_on_week, 'Days'); |
|
| 127 | - $dataSet->setAbscissaName($last_week); |
|
| 128 | - $dataSet->setAxisName(0, get_lang('Minutes')); |
|
| 95 | + $teachers = $this->teachers; |
|
| 96 | + $graph = ''; |
|
| 97 | + |
|
| 98 | + $user_ids = array_keys($teachers); |
|
| 99 | + $a_last_week = get_last_week(); |
|
| 100 | + |
|
| 101 | + if (is_array($user_ids) && count($user_ids) > 0) { |
|
| 102 | + $dataSet = new pData; |
|
| 103 | + foreach ($user_ids as $user_id) { |
|
| 104 | + $teacher_info = api_get_user_info($user_id); |
|
| 105 | + $username = $teacher_info['username']; |
|
| 106 | + $time_by_days = array(); |
|
| 107 | + foreach ($a_last_week as $day) { |
|
| 108 | + // day is received as y-m-d 12:00:00 |
|
| 109 | + $start_date = api_get_utc_datetime($day); |
|
| 110 | + $end_date = api_get_utc_datetime($day+(3600*24-1)); |
|
| 111 | + |
|
| 112 | + $time_on_platform_by_day = Tracking::get_time_spent_on_the_platform($user_id, 'custom', $start_date, $end_date); |
|
| 113 | + $hours = floor($time_on_platform_by_day / 3600); |
|
| 114 | + $min = floor(($time_on_platform_by_day - ($hours * 3600)) / 60); |
|
| 115 | + $time_by_days[] = $min; |
|
| 116 | + } |
|
| 117 | + $dataSet->addPoints($time_by_days, $username); |
|
| 118 | + } |
|
| 119 | + |
|
| 120 | + $last_week = date('Y-m-d',$a_last_week[0]).' '.get_lang('To').' '.date('Y-m-d', $a_last_week[6]); |
|
| 121 | + $days_on_week = array(); |
|
| 122 | + foreach ($a_last_week as $weekday) { |
|
| 123 | + $days_on_week[] = date('d/m',$weekday); |
|
| 124 | + } |
|
| 125 | + |
|
| 126 | + $dataSet->addPoints($days_on_week, 'Days'); |
|
| 127 | + $dataSet->setAbscissaName($last_week); |
|
| 128 | + $dataSet->setAxisName(0, get_lang('Minutes')); |
|
| 129 | 129 | $dataSet->setAbscissa('Days'); |
| 130 | 130 | $dataSet->loadPalette(api_get_path(SYS_CODE_PATH) . 'palettes/pchart/default.color', true); |
| 131 | 131 | |
@@ -194,20 +194,20 @@ discard block |
||
| 194 | 194 | $imgPath = api_get_path(WEB_ARCHIVE_PATH) . $chartHash; |
| 195 | 195 | } |
| 196 | 196 | $graph = '<img src="' . $imgPath . '" >'; |
| 197 | - } else { |
|
| 198 | - $graph = '<p>'.api_convert_encoding(get_lang('GraphicNotAvailable'), 'UTF-8').'</p>'; |
|
| 199 | - } |
|
| 197 | + } else { |
|
| 198 | + $graph = '<p>'.api_convert_encoding(get_lang('GraphicNotAvailable'), 'UTF-8').'</p>'; |
|
| 199 | + } |
|
| 200 | 200 | |
| 201 | - return $graph; |
|
| 202 | - } |
|
| 201 | + return $graph; |
|
| 202 | + } |
|
| 203 | 203 | |
| 204 | 204 | /** |
| 205 | - * Get number of teachers |
|
| 206 | - * @return int |
|
| 207 | - */ |
|
| 208 | - function get_number_of_teachers() |
|
| 205 | + * Get number of teachers |
|
| 206 | + * @return int |
|
| 207 | + */ |
|
| 208 | + function get_number_of_teachers() |
|
| 209 | 209 | { |
| 210 | - return count($this->teachers); |
|
| 211 | - } |
|
| 210 | + return count($this->teachers); |
|
| 211 | + } |
|
| 212 | 212 | |
| 213 | 213 | } |
@@ -72,19 +72,19 @@ discard block |
||
| 72 | 72 | $data = array(); |
| 73 | 73 | $content = $this->get_content_html(); |
| 74 | 74 | $html = '<div class="panel panel-default" id="intro"> |
| 75 | - <div class="panel-heading">' . get_lang('GradebookAndAttendances') . ' |
|
| 75 | + <div class="panel-heading">' . get_lang('GradebookAndAttendances').' |
|
| 76 | 76 | <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\'' . addslashes( |
| 77 | 77 | api_htmlentities( |
| 78 | 78 | get_lang('ConfirmYourChoice'), |
| 79 | 79 | ENT_QUOTES, |
| 80 | 80 | $charset |
| 81 | 81 | ) |
| 82 | - ) . '\')) return false;" href="index.php?action=disable_block&path=' . $this->path . '"> |
|
| 82 | + ).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
|
| 83 | 83 | <em class="fa fa-times"></em> |
| 84 | 84 | </a></div> |
| 85 | 85 | </div> |
| 86 | 86 | <div class="panel-body"> |
| 87 | - ' . $content . ' |
|
| 87 | + ' . $content.' |
|
| 88 | 88 | </div> |
| 89 | 89 | </div> |
| 90 | 90 | '; |
@@ -102,17 +102,17 @@ discard block |
||
| 102 | 102 | { |
| 103 | 103 | $course_data = $this->get_course_information_data(); |
| 104 | 104 | //$content = '<div style="margin:10px;">'; |
| 105 | - $content = '<h4>' . get_lang( |
|
| 105 | + $content = '<h4>'.get_lang( |
|
| 106 | 106 | 'YourCourseList' |
| 107 | - ) . '</h4>'; |
|
| 107 | + ).'</h4>'; |
|
| 108 | 108 | $data_table = null; |
| 109 | 109 | if (!empty($course_data)) { |
| 110 | 110 | $data_table .= '<table class="data_table" width:"95%">'; |
| 111 | 111 | $data_table .= '<tr> |
| 112 | - <th>' . get_lang('CourseTitle') . '</th> |
|
| 113 | - <th width="20%">' . get_lang('NbStudents') . '</th> |
|
| 114 | - <th width="20%">' . get_lang('Evaluation') . '</th> |
|
| 115 | - <th width="20%">' . get_lang('ToolAttendance') . '</th> |
|
| 112 | + <th>' . get_lang('CourseTitle').'</th> |
|
| 113 | + <th width="20%">' . get_lang('NbStudents').'</th> |
|
| 114 | + <th width="20%">' . get_lang('Evaluation').'</th> |
|
| 115 | + <th width="20%">' . get_lang('ToolAttendance').'</th> |
|
| 116 | 116 | </tr>'; |
| 117 | 117 | $i = 1; |
| 118 | 118 | foreach ($course_data as $course) { |
@@ -121,12 +121,12 @@ discard block |
||
| 121 | 121 | } else { |
| 122 | 122 | $class_tr = 'row_even'; |
| 123 | 123 | } |
| 124 | - $data_table .= '<tr class="' . $class_tr . '">'; |
|
| 124 | + $data_table .= '<tr class="'.$class_tr.'">'; |
|
| 125 | 125 | if (!isset($course[3])) { |
| 126 | 126 | $course[3] = get_lang('NotAvailable'); |
| 127 | 127 | } |
| 128 | 128 | foreach ($course as $cell) { |
| 129 | - $data_table .= '<td align="right">' . $cell . '</td>'; |
|
| 129 | + $data_table .= '<td align="right">'.$cell.'</td>'; |
|
| 130 | 130 | } |
| 131 | 131 | $data_table .= '</tr>'; |
| 132 | 132 | $i++; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $content .= $data_table; |
| 139 | 139 | if (!empty($course_data)) { |
| 140 | 140 | $content .= '<div style="text-align:right;margin-top:10px;"> |
| 141 | - <a href="' . api_get_path(WEB_CODE_PATH) . 'mySpace/course.php">' . get_lang('SeeMore') . '</a></div>'; |
|
| 141 | + <a href="' . api_get_path(WEB_CODE_PATH).'mySpace/course.php">'.get_lang('SeeMore').'</a></div>'; |
|
| 142 | 142 | } |
| 143 | 143 | //$content .= '</div>'; |
| 144 | 144 | return $content; |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | $table_course = Database::get_course_table(TABLE_ATTENDANCE); |
| 177 | 177 | |
| 178 | 178 | $sql = "SELECT id, name, attendance_qualify_max FROM $table_course |
| 179 | - WHERE c_id = " . $course_info['real_id'] . " AND active = 1 AND session_id = 0"; |
|
| 179 | + WHERE c_id = ".$course_info['real_id']." AND active = 1 AND session_id = 0"; |
|
| 180 | 180 | $rs = Database::query($sql); |
| 181 | 181 | $attendance = array(); |
| 182 | 182 | $attendances = array(); |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | $attendance['course_code'] = $course_info['code']; |
| 189 | 189 | |
| 190 | 190 | if ($attendance['done'] != '0') { |
| 191 | - $attendances[] = '<a href="' . api_get_path(WEB_PATH).'main/attendance/index.php?cidReq=' . $attendance['course_code'] . '&action=attendance_sheet_print&attendance_id=' . $attendance['id']. '">' . Display::return_icon('printmgr.gif', get_lang('Print')).'</a>'; |
|
| 191 | + $attendances[] = '<a href="'.api_get_path(WEB_PATH).'main/attendance/index.php?cidReq='.$attendance['course_code'].'&action=attendance_sheet_print&attendance_id='.$attendance['id'].'">'.Display::return_icon('printmgr.gif', get_lang('Print')).'</a>'; |
|
| 192 | 192 | } else { |
| 193 | 193 | $attendances[] = get_lang("NotAvailable"); |
| 194 | 194 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | // Number of students |
| 201 | 201 | |
| 202 | 202 | $sql = "SELECT user_id FROM $tbl_course_user as course_rel_user |
| 203 | - WHERE course_rel_user.status=" . STUDENT . " AND course_rel_user.c_id=$courseId"; |
|
| 203 | + WHERE course_rel_user.status=".STUDENT." AND course_rel_user.c_id=$courseId"; |
|
| 204 | 204 | $rs = Database::query($sql); |
| 205 | 205 | $users = array(); |
| 206 | 206 | while ($row = Database::fetch_array($rs)) { |
@@ -211,11 +211,11 @@ discard block |
||
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | if (!empty($tematic_advance)) { |
| 214 | - $tematic_advance_progress = '<a title="' . get_lang( |
|
| 214 | + $tematic_advance_progress = '<a title="'.get_lang( |
|
| 215 | 215 | 'GoToThematicAdvance' |
| 216 | - ) . '" href="' . api_get_path( |
|
| 216 | + ).'" href="'.api_get_path( |
|
| 217 | 217 | WEB_CODE_PATH |
| 218 | - ) . 'attendance/index.php?cidReq=' . $course_code . '&action=attendance_sheet_print&attendance_id=">' . $tematic_advance . '%</a>'; |
|
| 218 | + ).'attendance/index.php?cidReq='.$course_code.'&action=attendance_sheet_print&attendance_id=">'.$tematic_advance.'%</a>'; |
|
| 219 | 219 | } else { |
| 220 | 220 | $tematic_advance_progress = '0%'; |
| 221 | 221 | } |
@@ -224,8 +224,8 @@ discard block |
||
| 224 | 224 | $tbl_grade_categories = Database :: get_main_table( |
| 225 | 225 | TABLE_MAIN_GRADEBOOK_CATEGORY |
| 226 | 226 | ); |
| 227 | - $sql = "SELECT id from " . $tbl_grade_categories . " |
|
| 228 | - WHERE course_code ='" . $course_code . "'"; |
|
| 227 | + $sql = "SELECT id from ".$tbl_grade_categories." |
|
| 228 | + WHERE course_code ='" . $course_code."'"; |
|
| 229 | 229 | $rs = Database::query($sql); |
| 230 | 230 | $category = null; |
| 231 | 231 | while ($row = Database::fetch_array($rs)) { |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | if (count($eval) > 0) { |
| 239 | 239 | $i = 0; |
| 240 | 240 | foreach ($eval as $item) { |
| 241 | - $score .= '<a href="' . api_get_path(WEB_PATH).'main/gradebook/gradebook_view_result.php?export=pdf&cat_code=' . $cat[0]->get_id() . '&official_code=' . $cat[0]->get_course_code() . '&selecteval=' . $item->get_id(). '">' . $item->get_name() . '</a>'; |
|
| 241 | + $score .= '<a href="'.api_get_path(WEB_PATH).'main/gradebook/gradebook_view_result.php?export=pdf&cat_code='.$cat[0]->get_id().'&official_code='.$cat[0]->get_course_code().'&selecteval='.$item->get_id().'">'.$item->get_name().'</a>'; |
|
| 242 | 242 | if (count($eval) - 1 != $i) { |
| 243 | 243 | $score .= ', '; |
| 244 | 244 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // Show the FACEBOOK login button |
| 3 | -$_template['show_message'] = false; |
|
| 3 | +$_template['show_message'] = false; |
|
| 4 | 4 | |
| 5 | 5 | //if (api_is_anonymous() && api_get_setting('facebook_login_activate') == 'true') { |
| 6 | 6 | if (api_is_anonymous()) { |
| 7 | 7 | require_once api_get_path(SYS_CODE_PATH)."auth/external_login/facebook.inc.php"; |
| 8 | - $_template['show_message'] = true; |
|
| 8 | + $_template['show_message'] = true; |
|
| 9 | 9 | // the default title |
| 10 | 10 | $button_url = api_get_path(WEB_PLUGIN_PATH)."add_facebook_login_button/img/cnx_fb.png"; |
| 11 | 11 | $href_link = facebookGetLoginUrl(); |
@@ -11,18 +11,18 @@ |
||
| 11 | 11 | |
| 12 | 12 | class action_plugin_jcapture extends DokuWiki_Action_Plugin { |
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * return some info |
|
| 16 | - */ |
|
| 17 | - function getInfo(){ |
|
| 14 | + /** |
|
| 15 | + * return some info |
|
| 16 | + */ |
|
| 17 | + function getInfo(){ |
|
| 18 | 18 | return array( |
| 19 | - 'author' => 'Pavel Vlasov', |
|
| 20 | - 'email' => '[email protected]', |
|
| 21 | - 'name' => 'JCapture', |
|
| 22 | - 'desc' => 'Plugin for making screen captures.', |
|
| 23 | - 'url' => 'http://www.nasdanika.com/wiki/doku.php?id=products:jcapture:start', |
|
| 24 | - ); |
|
| 25 | - } |
|
| 19 | + 'author' => 'Pavel Vlasov', |
|
| 20 | + 'email' => '[email protected]', |
|
| 21 | + 'name' => 'JCapture', |
|
| 22 | + 'desc' => 'Plugin for making screen captures.', |
|
| 23 | + 'url' => 'http://www.nasdanika.com/wiki/doku.php?id=products:jcapture:start', |
|
| 24 | + ); |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Register the eventhandlers |
@@ -6,15 +6,15 @@ discard block |
||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | if (!defined('DOKU_INC')) die(); |
| 9 | -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); |
|
| 10 | -require_once (DOKU_PLUGIN . 'action.php'); |
|
| 9 | +if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/'); |
|
| 10 | +require_once (DOKU_PLUGIN.'action.php'); |
|
| 11 | 11 | |
| 12 | 12 | class action_plugin_jcapture extends DokuWiki_Action_Plugin { |
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * return some info |
| 16 | 16 | */ |
| 17 | - function getInfo(){ |
|
| 17 | + function getInfo() { |
|
| 18 | 18 | return array( |
| 19 | 19 | 'author' => 'Pavel Vlasov', |
| 20 | 20 | 'email' => '[email protected]', |
@@ -28,14 +28,14 @@ discard block |
||
| 28 | 28 | * Register the eventhandlers |
| 29 | 29 | */ |
| 30 | 30 | function register(&$controller) { |
| 31 | - $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ()); |
|
| 31 | + $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array()); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Inserts the toolbar button |
| 36 | 36 | */ |
| 37 | 37 | function insert_button(& $event, $param) { |
| 38 | - $event->data[] = array ( |
|
| 38 | + $event->data[] = array( |
|
| 39 | 39 | 'type' => 'JCapture', |
| 40 | 40 | 'title' => 'Screen capture', |
| 41 | 41 | 'icon' => '../../plugins/jcapture/camera.png', |
@@ -5,8 +5,12 @@ |
||
| 5 | 5 | * @author Pavel Vlasov |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -if (!defined('DOKU_INC')) die(); |
|
| 9 | -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); |
|
| 8 | +if (!defined('DOKU_INC')) { |
|
| 9 | + die(); |
|
| 10 | +} |
|
| 11 | +if (!defined('DOKU_PLUGIN')) { |
|
| 12 | + define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); |
|
| 13 | +} |
|
| 10 | 14 | require_once (DOKU_PLUGIN . 'action.php'); |
| 11 | 15 | |
| 12 | 16 | class action_plugin_jcapture extends DokuWiki_Action_Plugin { |
@@ -21,9 +21,9 @@ |
||
| 21 | 21 | $documentId = DocumentManager::get_document_id($courseInfo, '/'.$folderName); |
| 22 | 22 | $path = null; |
| 23 | 23 | if (empty($documentId)) { |
| 24 | - $course_dir = $courseInfo['path'] . '/document'; |
|
| 24 | + $course_dir = $courseInfo['path'].'/document'; |
|
| 25 | 25 | $sys_course_path = api_get_path(SYS_COURSE_PATH); |
| 26 | - $dir = $sys_course_path . $course_dir; |
|
| 26 | + $dir = $sys_course_path.$course_dir; |
|
| 27 | 27 | $createdDir = create_unexisting_directory( |
| 28 | 28 | $courseInfo, |
| 29 | 29 | api_get_user_id(), |
@@ -1,31 +1,31 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - //fix for Opera XMLHttpRequests |
|
| 4 | - if(!count($_POST) && $HTTP_RAW_POST_DATA){ |
|
| 5 | - parse_str($HTTP_RAW_POST_DATA, $_POST); |
|
| 6 | - } |
|
| 3 | + //fix for Opera XMLHttpRequests |
|
| 4 | + if(!count($_POST) && $HTTP_RAW_POST_DATA){ |
|
| 5 | + parse_str($HTTP_RAW_POST_DATA, $_POST); |
|
| 6 | + } |
|
| 7 | 7 | |
| 8 | - if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../'); |
|
| 9 | - require_once(DOKU_INC.'inc/init.php'); |
|
| 10 | - require_once(DOKU_INC.'inc/common.php'); |
|
| 11 | - require_once(DOKU_INC.'inc/pageutils.php'); |
|
| 12 | - require_once(DOKU_INC.'inc/auth.php'); |
|
| 13 | - //close sesseion |
|
| 14 | - session_write_close(); |
|
| 8 | + if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../'); |
|
| 9 | + require_once(DOKU_INC.'inc/init.php'); |
|
| 10 | + require_once(DOKU_INC.'inc/common.php'); |
|
| 11 | + require_once(DOKU_INC.'inc/pageutils.php'); |
|
| 12 | + require_once(DOKU_INC.'inc/auth.php'); |
|
| 13 | + //close sesseion |
|
| 14 | + session_write_close(); |
|
| 15 | 15 | |
| 16 | - header('Content-Type: text/html; charset=utf-8'); |
|
| 16 | + header('Content-Type: text/html; charset=utf-8'); |
|
| 17 | 17 | |
| 18 | - $hostName = "http".($_SERVER['HTTPS'] ? 's' : null).'://'.$_SERVER['HTTP_HOST']; |
|
| 18 | + $hostName = "http".($_SERVER['HTTPS'] ? 's' : null).'://'.$_SERVER['HTTP_HOST']; |
|
| 19 | 19 | |
| 20 | - $imageFormat = "PNG"; |
|
| 20 | + $imageFormat = "PNG"; |
|
| 21 | 21 | |
| 22 | - $cookies; |
|
| 23 | - foreach (array_keys($_COOKIE) as $cookieName) { |
|
| 24 | - $cookies.=bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";"; |
|
| 25 | - } |
|
| 22 | + $cookies; |
|
| 23 | + foreach (array_keys($_COOKIE) as $cookieName) { |
|
| 24 | + $cookies.=bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";"; |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - $pageName = $_GET["pageName"]; |
|
| 28 | - $edid = $_GET["edid"]; |
|
| 27 | + $pageName = $_GET["pageName"]; |
|
| 28 | + $edid = $_GET["edid"]; |
|
| 29 | 29 | ?> |
| 30 | 30 | |
| 31 | 31 | <script language="JavaScript" type="text/javascript"><!-- |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | //fix for Opera XMLHttpRequests |
| 4 | - if(!count($_POST) && $HTTP_RAW_POST_DATA){ |
|
| 4 | + if (!count($_POST) && $HTTP_RAW_POST_DATA) { |
|
| 5 | 5 | parse_str($HTTP_RAW_POST_DATA, $_POST); |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | - if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../'); |
|
| 8 | + if (!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/../../../'); |
|
| 9 | 9 | require_once(DOKU_INC.'inc/init.php'); |
| 10 | 10 | require_once(DOKU_INC.'inc/common.php'); |
| 11 | 11 | require_once(DOKU_INC.'inc/pageutils.php'); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | $cookies; |
| 23 | 23 | foreach (array_keys($_COOKIE) as $cookieName) { |
| 24 | - $cookies.=bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";"; |
|
| 24 | + $cookies .= bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";"; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | $pageName = $_GET["pageName"]; |
@@ -5,7 +5,9 @@ |
||
| 5 | 5 | parse_str($HTTP_RAW_POST_DATA, $_POST); |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | - if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../'); |
|
| 8 | + if(!defined('DOKU_INC')) { |
|
| 9 | + define('DOKU_INC',dirname(__FILE__).'/../../../'); |
|
| 10 | + } |
|
| 9 | 11 | require_once(DOKU_INC.'inc/init.php'); |
| 10 | 12 | require_once(DOKU_INC.'inc/common.php'); |
| 11 | 13 | require_once(DOKU_INC.'inc/pageutils.php'); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $imageFormat = "PNG"; |
| 25 | 25 | $cookies = null; |
| 26 | 26 | foreach (array_keys($_COOKIE) as $cookieName) { |
| 27 | - $cookies.=bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";"; |
|
| 27 | + $cookies .= bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";"; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | $pageName = 'file'; |
@@ -7,15 +7,15 @@ |
||
| 7 | 7 | * Initialization |
| 8 | 8 | */ |
| 9 | 9 | $convert_lang_to_code = array( |
| 10 | - "english" => "en_US", |
|
| 11 | - "french" => "fr_BE", |
|
| 12 | - "dutch" => "nl_NL", |
|
| 13 | - "german" => "de_DE", |
|
| 14 | - "japanese" => "ja_JP", |
|
| 15 | - "danish" => "da_DK", |
|
| 10 | + "english" => "en_US", |
|
| 11 | + "french" => "fr_BE", |
|
| 12 | + "dutch" => "nl_NL", |
|
| 13 | + "german" => "de_DE", |
|
| 14 | + "japanese" => "ja_JP", |
|
| 15 | + "danish" => "da_DK", |
|
| 16 | 16 | ); |
| 17 | 17 | if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){ |
| 18 | - $code = $convert_lang_to_code[$_SESSION['user_language_choice']]; |
|
| 19 | - $locale = setlocale(LC_TIME,$code); |
|
| 18 | + $code = $convert_lang_to_code[$_SESSION['user_language_choice']]; |
|
| 19 | + $locale = setlocale(LC_TIME,$code); |
|
| 20 | 20 | } |
| 21 | 21 | $date = strftime('%c'); |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | "japanese" => "ja_JP", |
| 15 | 15 | "danish" => "da_DK", |
| 16 | 16 | ); |
| 17 | -if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){ |
|
| 17 | +if (!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])) { |
|
| 18 | 18 | $code = $convert_lang_to_code[$_SESSION['user_language_choice']]; |
| 19 | - $locale = setlocale(LC_TIME,$code); |
|
| 19 | + $locale = setlocale(LC_TIME, $code); |
|
| 20 | 20 | } |
| 21 | 21 | $date = strftime('%c'); |