@@ -67,8 +67,10 @@ |
||
67 | 67 | $name = $ui->getAttribute('user_fullname'); |
68 | 68 | if ($name): |
69 | 69 | echo $name; |
70 | - else : |
|
70 | + else { |
|
71 | + : |
|
71 | 72 | echo $ownerName; |
73 | + } |
|
72 | 74 | endif; |
73 | 75 | ?> |
74 | 76 | </div><br> |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('BASEPATH')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | |
3 | 5 | /** |
4 | 6 | * Breadcrumb helper |
@@ -241,9 +243,11 @@ discard block |
||
241 | 243 | $segment .= $uri_array_original[$i].'/'; |
242 | 244 | |
243 | 245 | // If replace value is an array |
244 | - if (! in_array($i, $skip_key, TRUE) && is_array($value)) // Skip link if replace value is null |
|
246 | + if (! in_array($i, $skip_key, TRUE) && is_array($value)) { |
|
247 | + // Skip link if replace value is null |
|
245 | 248 | { |
246 | 249 | $number_added_value_array = count($value); |
250 | + } |
|
247 | 251 | |
248 | 252 | foreach ($value as $pair_values) |
249 | 253 | { |
@@ -253,8 +257,7 @@ discard block |
||
253 | 257 | if ($number_pv_array == 1) |
254 | 258 | { |
255 | 259 | $val_name = $pv_array[0]; |
256 | - } |
|
257 | - else |
|
260 | + } else |
|
258 | 261 | { |
259 | 262 | $val_name = $pv_array[1]; |
260 | 263 | } |
@@ -292,12 +295,10 @@ discard block |
||
292 | 295 | if ($number_pv_array == 1 || $val_url == $uri_array_original[$i]) |
293 | 296 | { |
294 | 297 | $new_segment_url = $segment; |
295 | - } |
|
296 | - else if ($val_url[0] == '/') |
|
298 | + } else if ($val_url[0] == '/') |
|
297 | 299 | { |
298 | 300 | $new_segment_url = base_url().substr($val_url, 1); |
299 | - } |
|
300 | - else |
|
301 | + } else |
|
301 | 302 | { |
302 | 303 | $new_segment_url = $segment.$val_url; |
303 | 304 | } |
@@ -305,14 +306,15 @@ discard block |
||
305 | 306 | $str_link[] = $new_segment_url; |
306 | 307 | $str_name[] = ucwords($val_name); |
307 | 308 | } |
308 | - } |
|
309 | - else if (! in_array($i, $skip_key, TRUE)) // If value is NOT an array |
|
309 | + } else if (! in_array($i, $skip_key, TRUE)) { |
|
310 | + // If value is NOT an array |
|
310 | 311 | { |
311 | 312 | // Add multilanguage |
312 | 313 | if ($CI->config->item('multilang')) |
313 | 314 | { |
314 | 315 | if ($CI->lang->line($value)) { |
315 | 316 | $value = ucwords($CI->lang->line($value)); |
317 | + } |
|
316 | 318 | } |
317 | 319 | } |
318 | 320 |
@@ -73,8 +73,9 @@ |
||
73 | 73 | ldap_sort($ldap, $result, "sn"); |
74 | 74 | $info = ldap_get_entries($ldap, $result); |
75 | 75 | for ($i = 0; $i < $info["count"]; $i++) { |
76 | - if ($info['count'] > 1) |
|
77 | - break; |
|
76 | + if ($info['count'] > 1) { |
|
77 | + break; |
|
78 | + } |
|
78 | 79 | |
79 | 80 | //clean |
80 | 81 | $groups = $info[$i]["memberof"]; |
@@ -16,8 +16,9 @@ |
||
16 | 16 | // specify the LDAP server to connect to |
17 | 17 | $conn = ldap_connect($this->config->item('ldapserver')) or die("Oh no can't create LDAP connection"); |
18 | 18 | // bind to the LDAP server specified above |
19 | - if (!ldap_bind($conn, $this->config->item('ldapbindun'),"@".$this->config->item('ldapdomain'), $this->config->item('ldapbindpass'))) |
|
20 | - echo "Invalid credentials."; |
|
19 | + if (!ldap_bind($conn, $this->config->item('ldapbindun'),"@".$this->config->item('ldapdomain'), $this->config->item('ldapbindpass'))) { |
|
20 | + echo "Invalid credentials."; |
|
21 | + } |
|
21 | 22 | // Search for user in directory |
22 | 23 | $cred = explode('\\', $username); |
23 | 24 | list($domain, $user) = $cred; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | </tr> |
24 | 24 | </thead> |
25 | 25 | <tbody> |
26 | - <?php foreach ($status as $status_item): if ($status_item['category'] == 'network') {}else { |
|
26 | + <?php foreach ($status as $status_item): if ($status_item['category'] == 'network') {} else { |
|
27 | 27 | $sid = $status_item['id'];?> |
28 | 28 | <tr> |
29 | 29 | <td> <i class="fa <?= $status_item['icon'];?>" aria-hidden="true"></i> <?= $status_item['name'];?></td> |
@@ -16,8 +16,9 @@ |
||
16 | 16 | // specify the LDAP server to connect to |
17 | 17 | $conn = ldap_connect($this->config->item('ldapserver')) or die("Oh no can't create LDAP connection"); |
18 | 18 | // bind to the LDAP server specified above |
19 | - if (!ldap_bind($conn, $this->config->item('ldapbindun'),"@".$this->config->item('ldapdomain'), $this->config->item('ldapbindpass'))) |
|
20 | - echo "Invalid credentials."; |
|
19 | + if (!ldap_bind($conn, $this->config->item('ldapbindun'),"@".$this->config->item('ldapdomain'), $this->config->item('ldapbindpass'))) { |
|
20 | + echo "Invalid credentials."; |
|
21 | + } |
|
21 | 22 | // Search for user in directory |
22 | 23 | $cred = explode('\\', $username); |
23 | 24 | list($domain, $user) = $cred; |
@@ -69,7 +69,7 @@ |
||
69 | 69 | </tbody> |
70 | 70 | </table> |
71 | 71 | </div> |
72 | -<?php }else{?> |
|
72 | +<?php } else{?> |
|
73 | 73 | <br/> |
74 | 74 | <?php echo $this->l('list_no_items'); ?> |
75 | 75 | <br/> |