@@ -56,7 +56,7 @@ |
||
56 | 56 | } elseif (substr_count($val, '$pre = ') > 0) { |
57 | 57 | $_SESSION['pre'] = getSettingValue($val); |
58 | 58 | } elseif (substr_count($val, "define('SECUREPATH',") > 0) { |
59 | - $_SESSION['sk_file'] = substr($val, 23, strpos($val, ');')-24)."/sk.php"; |
|
59 | + $_SESSION['sk_file'] = substr($val, 23, strpos($val, ');') - 24)."/sk.php"; |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $config->setIgnoreHeaderLine("true"); |
138 | 138 | // extract data from CSV file |
139 | 139 | $interpreter = new Interpreter(); |
140 | - $interpreter->addObserver(function (array $row) use (&$valuesToImport) { |
|
140 | + $interpreter->addObserver(function(array $row) use (&$valuesToImport) { |
|
141 | 141 | $valuesToImport[] = array( |
142 | 142 | 'Label' => $row[0], |
143 | 143 | 'Login' => $row[1], |
@@ -966,7 +966,7 @@ discard block |
||
966 | 966 | break; |
967 | 967 | } |
968 | 968 | |
969 | -spl_autoload_register(function ($class) { |
|
969 | +spl_autoload_register(function($class) { |
|
970 | 970 | $prefix = 'League\\Csv\\'; |
971 | 971 | $base_dir = __DIR__.'/src/'; |
972 | 972 | $len = strlen($prefix); |
@@ -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 |
@@ -427,7 +427,7 @@ |
||
427 | 427 | } elseif (substr_count($val, '$pre') > 0) { |
428 | 428 | $pre = getSettingValue($val); |
429 | 429 | } elseif (substr_count($val, "define('SECUREPATH',") > 0) { |
430 | - $superGlobal->put("sk_file", substr($val, 23, strpos($val, ');')-24)."/sk.php", "SESSION"); |
|
430 | + $superGlobal->put("sk_file", substr($val, 23, strpos($val, ');') - 24)."/sk.php", "SESSION"); |
|
431 | 431 | } |
432 | 432 | } |
433 | 433 | } |
@@ -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('.', '..')); |
@@ -492,7 +492,7 @@ |
||
492 | 492 | $_SESSION['validite_pw'] = true; |
493 | 493 | } else { |
494 | 494 | $_SESSION['numDaysBeforePwExpiration'] = $SETTINGS['pw_life_duration'] - round( |
495 | - (mktime(0, 0, 0, (int)date('m'), (int)date('d'), (int)date('y')) - $_SESSION['last_pw_change']) / (24 * 60 * 60) |
|
495 | + (mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('y')) - $_SESSION['last_pw_change']) / (24 * 60 * 60) |
|
496 | 496 | ); |
497 | 497 | if ($_SESSION['numDaysBeforePwExpiration'] <= 0) { |
498 | 498 | $_SESSION['validite_pw'] = false; |
@@ -309,7 +309,7 @@ |
||
309 | 309 | BeforeUpload: function (up, file) { |
310 | 310 | $("#import_status_ajax_loader").show(); |
311 | 311 | up.settings.multipart_params = { |
312 | - "PHPSESSID":"<?php echo $_SESSION['user_id'];?>", |
|
312 | + "PHPSESSID":"<?php echo $_SESSION['user_id']; ?>", |
|
313 | 313 | "type_upload":"import_items_from_keypass", |
314 | 314 | "user_token": $("#import_user_token").val() |
315 | 315 | }; |
@@ -711,7 +711,7 @@ |
||
711 | 711 | utf8_encode( |
712 | 712 | "<?php |
713 | 713 | global \$SETTINGS; |
714 | -\$SETTINGS = array (" . $config_text . " |
|
714 | +\$SETTINGS = array (" . $config_text." |
|
715 | 715 | );" |
716 | 716 | ) |
717 | 717 | ); |
@@ -227,15 +227,15 @@ |
||
227 | 227 | } |
228 | 228 | $tmp = mysqli_num_rows(mysqli_query($dbTmp, "SELECT * FROM `_install` WHERE `key` = 'url_path'")); |
229 | 229 | if (intval($tmp) === 0) { |
230 | - mysqli_query($dbTmp, "INSERT INTO `_install` (`key`, `value`) VALUES ('url_path', '". empty($session_url_path) ? $db['url_path'] : $session_url_path. "');"); |
|
230 | + mysqli_query($dbTmp, "INSERT INTO `_install` (`key`, `value`) VALUES ('url_path', '".empty($session_url_path) ? $db['url_path'] : $session_url_path."');"); |
|
231 | 231 | } else { |
232 | 232 | mysqli_query($dbTmp, "UPDATE `_install` SET `value` = '", empty($session_url_path) ? $db['url_path'] : $session_url_path, "' WHERE `key` = 'url_path';"); |
233 | 233 | } |
234 | 234 | $tmp = mysqli_num_rows(mysqli_query($dbTmp, "SELECT * FROM `_install` WHERE `key` = 'abspath'")); |
235 | 235 | if (intval($tmp) === 0) { |
236 | - mysqli_query($dbTmp, "INSERT INTO `_install` (`key`, `value`) VALUES ('abspath', '". empty($session_abspath) ? $db['abspath'] : $session_abspath. "');"); |
|
236 | + mysqli_query($dbTmp, "INSERT INTO `_install` (`key`, `value`) VALUES ('abspath', '".empty($session_abspath) ? $db['abspath'] : $session_abspath."');"); |
|
237 | 237 | } else { |
238 | - mysqli_query($dbTmp, "UPDATE `_install` SET `value` = '". empty($session_abspath) ? $db['abspath'] : $session_abspath. "' WHERE `key` = 'abspath';"); |
|
238 | + mysqli_query($dbTmp, "UPDATE `_install` SET `value` = '".empty($session_abspath) ? $db['abspath'] : $session_abspath."' WHERE `key` = 'abspath';"); |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | echo '[{"error" : "", "result" : "Connection is successful", "multiple" : ""}]'; |
@@ -759,7 +759,7 @@ |
||
759 | 759 | utf8_encode( |
760 | 760 | "<?php |
761 | 761 | global \$SETTINGS; |
762 | -\$SETTINGS = array (" . $config_text . " |
|
762 | +\$SETTINGS = array (" . $config_text." |
|
763 | 763 | );" |
764 | 764 | ) |
765 | 765 | ); |
@@ -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); |
@@ -309,7 +309,7 @@ |
||
309 | 309 | BeforeUpload: function (up, file) { |
310 | 310 | $("#import_status_ajax_loader").show(); |
311 | 311 | up.settings.multipart_params = { |
312 | - "PHPSESSID":"<?php echo $_SESSION['user_id'];?>", |
|
312 | + "PHPSESSID":"<?php echo $_SESSION['user_id']; ?>", |
|
313 | 313 | "type_upload":"import_items_from_keypass", |
314 | 314 | "user_token": $("#import_user_token").val() |
315 | 315 | }; |