diff --git a/install/checkConfiguration.php b/install/checkConfiguration.php index a02aa8a413..9ca48e5005 100644 --- a/install/checkConfiguration.php +++ b/install/checkConfiguration.php @@ -4,8 +4,11 @@ if (file_exists("../videos/configuration.php")) { exit; } + $installationVersion = "14.0"; +require_once '../objects/functionSecurity.php'; + error_log("Installation: ".__LINE__." ". json_encode($_POST)); header('Content-Type: application/json'); diff --git a/objects/functionSecurity.php b/objects/functionSecurity.php new file mode 100644 index 0000000000..d06174dde6 --- /dev/null +++ b/objects/functionSecurity.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/objects/functions.php b/objects/functions.php index 8ae1821516..c178ce6104 100644 --- a/objects/functions.php +++ b/objects/functions.php @@ -11985,21 +11985,4 @@ function getValueOrBlank($array, $default=''){ return $text; } -/* -secure salt in PHP using standard characters and numbers. -This code will generate a 10 to 32-character string -*/ -function _uniqid() { - // Generate 16 bytes of random data - $randomBytes = random_bytes(16); - - // Convert the binary data to a hexadecimal string - $hex = bin2hex($randomBytes); - - // If you want a variable length output, you can truncate the MD5 hash - // For example, to get a random length between 10 and 32 characters: - $randomLength = rand(10, 32); - $randomString = substr($hex, 0, $randomLength); - - return $randomString; -} \ No newline at end of file +require_once $global['systemRootPath'].'objects/functionSecurity.php'; \ No newline at end of file