@@ -85,8 +85,8 @@ |
||
85 | 85 | ); |
86 | 86 | if ($row['valeur'] === "true") { |
87 | 87 | /** |
88 | - * Permits to delete files and folders recursively |
|
89 | - */ |
|
88 | + * Permits to delete files and folders recursively |
|
89 | + */ |
|
90 | 90 | function delTree($dir) |
91 | 91 | { |
92 | 92 | $files = array_diff(scandir($dir), array('.', '..')); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | //load full tree |
106 | 106 | $tree->rebuild(); |
107 | 107 | $tree = $tree->getDescendants(); |
108 | - // Init post variable |
|
108 | + // Init post variable |
|
109 | 109 | $post_operation_id = filter_input(INPUT_POST, 'file', FILTER_SANITIZE_NUMBER_INT); |
110 | 110 | |
111 | 111 | // Get filename from database |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | } |
437 | 437 | |
438 | 438 | /** |
439 | - ** Recursive function that will permit to read each level of XML nodes |
|
439 | + ** Recursive function that will permit to read each level of XML nodes |
|
440 | 440 | */ |
441 | 441 | function recursiveKeepassXML($xmlRoot, $xmlLevel = 0) |
442 | 442 | { |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | |
587 | 587 | //recursive call |
588 | 588 | if ($history !== true) { |
589 | - recursiveKeepassXML($xmlChildren, $xmlLevel + 1); |
|
589 | + recursiveKeepassXML($xmlChildren, $xmlLevel + 1); |
|
590 | 590 | } |
591 | 591 | |
592 | 592 | // Force History to false |
@@ -2085,7 +2085,7 @@ discard block |
||
2085 | 2085 | $debug_ldap .= "LDAP connection : ".($ldapconn ? "Connected" : "Failed")."<br/>"; |
2086 | 2086 | |
2087 | 2087 | if ($ldapconn) { |
2088 | - $debug_ldap .= "DN : ".$dataReceived[0]['ldap_bind_dn']." -- ".$dataReceived[0]['ldap_bind_passwd']."<br/>"; |
|
2088 | + $debug_ldap .= "DN : ".$dataReceived[0]['ldap_bind_dn']." -- ".$dataReceived[0]['ldap_bind_passwd']."<br/>"; |
|
2089 | 2089 | ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3); |
2090 | 2090 | ldap_set_option($ldapconn, LDAP_OPT_REFERRALS, 0); |
2091 | 2091 | $ldapbind = ldap_bind($ldapconn, $dataReceived[0]['ldap_bind_dn'], $dataReceived[0]['ldap_bind_passwd']); |
@@ -2112,7 +2112,7 @@ discard block |
||
2112 | 2112 | ); |
2113 | 2113 | |
2114 | 2114 | $debug_ldap .= 'Search filter (group): '.$filter_group."<br/>". |
2115 | - 'Results : '.str_replace("\n","<br>", print_r(ldap_get_entries($ldapconn, $result_group), true))."<br/>"; |
|
2115 | + 'Results : '.str_replace("\n","<br>", print_r(ldap_get_entries($ldapconn, $result_group), true))."<br/>"; |
|
2116 | 2116 | |
2117 | 2117 | if ($result_group) { |
2118 | 2118 | $entries = ldap_get_entries($ldapconn, $result_group); |
@@ -2120,11 +2120,11 @@ discard block |
||
2120 | 2120 | if ($entries['count'] > 0) { |
2121 | 2121 | // Now check if group fits |
2122 | 2122 | for ($i=0; $i<$entries['count']; $i++) { |
2123 | - $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
2124 | - if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
2123 | + $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
2124 | + if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
2125 | 2125 | $GroupRestrictionEnabled = true; |
2126 | 2126 | break; |
2127 | - } |
|
2127 | + } |
|
2128 | 2128 | } |
2129 | 2129 | |
2130 | 2130 | } |
@@ -1635,7 +1635,7 @@ |
||
1635 | 1635 | rest_error('AUTH_NO_URL'); |
1636 | 1636 | } |
1637 | 1637 | } else { |
1638 | - rest_error('AUTH_NO_IDENTIFIER'); |
|
1638 | + rest_error('AUTH_NO_IDENTIFIER'); |
|
1639 | 1639 | } |
1640 | 1640 | } else { |
1641 | 1641 | rest_error('AUTH_NO_IDENTIFIER'); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | logEvents('user_mngt', 'at_user_pwd_changed', $_SESSION['user_id'], $_SESSION['login'], $_SESSION['user_id']); |
201 | 201 | echo '[ { "error" : "none" } ]'; |
202 | 202 | } else { |
203 | - echo '[ { "error" : "pwd_hash_not_correct" } ]'; |
|
203 | + echo '[ { "error" : "pwd_hash_not_correct" } ]'; |
|
204 | 204 | } |
205 | 205 | break; |
206 | 206 | |
@@ -1403,7 +1403,7 @@ discard block |
||
1403 | 1403 | |
1404 | 1404 | // Update session |
1405 | 1405 | if ($field === 'user_api_key') { |
1406 | - $_SESSION['user_settings']['api-key'] = $new_value; |
|
1406 | + $_SESSION['user_settings']['api-key'] = $new_value; |
|
1407 | 1407 | } |
1408 | 1408 | break; |
1409 | 1409 | } |
@@ -2191,12 +2191,12 @@ discard block |
||
2191 | 2191 | |
2192 | 2192 | // Check that user can access this folder |
2193 | 2193 | if (( |
2194 | - in_array($post_source_folder_id, $_SESSION['groupes_visibles']) === false || |
|
2194 | + in_array($post_source_folder_id, $_SESSION['groupes_visibles']) === false || |
|
2195 | 2195 | in_array($post_target_folder_id, $_SESSION['groupes_visibles']) === false) && |
2196 | 2196 | ( |
2197 | - $post_target_folder_id === '0' && |
|
2197 | + $post_target_folder_id === '0' && |
|
2198 | 2198 | isset($SETTINGS['can_create_root_folder']) === true && $SETTINGS['can_create_root_folder'] === '1' |
2199 | - ) |
|
2199 | + ) |
|
2200 | 2200 | ) { |
2201 | 2201 | $returnValues = '[{"error" : "'.addslashes($LANG['error_not_allowed_to']).'"}]'; |
2202 | 2202 | echo $returnValues; |
@@ -3201,7 +3201,7 @@ discard block |
||
3201 | 3201 | if ((isset($_SESSION['user_settings']['session_psk']) === false || empty($_SESSION['user_settings']['session_psk']) === true) |
3202 | 3202 | && ($dataSource['personal_folder'] === '1' || $dataDestination['personal_folder'] === '1') |
3203 | 3203 | ) { |
3204 | - echo '[{"error" : "ERR_PSK_REQUIRED"}]'; |
|
3204 | + echo '[{"error" : "ERR_PSK_REQUIRED"}]'; |
|
3205 | 3205 | break; |
3206 | 3206 | } |
3207 | 3207 | |
@@ -4340,19 +4340,19 @@ discard block |
||
4340 | 4340 | $ret = sendEmail( |
4341 | 4341 | $LANG['email_request_access_subject'], |
4342 | 4342 | str_replace( |
4343 | - array( |
|
4344 | - '#tp_item_author#', |
|
4345 | - '#tp_user#', |
|
4346 | - '#tp_item#', |
|
4347 | - '#tp_reason#' |
|
4348 | - ), |
|
4349 | - array( |
|
4350 | - " ".addslashes($dataAuthor['login']), |
|
4351 | - addslashes($_SESSION['login']), |
|
4352 | - $path, |
|
4353 | - nl2br(addslashes($emailText)) |
|
4354 | - ), |
|
4355 | - $LANG['email_request_access_mail'] |
|
4343 | + array( |
|
4344 | + '#tp_item_author#', |
|
4345 | + '#tp_user#', |
|
4346 | + '#tp_item#', |
|
4347 | + '#tp_reason#' |
|
4348 | + ), |
|
4349 | + array( |
|
4350 | + " ".addslashes($dataAuthor['login']), |
|
4351 | + addslashes($_SESSION['login']), |
|
4352 | + $path, |
|
4353 | + nl2br(addslashes($emailText)) |
|
4354 | + ), |
|
4355 | + $LANG['email_request_access_mail'] |
|
4356 | 4356 | ), |
4357 | 4357 | $dataAuthor['email'], |
4358 | 4358 | $LANG, |
@@ -4361,11 +4361,11 @@ discard block |
||
4361 | 4361 | |
4362 | 4362 | // Do log |
4363 | 4363 | logItems( |
4364 | - $item_id, |
|
4365 | - $dataItem['label'], |
|
4366 | - $_SESSION['user_id'], |
|
4367 | - 'at_access', |
|
4368 | - $_SESSION['login'] |
|
4364 | + $item_id, |
|
4365 | + $dataItem['label'], |
|
4366 | + $_SESSION['user_id'], |
|
4367 | + 'at_access', |
|
4368 | + $_SESSION['login'] |
|
4369 | 4369 | ); |
4370 | 4370 | |
4371 | 4371 | // Return |
@@ -206,8 +206,8 @@ |
||
206 | 206 | "INT(12) NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (`increment_id`)" |
207 | 207 | ); |
208 | 208 | if ($res === true) { |
209 | - // Change name of field |
|
210 | - mysqli_query($db_link, "ALTER TABLE `".$pre."misc` CHANGE `id` `increment_id` INT(12) NOT NULL AUTO_INCREMENT"); |
|
209 | + // Change name of field |
|
210 | + mysqli_query($db_link, "ALTER TABLE `".$pre."misc` CHANGE `id` `increment_id` INT(12) NOT NULL AUTO_INCREMENT"); |
|
211 | 211 | } elseif ($res === false) { |
212 | 212 | echo '[{"finish":"1", "msg":"", "error":"An error appears when adding increment_id user_ip to table misc! '.mysqli_error($db_link).'!"}]'; |
213 | 213 | mysqli_close($db_link); |