@@ -32,15 +32,15 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /* do checks */ |
| 35 | -require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php'; |
|
| 35 | +require_once $SETTINGS['cpassman_dir'].'/sources/checks.php'; |
|
| 36 | 36 | if (!checkUser($_SESSION['user_id'], $_SESSION['key'], curPage($SETTINGS), $SETTINGS)) { |
| 37 | 37 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page |
| 38 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 38 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 39 | 39 | exit(); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // Load |
| 43 | -require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; |
|
| 43 | +require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php'; |
|
| 44 | 44 | |
| 45 | 45 | ?> |
| 46 | 46 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $config->setIgnoreHeaderLine('true'); |
| 160 | 160 | // extract data from CSV file |
| 161 | 161 | $interpreter = new Interpreter(); |
| 162 | - $interpreter->addObserver(function (array $row) use (&$valuesToImport) { |
|
| 162 | + $interpreter->addObserver(function(array $row) use (&$valuesToImport) { |
|
| 163 | 163 | $valuesToImport[] = array( |
| 164 | 164 | 'Label' => $row[0], |
| 165 | 165 | 'Login' => $row[1], |
@@ -1135,7 +1135,7 @@ discard block |
||
| 1135 | 1135 | break; |
| 1136 | 1136 | } |
| 1137 | 1137 | |
| 1138 | -spl_autoload_register(function ($class) { |
|
| 1138 | +spl_autoload_register(function($class) { |
|
| 1139 | 1139 | $prefix = 'League\\Csv\\'; |
| 1140 | 1140 | $base_dir = __DIR__.'/src/'; |
| 1141 | 1141 | $len = strlen($prefix); |
@@ -35,10 +35,10 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /* do checks */ |
| 38 | -require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php'; |
|
| 38 | +require_once $SETTINGS['cpassman_dir'].'/sources/checks.php'; |
|
| 39 | 39 | if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'profile', $SETTINGS) === false) { |
| 40 | 40 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page |
| 41 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 41 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 42 | 42 | exit(); |
| 43 | 43 | } |
| 44 | 44 | ?> |
@@ -33,10 +33,10 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /* do checks */ |
| 36 | -require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php'; |
|
| 36 | +require_once $SETTINGS['cpassman_dir'].'/sources/checks.php'; |
|
| 37 | 37 | if (!checkUser($_SESSION['user_id'], $_SESSION['key'], curPage($SETTINGS), $SETTINGS)) { |
| 38 | 38 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page |
| 39 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 39 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 40 | 40 | exit(); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -2139,7 +2139,7 @@ discard block |
||
| 2139 | 2139 | container: 'form-item-upload-zone', |
| 2140 | 2140 | max_file_size: '<?php |
| 2141 | 2141 | if (strrpos($SETTINGS['upload_maxfilesize'], 'mb') === false) { |
| 2142 | - echo $SETTINGS['upload_maxfilesize'] . 'mb'; |
|
| 2142 | + echo $SETTINGS['upload_maxfilesize'].'mb'; |
|
| 2143 | 2143 | } else { |
| 2144 | 2144 | echo $SETTINGS['upload_maxfilesize']; |
| 2145 | 2145 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | // error |
| 87 | 87 | toastr.remove(); |
| 88 | 88 | toastr.error( |
| 89 | - '<?php echo langHdl('server_answer_error') . '<br />' . langHdl('server_returned_data') . ':<br />'; ?>' + data.error, |
|
| 89 | + '<?php echo langHdl('server_answer_error').'<br />'.langHdl('server_returned_data').':<br />'; ?>' + data.error, |
|
| 90 | 90 | '', { |
| 91 | 91 | closeButton: true, |
| 92 | 92 | positionClass: 'toastr-top-right' |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | // error |
| 152 | 152 | toastr.remove(); |
| 153 | 153 | toastr.error( |
| 154 | - '<?php echo langHdl('server_answer_error') . '<br />' . langHdl('server_returned_data') . ':<br />'; ?>' + data.error, |
|
| 154 | + '<?php echo langHdl('server_answer_error').'<br />'.langHdl('server_returned_data').':<br />'; ?>' + data.error, |
|
| 155 | 155 | '', { |
| 156 | 156 | closeButton: true, |
| 157 | 157 | positionClass: 'toastr-top-right' |
@@ -35,10 +35,10 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /* do checks */ |
| 38 | -require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php'; |
|
| 38 | +require_once $SETTINGS['cpassman_dir'].'/sources/checks.php'; |
|
| 39 | 39 | if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'profile', $SETTINGS) === false) { |
| 40 | 40 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page |
| 41 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 41 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 42 | 42 | exit(); |
| 43 | 43 | } |
| 44 | 44 | ?> |
@@ -35,10 +35,10 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /* do checks */ |
| 38 | -require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php'; |
|
| 38 | +require_once $SETTINGS['cpassman_dir'].'/sources/checks.php'; |
|
| 39 | 39 | if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === false) { |
| 40 | 40 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page |
| 41 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 41 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 42 | 42 | exit(); |
| 43 | 43 | } |
| 44 | 44 | ?> |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | if (data[i].selected_role === 1) { |
| 131 | 131 | selected_role = data[i].id; |
| 132 | 132 | } |
| 133 | - html_admin_by += '<option value="' + data[i].id + '"><?php echo langHdl('managers_of') . ' '; ?>' + data[i].title + '</option>'; |
|
| 133 | + html_admin_by += '<option value="' + data[i].id + '"><?php echo langHdl('managers_of').' '; ?>' + data[i].title + '</option>'; |
|
| 134 | 134 | html_roles += '<option value="' + data[i].id + '">' + data[i].title + '</option>'; |
| 135 | 135 | } |
| 136 | 136 | $("#ldap_new_user_is_administrated_by").append(html_admin_by); |
@@ -35,15 +35,15 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /* do checks */ |
| 38 | -require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php'; |
|
| 38 | +require_once $SETTINGS['cpassman_dir'].'/sources/checks.php'; |
|
| 39 | 39 | if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'ldap', $SETTINGS) === false) { |
| 40 | 40 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 41 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 41 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 42 | 42 | exit(); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | // Load template |
| 46 | -require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; |
|
| 46 | +require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php'; |
|
| 47 | 47 | |
| 48 | 48 | // LDAP type currently loaded |
| 49 | 49 | $ldap_type = isset($SETTINGS['ldap_type']) ? $SETTINGS['ldap_type'] : ''; |
@@ -35,10 +35,10 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /* do checks */ |
| 38 | -require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php'; |
|
| 38 | +require_once $SETTINGS['cpassman_dir'].'/sources/checks.php'; |
|
| 39 | 39 | if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === false) { |
| 40 | 40 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; //not allowed page |
| 41 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 41 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 42 | 42 | exit(); |
| 43 | 43 | } |
| 44 | 44 | ?> |