@@ -220,7 +220,7 @@ |
||
| 220 | 220 | $variableApi->getAll(VariableApi::CONFIG); // forces initialization of API |
| 221 | 221 | $variableApi->set(VariableApi::CONFIG, 'language_i18n', $params['locale']); |
| 222 | 222 | // Set the System Identifier as a unique string. |
| 223 | - $variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string) (random_int(1000000000, 9999999999)), true))); |
|
| 223 | + $variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string)(random_int(1000000000, 9999999999)), true))); |
|
| 224 | 224 | // add admin email as site email |
| 225 | 225 | $variableApi->set(VariableApi::CONFIG, 'adminmail', $params['email']); |
| 226 | 226 | // regenerate the theme list |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | $kernel = $this->container->get('kernel'); |
| 232 | 232 | // Set the System Identifier as a unique string. |
| 233 | 233 | if (!$variableApi->get(VariableApi::CONFIG, 'system_identifier')) { |
| 234 | - $variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string) (random_int(1000000000, 9999999999)), true))); |
|
| 234 | + $variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string)(random_int(1000000000, 9999999999)), true))); |
|
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | // add new configuration parameters |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $this->setSystemVar('sessionauthkeyua', 0); |
| 52 | 52 | $this->setSystemVar('secure_domain'); |
| 53 | 53 | $this->setSystemVar('signcookies', 1); |
| 54 | - $this->setSystemVar('signingkey', sha1((string) (random_int(0, time())))); |
|
| 54 | + $this->setSystemVar('signingkey', sha1((string)(random_int(0, time())))); |
|
| 55 | 55 | $this->setSystemVar('seclevel', 'Medium'); |
| 56 | 56 | $this->setSystemVar('secmeddays', 7); |
| 57 | 57 | $this->setSystemVar('secinactivemins', 20); |