@@ -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 | } |
@@ -90,7 +90,6 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @param integer $Nb |
|
94 | 93 | */ |
95 | 94 | private static function mixColumns($s) { // combine bytes of each col of state S [é5.1.3] |
96 | 95 | for ($c = 0; $c < 4; $c++) { |
@@ -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 | } |
@@ -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 FIRST, 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); |