@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $generator->setUppercase(true); |
| 88 | 88 | $generator->setNumbers(true); |
| 89 | 89 | |
| 90 | - $key = $generator->generatePasswords(); |
|
| 90 | + $key = $generator->generatePasswords(); |
|
| 91 | 91 | |
| 92 | 92 | return $key[0]; |
| 93 | 93 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $generator->setUppercase(true); |
| 88 | 88 | $generator->setNumbers(true); |
| 89 | 89 | |
| 90 | - $key = $generator->generatePasswords(); |
|
| 90 | + $key = $generator->generatePasswords(); |
|
| 91 | 91 | |
| 92 | 92 | return $key[0]; |
| 93 | 93 | } |
@@ -1227,7 +1227,8 @@ discard block |
||
| 1227 | 1227 | $tp_config_file = "../includes/config/tp.config.php"; |
| 1228 | 1228 | if (file_exists($tp_config_file)) { |
| 1229 | 1229 | if (!copy($tp_config_file, $tp_config_file.'.'.date("Y_m_d", mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('y'))))) { |
| 1230 | - echo '[{"error" : "includes/config/tp.config.php file already exists and cannot be renamed. Please do it by yourself and click on button Launch.", "result":"", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
|
| 1230 | + echo '[{"error" : "includes/config/tp.config.php file already exists and cannot be renamed. Please do { |
|
| 1231 | + it by yourself and click on button Launch.", "result":"", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
|
| 1231 | 1232 | return false; |
| 1232 | 1233 | } else { |
| 1233 | 1234 | unlink($tp_config_file); |
@@ -1255,6 +1256,7 @@ discard block |
||
| 1255 | 1256 | utf8_encode( |
| 1256 | 1257 | "<?php |
| 1257 | 1258 | global \$SETTINGS; |
| 1259 | +} |
|
| 1258 | 1260 | \$SETTINGS = array (" . $config_text." |
| 1259 | 1261 | );" |
| 1260 | 1262 | ) |