Passed
Push — 1.10.x ( 04397c...5e25f1 )
by Angel Fernando Quiroz
181:14 queued 130:00
created
main/admin/add_sessions_to_usergroup.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     if (!empty($needle) && !empty($type)) {
127 127
         if ($type == 'single') {
128 128
             // search users where username or firstname or lastname begins likes $needle
129
-          /*  $sql = 'SELECT user.user_id, username, lastname, firstname FROM '.$tbl_user.' user
129
+            /*  $sql = 'SELECT user.user_id, username, lastname, firstname FROM '.$tbl_user.' user
130 130
                     WHERE (username LIKE "'.$needle.'%"
131 131
                     OR firstname LIKE "'.$needle.'%"
132 132
                 OR lastname LIKE "'.$needle.'%") AND user.user_id<>"'.$user_anonymous.'"   AND user.status<>'.DRH.''.
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
       <option value = "%">--</option>
232 232
       <?php
233 233
         echo Display :: get_alphabet_options();
234
-      ?>
234
+        ?>
235 235
      </select>
236 236
 <?php echo '<br />'; ?>
237 237
 </td>
@@ -242,31 +242,31 @@  discard block
 block discarded – undo
242 242
   <td align="center">
243 243
   <div id="content_source">
244 244
       <?php
245
-      if (!($add_type=='multiple')) {
245
+        if (!($add_type=='multiple')) {
246 246
         ?>
247 247
         <input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,'single')" />
248 248
         <div id="ajax_list_users_single"></div>
249 249
         <?php
250
-      } else {
251
-      ?>
250
+        } else {
251
+        ?>
252 252
       <div id="ajax_list_multiple">
253 253
         <?php echo Display::select('elements_not_in_name',$elements_not_in, '',array('style'=>'width:360px', 'multiple'=>'multiple','id'=>'elements_not_in','size'=>'15px'),false); ?>
254 254
       </div>
255 255
     <?php
256
-      }
257
-     ?>
256
+        }
257
+        ?>
258 258
   </div>
259 259
   </td>
260 260
   <td width="10%" valign="middle" align="center">
261 261
   <?php
262
-  if ($ajax_search) {
263
-  ?>
262
+    if ($ajax_search) {
263
+    ?>
264 264
     <button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('elements_in'))" >
265 265
         <em class="fa fa-arrow-left"></em>
266 266
     </button>
267 267
   <?php
268
-  } else {
269
-  ?>
268
+    } else {
269
+    ?>
270 270
     <button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))">
271 271
         <em class="fa fa-arrow-right"></em>
272 272
     </button>
@@ -275,8 +275,8 @@  discard block
 block discarded – undo
275 275
         <em class="fa fa-arrow-left"></em>
276 276
     </button>
277 277
     <?php
278
-  }
279
-  ?>
278
+    }
279
+    ?>
280 280
     <br /><br /><br /><br /><br /><br />
281 281
   </td>
282 282
   <td align="center">
Please login to merge, or discard this patch.
main/admin/sub_language_add.php 1 patch
Indentation   +144 added lines, -144 removed lines patch added patch discarded remove patch
@@ -62,43 +62,43 @@  discard block
 block discarded – undo
62 62
  *       inside the add_sub_language function.
63 63
  */
64 64
 function check_if_language_exist ($original_name, $english_name, $isocode, $sublanguage_available) {
65
-	$tbl_admin_languages 	= Database :: get_main_table(TABLE_MAIN_LANGUAGE);
66
-	$sql_original_name='SELECT count(*) AS count_original_name FROM '.$tbl_admin_languages.' WHERE original_name="'.Database::escape_string($original_name).'" ';
67
-	$sql_english_name='SELECT count(*) AS count_english_name FROM '.$tbl_admin_languages.' WHERE english_name="'.Database::escape_string($english_name).'" ';
68
-	//$sql_isocode='SELECT count(*) AS count_isocode FROM '.$tbl_admin_languages.' WHERE isocode="'.Database::escape_string($isocode).'" ';
69
-	$rs_original_name=Database::query($sql_original_name);
70
-	$rs_english_name=Database::query($sql_english_name);
71
-	//$rs_isocode=Database::query($sql_isocode);
72
-	$count_original_name=Database::result($rs_original_name,0,'count_original_name');
73
-	$count_english_name=Database::result($rs_english_name,0,'count_english_name');
74
-	//$count_isocode=Database::result($rs_isocode,0,'count_isocode');
75
-	$has_error=false;
76
-	$message_information=array();
65
+    $tbl_admin_languages 	= Database :: get_main_table(TABLE_MAIN_LANGUAGE);
66
+    $sql_original_name='SELECT count(*) AS count_original_name FROM '.$tbl_admin_languages.' WHERE original_name="'.Database::escape_string($original_name).'" ';
67
+    $sql_english_name='SELECT count(*) AS count_english_name FROM '.$tbl_admin_languages.' WHERE english_name="'.Database::escape_string($english_name).'" ';
68
+    //$sql_isocode='SELECT count(*) AS count_isocode FROM '.$tbl_admin_languages.' WHERE isocode="'.Database::escape_string($isocode).'" ';
69
+    $rs_original_name=Database::query($sql_original_name);
70
+    $rs_english_name=Database::query($sql_english_name);
71
+    //$rs_isocode=Database::query($sql_isocode);
72
+    $count_original_name=Database::result($rs_original_name,0,'count_original_name');
73
+    $count_english_name=Database::result($rs_english_name,0,'count_english_name');
74
+    //$count_isocode=Database::result($rs_isocode,0,'count_isocode');
75
+    $has_error=false;
76
+    $message_information=array();
77 77
 
78
-	if ($count_original_name==1) {
79
-		$has_error=true;
80
-		$message_information['original_name']=true;
81
-	}
82
-	if ($count_english_name==1) {
83
-		$has_error=true;
84
-		$message_information['english_name']=true;
85
-	}
78
+    if ($count_original_name==1) {
79
+        $has_error=true;
80
+        $message_information['original_name']=true;
81
+    }
82
+    if ($count_english_name==1) {
83
+        $has_error=true;
84
+        $message_information['english_name']=true;
85
+    }
86 86
 
87
-	$iso_list = api_get_platform_isocodes();
88
-	$iso_list = array_values($iso_list);
87
+    $iso_list = api_get_platform_isocodes();
88
+    $iso_list = array_values($iso_list);
89 89
 
90
-	if (!in_array($isocode, $iso_list)) {
91
-		$has_error=true;
92
-		$message_information['isocode']=true;
93
-	}
94
-	if ($has_error===true) {
95
-		$message_information['execute_add']=false;
96
-	}
97
-	if ($has_error===false) {
98
-		$message_information['execute_add']=true;
99
-	}
90
+    if (!in_array($isocode, $iso_list)) {
91
+        $has_error=true;
92
+        $message_information['isocode']=true;
93
+    }
94
+    if ($has_error===true) {
95
+        $message_information['execute_add']=false;
96
+    }
97
+    if ($has_error===false) {
98
+        $message_information['execute_add']=true;
99
+    }
100 100
 
101
-	return $message_information;
101
+    return $message_information;
102 102
 }
103 103
 
104 104
 /**
@@ -109,50 +109,50 @@  discard block
 block discarded – undo
109 109
  * @todo    deprecate this function and use the static method directly
110 110
  */
111 111
 function check_if_exist_language_by_id ($language_id) {
112
-	return SubLanguageManager::check_if_exist_language_by_id($language_id);
112
+    return SubLanguageManager::check_if_exist_language_by_id($language_id);
113 113
 }
114 114
 /**
115
- * Check if the given language is a parent of any sub-language
116
- * @param   int     Language ID of the presumed parent
117
- * @return  bool    True if this language has children, false otherwise
118
- */
115
+     * Check if the given language is a parent of any sub-language
116
+     * @param   int     Language ID of the presumed parent
117
+     * @return  bool    True if this language has children, false otherwise
118
+     */
119 119
 function ckeck_if_is_parent_of_sub_language ($parent_id) {
120
-	$sql='SELECT count(*) AS count FROM language WHERE parent_id= '.intval($parent_id).'';
121
-	$rs=Database::query($sql);
122
-	if (Database::num_rows($rs)>0 && Database::result($rs,0,'count')==1) {
123
-		return true;
124
-	} else {
125
-		return false;
126
-	}
120
+    $sql='SELECT count(*) AS count FROM language WHERE parent_id= '.intval($parent_id).'';
121
+    $rs=Database::query($sql);
122
+    if (Database::num_rows($rs)>0 && Database::result($rs,0,'count')==1) {
123
+        return true;
124
+    } else {
125
+        return false;
126
+    }
127 127
 }
128 128
 /**
129
- * Get all information of sub-language
130
- * @param   int     Parent language ID
131
- * @param   int     Child language ID
132
- * @return  array
133
- */
129
+     * Get all information of sub-language
130
+     * @param   int     Parent language ID
131
+     * @param   int     Child language ID
132
+     * @return  array
133
+     */
134 134
 function allow_get_all_information_of_sub_language ($parent_id,$sub_language_id) {
135
-	return SubLanguageManager::get_all_information_of_sub_language($parent_id,$sub_language_id);
135
+    return SubLanguageManager::get_all_information_of_sub_language($parent_id,$sub_language_id);
136 136
 }
137 137
 /*end declare functions*/
138 138
 
139 139
 //add data
140 140
 
141 141
 if (isset($_GET['sub_language_id']) && $_GET['sub_language_id']==strval(intval($_GET['sub_language_id']))) {
142
-	$language_name=SubLanguageManager::get_name_of_language_by_id($_GET['sub_language_id']);
143
-		if (check_if_exist_language_by_id ($_GET['sub_language_id'])===true) {
144
-			$sub_language_id=$_GET['sub_language_id'];
145
-			$sub_language_id_exist=true;
146
-		} else {
147
-			$sub_language_id_exist=false;
148
-		}
142
+    $language_name=SubLanguageManager::get_name_of_language_by_id($_GET['sub_language_id']);
143
+        if (check_if_exist_language_by_id ($_GET['sub_language_id'])===true) {
144
+            $sub_language_id=$_GET['sub_language_id'];
145
+            $sub_language_id_exist=true;
146
+        } else {
147
+            $sub_language_id_exist=false;
148
+        }
149 149
 
150 150
 }
151 151
 $language_details = array();
152 152
 $language_name='';
153 153
 if (isset($_GET['id']) && $_GET['id']==strval(intval($_GET['id']))) {
154 154
         $language_details = SubLanguageManager::get_all_information_of_language($_GET['id']);
155
-	$language_name = $language_details['original_name'];
155
+    $language_name = $language_details['original_name'];
156 156
         if (check_if_exist_language_by_id ($_GET['id'])===true) {
157 157
             $parent_id=$_GET['id'];
158 158
             $language_id_exist=true;
@@ -160,67 +160,67 @@  discard block
 block discarded – undo
160 160
             $language_id_exist=false;
161 161
         }
162 162
 } else {
163
-	$language_id_exist=false;
163
+    $language_id_exist=false;
164 164
 }
165 165
 
166 166
 //removed and register
167 167
 
168 168
 if ((isset($_GET['id']) && $_GET['id']==strval(intval($_GET['id']))) && (isset($_GET['sub_language_id']) && $_GET['sub_language_id']==strval(intval($_GET['sub_language_id'])))) {
169
-	if (check_if_exist_language_by_id($_GET['id'])===true && check_if_exist_language_by_id($_GET['sub_language_id'])===true) {
170
-	 	$get_all_information=allow_get_all_information_of_sub_language ($_GET['id'],$_GET['sub_language_id']);
171
-		$original_name=$get_all_information['original_name'];
172
-		$english_name=$get_all_information['english_name'];
173
-		$isocode=$get_all_information['isocode'];
169
+    if (check_if_exist_language_by_id($_GET['id'])===true && check_if_exist_language_by_id($_GET['sub_language_id'])===true) {
170
+            $get_all_information=allow_get_all_information_of_sub_language ($_GET['id'],$_GET['sub_language_id']);
171
+        $original_name=$get_all_information['original_name'];
172
+        $english_name=$get_all_information['english_name'];
173
+        $isocode=$get_all_information['isocode'];
174 174
 
175
-	}
175
+    }
176 176
 }
177 177
 
178 178
 $language_name=get_lang('CreateSubLanguageForLanguage').' ( '.strtolower($language_name).' )';
179 179
 
180 180
 if (ckeck_if_is_parent_of_sub_language($parent_id)===true && isset($_GET['action']) && $_GET['action']=='deletesublanguage') {
181
-	$language_name=get_lang('DeleteSubLanguage');
181
+    $language_name=get_lang('DeleteSubLanguage');
182 182
 }
183 183
 
184 184
 $msg = '';
185 185
 
186 186
 if (isset($_POST['SubmitAddNewLanguage'])) {
187
-	$original_name=$_POST['original_name'];
188
-	$english_name=$_POST['english_name'];
189
-	$isocode=$_POST['isocode'];
190
-	$english_name=str_replace(' ','_',$english_name);
191
-	$isocode=str_replace(' ','_',$isocode);
187
+    $original_name=$_POST['original_name'];
188
+    $english_name=$_POST['english_name'];
189
+    $isocode=$_POST['isocode'];
190
+    $english_name=str_replace(' ','_',$english_name);
191
+    $isocode=str_replace(' ','_',$isocode);
192 192
 
193
-	$sublanguage_available=$_POST['sub_language_is_visible'];
194
-	$check_information=array();
195
-	$check_information=check_if_language_exist($original_name,$english_name,$isocode,$sublanguage_available);
196
-	foreach ($check_information as $index_information => $value_information) {
197
-		$allow_insert_info=false;
198
-		if ($index_information=='original_name') {
199
-			$msg .= Display::return_message(get_lang('AlreadyExists').' "'.get_lang('OriginalName').'" '.'('.$original_name.')','error');
200
-		}
201
-		if ($index_information=='english_name') {
202
-			$msg .= Display::return_message(get_lang('AlreadyExists').' "'.get_lang('EnglishName').'" '.'('.$english_name.')','error');
203
-		}
204
-		if ($index_information=='isocode') {
205
-			$msg .= Display::return_message(get_lang('CodeDoesNotExists').': '.$isocode.'','error');
206
-		}
207
-		if ($index_information=='execute_add' && $value_information===true) {
208
-			$allow_insert_info=true;
209
-		}
210
-	}
193
+    $sublanguage_available=$_POST['sub_language_is_visible'];
194
+    $check_information=array();
195
+    $check_information=check_if_language_exist($original_name,$english_name,$isocode,$sublanguage_available);
196
+    foreach ($check_information as $index_information => $value_information) {
197
+        $allow_insert_info=false;
198
+        if ($index_information=='original_name') {
199
+            $msg .= Display::return_message(get_lang('AlreadyExists').' "'.get_lang('OriginalName').'" '.'('.$original_name.')','error');
200
+        }
201
+        if ($index_information=='english_name') {
202
+            $msg .= Display::return_message(get_lang('AlreadyExists').' "'.get_lang('EnglishName').'" '.'('.$english_name.')','error');
203
+        }
204
+        if ($index_information=='isocode') {
205
+            $msg .= Display::return_message(get_lang('CodeDoesNotExists').': '.$isocode.'','error');
206
+        }
207
+        if ($index_information=='execute_add' && $value_information===true) {
208
+            $allow_insert_info=true;
209
+        }
210
+    }
211 211
 
212
-	if (strlen($original_name)>0 && strlen($english_name)>0 && strlen($isocode)>0) {
213
-		if ($allow_insert_info===true && $language_id_exist===true) {
214
-			$english_name=str_replace(' ','_',$english_name);
212
+    if (strlen($original_name)>0 && strlen($english_name)>0 && strlen($isocode)>0) {
213
+        if ($allow_insert_info===true && $language_id_exist===true) {
214
+            $english_name=str_replace(' ','_',$english_name);
215 215
                         //Fixes BT#1636
216 216
                         $english_name=api_strtolower($english_name);
217 217
 
218
-			$isocode=str_replace(' ','_',$isocode);
219
-			$str_info='<br/>'.get_lang('OriginalName').' : '.$original_name.'<br/>'.get_lang('EnglishName').' : '.$english_name.'<br/>'.get_lang('PlatformCharsetTitle').' : '.$isocode;
218
+            $isocode=str_replace(' ','_',$isocode);
219
+            $str_info='<br/>'.get_lang('OriginalName').' : '.$original_name.'<br/>'.get_lang('EnglishName').' : '.$english_name.'<br/>'.get_lang('PlatformCharsetTitle').' : '.$isocode;
220 220
 
221
-			$mkdir_result=SubLanguageManager::add_language_directory($english_name);
222
-			if ($mkdir_result) {
223
-			  	$sl_id = add_sub_language($original_name,$english_name,$isocode,$sublanguage_available,$parent_id);
221
+            $mkdir_result=SubLanguageManager::add_language_directory($english_name);
222
+            if ($mkdir_result) {
223
+                    $sl_id = add_sub_language($original_name,$english_name,$isocode,$sublanguage_available,$parent_id);
224 224
                                 if ($sl_id === false) {
225 225
                                     SubLanguageManager::remove_language_directory($english_name);
226 226
                                     $msg .= Display::return_message(get_lang('LanguageDirectoryNotWriteableContactAdmin'),'error');
@@ -232,17 +232,17 @@  discard block
 block discarded – undo
232 232
                                     require 'sub_language.php';
233 233
                                     exit();
234 234
                                 }
235
-			} else {
236
-			    $msg .= Display::return_message(get_lang('LanguageDirectoryNotWriteableContactAdmin'),'error');
237
-			}
238
-		} else {
239
-			if ($language_id_exist===false) {
240
-				$msg .= Display::return_message(get_lang('LanguageParentNotExist'),'error');
241
-			}
242
-		}
243
-	} else {
235
+            } else {
236
+                $msg .= Display::return_message(get_lang('LanguageDirectoryNotWriteableContactAdmin'),'error');
237
+            }
238
+        } else {
239
+            if ($language_id_exist===false) {
240
+                $msg .= Display::return_message(get_lang('LanguageParentNotExist'),'error');
241
+            }
242
+        }
243
+    } else {
244 244
             $msg .= Display::return_message(get_lang('FormHasErrorsPleaseComplete'),'error');
245
-	}
245
+    }
246 246
 }
247 247
 
248 248
 Display :: display_header($language_name);
@@ -250,51 +250,51 @@  discard block
 block discarded – undo
250 250
 echo $msg;
251 251
 
252 252
 if (isset($_POST['SubmitAddDeleteLanguage'])) {
253
-	$rs = SubLanguageManager::remove_sub_language($_GET['id'], $_GET['sub_language_id']);
254
-	if ($rs===true) {
255
-		Display::display_confirmation_message(get_lang('TheSubLanguageHasBeenRemoved'));
256
-	} else {
257
-		Display::display_error_message(get_lang('TheSubLanguageHasNotBeenRemoved'));
258
-	}
253
+    $rs = SubLanguageManager::remove_sub_language($_GET['id'], $_GET['sub_language_id']);
254
+    if ($rs===true) {
255
+        Display::display_confirmation_message(get_lang('TheSubLanguageHasBeenRemoved'));
256
+    } else {
257
+        Display::display_error_message(get_lang('TheSubLanguageHasNotBeenRemoved'));
258
+    }
259 259
 }
260 260
 // ckeck_if_is_parent_of_sub_language($parent_id)===false
261 261
 //
262 262
 if (isset($_GET['action']) && $_GET['action']=='definenewsublanguage') {
263
-	$text = $language_name;
264
-	$form = new FormValidator('addsublanguage', 'post', 'sub_language_add.php?id='.Security::remove_XSS($_GET['id']).'&action=definenewsublanguage');
265
-	$class='add';
266
-	$form->addElement('header', '', $text);
267
-	$form->addElement('text', 'original_name', get_lang('OriginalName'),'class="input_titles"');
268
-	$form->addRule('original_name', get_lang('ThisFieldIsRequired'), 'required');
269
-	$form->addElement('text', 'english_name', get_lang('EnglishName'),'class="input_titles"');
270
-	$form->addRule('english_name', get_lang('ThisFieldIsRequired'), 'required');
271
-	$form->addElement('text', 'isocode', get_lang('ISOCode'), 'class="input_titles"');
272
-	$form->addRule('isocode', get_lang('ThisFieldIsRequired'), 'required');
273
-	$form->addElement('static', null, '&nbsp;', '<i>en, es, fr</i>');
274
-	$form->addElement('checkbox', 'sub_language_is_visible', '', get_lang('Visibility'));
275
-	$form->addButtonCreate(get_lang('CreateSubLanguage'), 'SubmitAddNewLanguage');
263
+    $text = $language_name;
264
+    $form = new FormValidator('addsublanguage', 'post', 'sub_language_add.php?id='.Security::remove_XSS($_GET['id']).'&action=definenewsublanguage');
265
+    $class='add';
266
+    $form->addElement('header', '', $text);
267
+    $form->addElement('text', 'original_name', get_lang('OriginalName'),'class="input_titles"');
268
+    $form->addRule('original_name', get_lang('ThisFieldIsRequired'), 'required');
269
+    $form->addElement('text', 'english_name', get_lang('EnglishName'),'class="input_titles"');
270
+    $form->addRule('english_name', get_lang('ThisFieldIsRequired'), 'required');
271
+    $form->addElement('text', 'isocode', get_lang('ISOCode'), 'class="input_titles"');
272
+    $form->addRule('isocode', get_lang('ThisFieldIsRequired'), 'required');
273
+    $form->addElement('static', null, '&nbsp;', '<i>en, es, fr</i>');
274
+    $form->addElement('checkbox', 'sub_language_is_visible', '', get_lang('Visibility'));
275
+    $form->addButtonCreate(get_lang('CreateSubLanguage'), 'SubmitAddNewLanguage');
276 276
         //$values['original_name'] = $language_details['original_name'].'...'; -> cannot be used because of quickform filtering (freeze)
277 277
         $values['english_name'] = $language_details['english_name'].'2';
278 278
         $values['isocode'] = $language_details['isocode'];
279 279
         $form->setDefaults($values);
280
-	$form->display();
280
+    $form->display();
281 281
 } else {
282
-	if (isset($_GET['action']) && $_GET['action']=='deletesublanguage') {
283
-		$text=$language_name;
284
-		$form = new FormValidator('deletesublanguage', 'post', 'sub_language_add.php?id='.Security::remove_XSS($_GET['id']).'&sub_language_id='.Security::remove_XSS($_GET['sub_language_id']));
285
-		$class='minus';
286
-		$form->addElement('header', '', $text);
287
-		$form->addElement('static', '', get_lang('OriginalName'),$original_name);
288
-		$form->addElement('static', '', get_lang('EnglishName'),$english_name);
289
-		$form->addElement('static', '', get_lang('PlatformCharsetTitle'),$isocode);
290
-		$form->addButtonCreate(get_lang('DeleteSubLanguage'), 'SubmitAddDeleteLanguage');
291
-		$form->display();
292
-	}
293
-	if (isset($_GET['action']) && $_GET['action']=='definenewsublanguage') {
294
-		Display::display_normal_message(get_lang('TheSubLanguageForThisLanguageHasBeenAdded'));
295
-	}
282
+    if (isset($_GET['action']) && $_GET['action']=='deletesublanguage') {
283
+        $text=$language_name;
284
+        $form = new FormValidator('deletesublanguage', 'post', 'sub_language_add.php?id='.Security::remove_XSS($_GET['id']).'&sub_language_id='.Security::remove_XSS($_GET['sub_language_id']));
285
+        $class='minus';
286
+        $form->addElement('header', '', $text);
287
+        $form->addElement('static', '', get_lang('OriginalName'),$original_name);
288
+        $form->addElement('static', '', get_lang('EnglishName'),$english_name);
289
+        $form->addElement('static', '', get_lang('PlatformCharsetTitle'),$isocode);
290
+        $form->addButtonCreate(get_lang('DeleteSubLanguage'), 'SubmitAddDeleteLanguage');
291
+        $form->display();
292
+    }
293
+    if (isset($_GET['action']) && $_GET['action']=='definenewsublanguage') {
294
+        Display::display_normal_message(get_lang('TheSubLanguageForThisLanguageHasBeenAdded'));
295
+    }
296 296
 }
297 297
 /**
298
- * Footer
299
- */
298
+     * Footer
299
+     */
300 300
 Display :: display_footer();
Please login to merge, or discard this patch.
main/admin/course_create_content.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 /**
4
- * This script allows a platform admin to add dummy content to a course.
5
- *
6
- * @author Bart Mollet <[email protected]>
7
- * @package chamilo.admin
8
- */
4
+     * This script allows a platform admin to add dummy content to a course.
5
+     *
6
+     * @author Bart Mollet <[email protected]>
7
+     * @package chamilo.admin
8
+     */
9 9
 include ('../inc/global.inc.php');
10 10
 $this_section=SECTION_PLATFORM_ADMIN;
11 11
 
@@ -15,15 +15,15 @@  discard block
 block discarded – undo
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();
Please login to merge, or discard this patch.
main/admin/group_edit.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 $sql = "SELECT * FROM $table_group WHERE id = '".$group_id."'";
36 36
 $res = Database::query($sql);
37 37
 if (Database::num_rows($res) != 1) {
38
-	header('Location: group_list.php');
39
-	exit;
38
+    header('Location: group_list.php');
39
+    exit;
40 40
 }
41 41
 
42 42
 $group_data = Database::fetch_array($res, 'ASSOC');
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
 
55 55
 // Description
56 56
 $form->addElement(
57
-	'textarea',
58
-	'description',
59
-	get_lang('Description'),
60
-	array(
61
-		'rows' => 3,
62
-		'cols' => 58,
63
-		'onKeyDown' => "text_longitud()",
64
-		'onKeyUp' => "text_longitud()",
65
-	)
57
+    'textarea',
58
+    'description',
59
+    get_lang('Description'),
60
+    array(
61
+        'rows' => 3,
62
+        'cols' => 58,
63
+        'onKeyDown' => "text_longitud()",
64
+        'onKeyUp' => "text_longitud()",
65
+    )
66 66
 );
67 67
 $form->applyFilter('description', 'html_filter');
68 68
 $form->applyFilter('description', 'trim');
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 $allowed_picture_types = array ('jpg', 'jpeg', 'png', 'gif');
77 77
 $form->addRule('picture', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types);
78 78
 if (strlen($group_data['picture_uri']) > 0) {
79
-	$form->addElement('checkbox', 'delete_picture', '', get_lang('DelImage'));
79
+    $form->addElement('checkbox', 'delete_picture', '', get_lang('DelImage'));
80 80
 }
81 81
 
82 82
 // Group parent
@@ -101,28 +101,28 @@  discard block
 block discarded – undo
101 101
 
102 102
 // Validate form
103 103
 if ( $form->validate()) {
104
-	$group = $form->exportValues();
104
+    $group = $form->exportValues();
105 105
 
106
-	$picture_element = $form->getElement('picture');
107
-	$picture = $picture_element->getValue();
106
+    $picture_element = $form->getElement('picture');
107
+    $picture = $picture_element->getValue();
108 108
 
109
-	$picture_uri = $group_data['picture_uri'];
110
-	if ($group['delete_picture']) {
111
-		$picture_uri = GroupPortalManager::delete_group_picture($group_id);
112
-		}
113
-	elseif (!empty($picture['name'])) {
109
+    $picture_uri = $group_data['picture_uri'];
110
+    if ($group['delete_picture']) {
111
+        $picture_uri = GroupPortalManager::delete_group_picture($group_id);
112
+        }
113
+    elseif (!empty($picture['name'])) {
114 114
         $picture_uri = GroupPortalManager::update_group_picture(
115 115
             $group_id,
116 116
             $_FILES['picture']['name'],
117 117
             $_FILES['picture']['tmp_name']
118 118
         );
119
-	}
119
+    }
120 120
 
121
-	$name = $group['name'];
122
-	$description = $group['description'];
123
-	$url = $group['url'];
124
-	$status = intval($group['visibility']);
125
-	$parent_group_id = intval($group['parent_group']);
121
+    $name = $group['name'];
122
+    $description = $group['description'];
123
+    $url = $group['url'];
124
+    $status = intval($group['visibility']);
125
+    $parent_group_id = intval($group['parent_group']);
126 126
 
127 127
     GroupPortalManager::update(
128 128
         $group_id,
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
     );
135 135
     GroupPortalManager::set_parent_group($group_id, $parent_group_id);
136 136
 
137
-	$tok = Security::get_token();
138
-	header('Location: group_list.php?action=show_message&message='.urlencode(get_lang('GroupUpdated')).'&sec_token='.$tok);
139
-	exit();
137
+    $tok = Security::get_token();
138
+    header('Location: group_list.php?action=show_message&message='.urlencode(get_lang('GroupUpdated')).'&sec_token='.$tok);
139
+    exit();
140 140
 }
141 141
 
142 142
 Display::display_header($tool_name);
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
 $image_size = api_getimagesize($image_file);
150 150
 
151 151
 $img_attributes = 'src="'.$image_file.'?rand='.time().'" '
152
-	.'style="float:'.($text_dir == 'rtl' ? 'left' : 'right').'; padding:5px;" ';
152
+    .'style="float:'.($text_dir == 'rtl' ? 'left' : 'right').'; padding:5px;" ';
153 153
 
154 154
 if ($image_size['width'] > 300) {
155 155
     // limit display width to 300px
156
-	$img_attributes .= 'width="300" ';
156
+    $img_attributes .= 'width="300" ';
157 157
 }
158 158
 
159 159
 // get the path,width and height from original picture
@@ -164,9 +164,9 @@  discard block
 block discarded – undo
164 164
 $url_big_image = $big_image.'?rnd='.time();
165 165
 
166 166
 if ($image == '') {
167
-	echo '<img '.$img_attributes.' />';
167
+    echo '<img '.$img_attributes.' />';
168 168
 } else {
169
-	echo '<input type="image" '.$img_attributes.' onclick="javascript: return show_image(\''.$url_big_image.'\',\''.$big_image_width.'\',\''.$big_image_height.'\');"/>';
169
+    echo '<input type="image" '.$img_attributes.' onclick="javascript: return show_image(\''.$url_big_image.'\',\''.$big_image_width.'\',\''.$big_image_height.'\');"/>';
170 170
 }
171 171
 
172 172
 // Display form
Please login to merge, or discard this patch.
main/admin/access_url_edit_courses_to_url.php 1 patch
Indentation   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 $xajax = new xajax();
13 13
 $xajax->registerFunction(
14
-	array('search_courses', 'Accessurleditcoursestourl', 'search_courses')
14
+    array('search_courses', 'Accessurleditcoursestourl', 'search_courses')
15 15
 );
16 16
 
17 17
 // setting the section (for the tabs)
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 // Access restrictions
21 21
 api_protect_global_admin_script();
22 22
 if (!api_get_multiple_access_url()) {
23
-	header('Location: index.php');
24
-	exit;
23
+    header('Location: index.php');
24
+    exit;
25 25
 }
26 26
 
27 27
 // Database Table Definitions
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
 
37 37
 $add_type = 'multiple';
38 38
 if (isset($_REQUEST['add_type']) && $_REQUEST['add_type']!='') {
39
-	$add_type = Security::remove_XSS($_REQUEST['add_type']);
39
+    $add_type = Security::remove_XSS($_REQUEST['add_type']);
40 40
 }
41 41
 
42 42
 $access_url_id = 1;
43 43
 if (isset($_REQUEST['access_url_id']) && $_REQUEST['access_url_id']!='') {
44
-	$access_url_id = Security::remove_XSS($_REQUEST['access_url_id']);
44
+    $access_url_id = Security::remove_XSS($_REQUEST['access_url_id']);
45 45
 }
46 46
 
47 47
 $xajax -> processRequests();
@@ -83,21 +83,21 @@  discard block
 block discarded – undo
83 83
 $users = $sessions = array();
84 84
 
85 85
 if (isset($_POST['form_sent']) && $_POST['form_sent']) {
86
-	$form_sent = $_POST['form_sent'];
87
-	$course_list = $_POST['course_list'];
88
-
89
-	if (!is_array($course_list)) {
90
-		$course_list = array();
91
-	}
92
-
93
-	if ($form_sent == 1) {
94
-		if ($access_url_id==0) {
95
-			header('Location: access_url_edit_users_to_url.php?action=show_message&message='.get_lang('SelectURL'));
96
-		} elseif (is_array($course_list)) {
97
-			UrlManager::update_urls_rel_course($course_list, $access_url_id);
98
-			header('Location: access_urls.php?action=show_message&message='.get_lang('CoursesWereEdited'));
99
-		}
100
-	}
86
+    $form_sent = $_POST['form_sent'];
87
+    $course_list = $_POST['course_list'];
88
+
89
+    if (!is_array($course_list)) {
90
+        $course_list = array();
91
+    }
92
+
93
+    if ($form_sent == 1) {
94
+        if ($access_url_id==0) {
95
+            header('Location: access_url_edit_users_to_url.php?action=show_message&message='.get_lang('SelectURL'));
96
+        } elseif (is_array($course_list)) {
97
+            UrlManager::update_urls_rel_course($course_list, $access_url_id);
98
+            header('Location: access_urls.php?action=show_message&message='.get_lang('CoursesWereEdited'));
99
+        }
100
+    }
101 101
 }
102 102
 
103 103
 Display::display_header($tool_name);
@@ -109,45 +109,45 @@  discard block
 block discarded – undo
109 109
 api_display_tool_title($tool_name);
110 110
 
111 111
 if (isset($_GET['action']) && $_GET['action'] == 'show_message')
112
-	Display :: display_normal_message(Security::remove_XSS(stripslashes($_GET['message'])));
112
+    Display :: display_normal_message(Security::remove_XSS(stripslashes($_GET['message'])));
113 113
 
114 114
 $no_course_list = $course_list = array();
115 115
 $ajax_search = $add_type == 'unique' ? true : false;
116 116
 
117 117
 if($ajax_search) {
118
-	$courses = UrlManager::get_url_rel_course_data($access_url_id);
119
-	foreach ($courses as $course) {
120
-		$course_list[$course['c_id']] = $course;
121
-	}
118
+    $courses = UrlManager::get_url_rel_course_data($access_url_id);
119
+    foreach ($courses as $course) {
120
+        $course_list[$course['c_id']] = $course;
121
+    }
122 122
 } else {
123
-	$courses = UrlManager::get_url_rel_course_data();
123
+    $courses = UrlManager::get_url_rel_course_data();
124 124
 
125
-	foreach ($courses as $course) {
126
-		if ($course['access_url_id'] == $access_url_id) {
127
-			$course_list[$course['c_id']] = $course;
128
-		}
129
-	}
125
+    foreach ($courses as $course) {
126
+        if ($course['access_url_id'] == $access_url_id) {
127
+            $course_list[$course['c_id']] = $course;
128
+        }
129
+    }
130 130
 
131
-	$tbl_course = Database :: get_main_table(TABLE_MAIN_COURSE);
132
-	$sql="SELECT id, code, title
131
+    $tbl_course = Database :: get_main_table(TABLE_MAIN_COURSE);
132
+    $sql="SELECT id, code, title
133 133
 	  	  	FROM $tbl_course u
134 134
 			ORDER BY title, code";
135
-	$result = Database::query($sql);
136
-	$courses = Database::store_result($result);
137
-	$course_list_leys = array_keys($course_list);
138
-	foreach ($courses as $course) {
139
-		if (!in_array($course['id'], $course_list_leys)) {
140
-			$no_course_list[$course['id']] = $course;
141
-		}
142
-	}
135
+    $result = Database::query($sql);
136
+    $courses = Database::store_result($result);
137
+    $course_list_leys = array_keys($course_list);
138
+    foreach ($courses as $course) {
139
+        if (!in_array($course['id'], $course_list_leys)) {
140
+            $no_course_list[$course['id']] = $course;
141
+        }
142
+    }
143 143
 }
144 144
 
145 145
 if($add_type == 'multiple') {
146
-	$link_add_type_unique = '<a href="'.api_get_self().'?add_type=unique&access_url_id='.$access_url_id.'">'.get_lang('SessionAddTypeUnique').'</a>';
147
-	$link_add_type_multiple = get_lang('SessionAddTypeMultiple');
146
+    $link_add_type_unique = '<a href="'.api_get_self().'?add_type=unique&access_url_id='.$access_url_id.'">'.get_lang('SessionAddTypeUnique').'</a>';
147
+    $link_add_type_multiple = get_lang('SessionAddTypeMultiple');
148 148
 } else {
149
-	$link_add_type_unique = get_lang('SessionAddTypeUnique');
150
-	$link_add_type_multiple = '<a href="'.api_get_self().'?add_type=multiple&access_url_id='.$access_url_id.'">'.get_lang('SessionAddTypeMultiple').'</a>';
149
+    $link_add_type_unique = get_lang('SessionAddTypeUnique');
150
+    $link_add_type_multiple = '<a href="'.api_get_self().'?add_type=multiple&access_url_id='.$access_url_id.'">'.get_lang('SessionAddTypeMultiple').'</a>';
151 151
 }
152 152
 $url_list = UrlManager::get_url_data();
153 153
 ?>
@@ -160,31 +160,31 @@  discard block
 block discarded – undo
160 160
 		<select name="access_url_id" onchange="javascript:send();">
161 161
 			<option value="0">-- <?php echo get_lang('SelectUrl')?> -- </option>
162 162
 			<?php
163
-			$url_selected='';
164
-			foreach ($url_list as $url_obj) {
165
-				$checked = '';
166
-				if (!empty($access_url_id)) {
167
-					if ($url_obj[0]==$access_url_id) {
168
-						$checked = 'selected=true';
169
-						$url_selected=$url_obj[1];
170
-					}
171
-				}
172
-				if ($url_obj['active']==1) {
173
-					?>
163
+            $url_selected='';
164
+            foreach ($url_list as $url_obj) {
165
+                $checked = '';
166
+                if (!empty($access_url_id)) {
167
+                    if ($url_obj[0]==$access_url_id) {
168
+                        $checked = 'selected=true';
169
+                        $url_selected=$url_obj[1];
170
+                    }
171
+                }
172
+                if ($url_obj['active']==1) {
173
+                    ?>
174 174
 					<option <?php echo $checked;?> value="<?php echo $url_obj[0]; ?>"> <?php echo $url_obj[1]; ?></option>
175 175
 				<?php
176
-				}
177
-			}
178
-			?>
176
+                }
177
+            }
178
+            ?>
179 179
 		</select>
180 180
 		<br /><br />
181 181
 		<input type="hidden" name="form_sent" value="1" />
182 182
 		<input type="hidden" name="add_type" value = "<?php echo $add_type ?>" />
183 183
 		<?php
184
-		if(!empty($errorMsg)) {
185
-			Display::display_normal_message($errorMsg); //main API
186
-		}
187
-		?>
184
+        if(!empty($errorMsg)) {
185
+            Display::display_normal_message($errorMsg); //main API
186
+        }
187
+        ?>
188 188
 		<table border="0" cellpadding="5" cellspacing="0" width="100%">
189 189
 
190 190
 			<!-- Users -->
@@ -199,38 +199,38 @@  discard block
 block discarded – undo
199 199
 				<td align="center">
200 200
 					<div id="content_source">
201 201
 						<?php
202
-						if($ajax_search) {
203
-							?>
202
+                        if($ajax_search) {
203
+                            ?>
204 204
 							<input type="text" id="course_to_add" onkeyup="xajax_search_courses(this.value,document.formulaire.access_url_id.options[document.formulaire.access_url_id.selectedIndex].value)" />
205 205
 							<div id="ajax_list_courses"></div>
206 206
 						<?php
207
-						} else {
208
-							?>
207
+                        } else {
208
+                            ?>
209 209
 							<select id="origin_users" name="no_course_list[]" multiple="multiple" size="15" style="width:380px;">
210 210
 								<?php
211
-								foreach($no_course_list as $no_course) {
212
-									?>
211
+                                foreach($no_course_list as $no_course) {
212
+                                    ?>
213 213
 									<option value="<?php echo $no_course['id']; ?>"><?php echo $no_course['title'].' ('.$no_course['code'].')'; ?></option>
214 214
 								<?php
215
-								}
216
-								unset($no_course_list);
217
-								?>
215
+                                }
216
+                                unset($no_course_list);
217
+                                ?>
218 218
 							</select>
219 219
 						<?php
220
-						}
221
-						?>
220
+                        }
221
+                        ?>
222 222
 					</div>
223 223
 				</td>
224 224
 				<td width="10%" valign="middle" align="center">
225 225
 					<?php
226
-					if($ajax_search) {
227
-						?>
226
+                    if($ajax_search) {
227
+                        ?>
228 228
 						<button class="btn btn-default" type="button" onclick="remove_item(document.getElementById('destination_users'))" >
229 229
                             <em class="fa fa-arrow-left"></em>
230 230
 						</button>
231 231
 					<?php
232
-					} else {
233
-						?>
232
+                    } else {
233
+                        ?>
234 234
 						<button class="btn btn-default" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" >
235 235
                             <em class="fa fa-arrow-right"></em>
236 236
 						</button>
@@ -239,21 +239,21 @@  discard block
 block discarded – undo
239 239
                             <em class="fa fa-arrow-left"></em>
240 240
 						</button>
241 241
 					<?php
242
-					}
243
-					?>
242
+                    }
243
+                    ?>
244 244
 					<br /><br /><br /><br /><br /><br />
245 245
 				</td>
246 246
 				<td align="center">
247 247
 					<select id="destination_users" name="course_list[]" multiple="multiple" size="15" style="width:380px;">
248 248
 						<?php
249
-						foreach($course_list as $course) {
250
-							$courseInfo = api_get_course_info_by_id($course['id']);
251
-							?>
249
+                        foreach($course_list as $course) {
250
+                            $courseInfo = api_get_course_info_by_id($course['id']);
251
+                            ?>
252 252
 							<option value="<?php echo $course['id']; ?>"><?php echo $course['title'].' ('.$courseInfo['code'].')'; ?></option>
253 253
 						<?php
254
-						}
255
-						unset($course_list);
256
-						?>
254
+                        }
255
+                        unset($course_list);
256
+                        ?>
257 257
 
258 258
 					</select></td>
259 259
 			</tr>
@@ -261,11 +261,11 @@  discard block
 block discarded – undo
261 261
 				<td colspan="3" align="center">
262 262
 					<br />
263 263
 					<?php
264
-					if(isset($_GET['add']))
265
-						echo '<button class="btn btn-default" onclick="valide()" >'.get_lang('AddCoursesToURL').'</button>';
266
-					else
267
-						echo '<button class="btn btn-default" onclick="valide()" >'.get_lang('EditCoursesToURL').'</button>';
268
-					?>
264
+                    if(isset($_GET['add']))
265
+                        echo '<button class="btn btn-default" onclick="valide()" >'.get_lang('AddCoursesToURL').'</button>';
266
+                    else
267
+                        echo '<button class="btn btn-default" onclick="valide()" >'.get_lang('EditCoursesToURL').'</button>';
268
+                    ?>
269 269
 				</td>
270 270
 			</tr>
271 271
 		</table>
Please login to merge, or discard this patch.
main/admin/subscribe_user2course.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
       <option value="">--</option>
264 264
       <?php
265 265
         echo Display :: get_alphabet_options($first_letter_user);
266
-      ?>
266
+        ?>
267 267
      </select>
268 268
     </td>
269 269
     <td width="20%">&nbsp;</td>
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
      <select name="firstLetterCourse" onchange="javascript:document.formulaire.form_sent.value='2'; document.formulaire.submit();">
275 275
       <option value="">--</option>
276 276
       <?php
277
-      echo Display :: get_alphabet_options($first_letter_course);
278
-      ?>
277
+        echo Display :: get_alphabet_options($first_letter_course);
278
+        ?>
279 279
      </select>
280 280
     </td>
281 281
    </tr>
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
         }
296 296
 
297 297
         echo $userName;
298
-      ?>
298
+        ?>
299 299
       </option>
300 300
 <?php
301 301
 }
