if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('is_single_server') == 'Y') {
// Then use that IP for extra security
$serverIp = FrameworkBootstrap::detectServerAddress();
- } // END - if
+ }
// Yet-another fixed salt. This is not dependend on server software or date
if ($extraInstance instanceof FrameworkInterface) {
// Is the number <1, then fix it to default length
if ($length < 1) {
$length = $this->rndStrLen;
- } // END - if
+ }
// Initialize the string
$randomString = '';
for ($idx = 0; $idx < $length; $idx++) {
// Add a random character and add it to our string
$randomString .= chr($this->randomNumber(0, 255));
- } // END - for
+ }
// Return the random string a little mixed up
return str_shuffle($randomString);
// Get key
if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('crypt_fixed_salt') == 'Y') {
$key = md5($this->getFixedSalt());
- } // END - if
+ }
// Return it
return $key;