Please login to merge, or discard this patch.
main/admin/legal_list.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 
25 25
 // Actions
26 26
 if (isset ($_GET['action'])) {
27
-	if ($_GET['action'] == 'show_message')
28
-		Display :: display_normal_message(Security::remove_XSS(stripslashes($_GET['message'])));
29
-	Security::clear_token();
27
+    if ($_GET['action'] == 'show_message')
28
+        Display :: display_normal_message(Security::remove_XSS(stripslashes($_GET['message'])));
29
+    Security::clear_token();
30 30
 }
31 31
 
32 32
 $legal_count = LegalManager::count();
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
 
53 53
 // this 2 "mask" function are here just because the SortableTable
54 54
 function get_legal_data_mask($id, $params=null, $row=null) {
55
-	return LegalManager::get_legal_data($id, $params, $row);
55
+    return LegalManager::get_legal_data($id, $params, $row);
56 56
 }
57 57
 function count_mask() {
58
-	return LegalManager::count();
58
+    return LegalManager::count();
59 59
 }
60 60
 Display :: display_footer();
Please login to merge, or discard this patch.
main/admin/skills_gradebook.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                         array('name'=>'certificate',    'index'=>'certificate', 'width'=>'25', 'align'=>'left', 'sortable'=>'false'),
51 51
                         array('name'=>'skills',         'index'=>'skills',      'width'=>'300', 'align'=>'left', 'sortable'=>'false'),
52 52
                         array('name'=>'actions',        'index'=>'actions',     'width'=>'30', 'align'=>'left','formatter'=>'action_formatter','sortable'=>'false')
53
-                       );
53
+                        );
54 54
 //Autowidth
55 55
 $extra_params['autowidth'] = 'true';
56 56
 //height auto
Please login to merge, or discard this patch.
main/admin/access_url_edit_users_to_url.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 /**
4
- * 	@package chamilo.admin
5
- * 	@author Julio Montoya <[email protected]>
6
- */
4
+         * 	@package chamilo.admin
5
+         * 	@author Julio Montoya <[email protected]>
6
+         */
7 7
 // resetting the course id
8 8
 $cidReset = true;
9 9
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
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>
Please login to merge, or discard this patch.