diff --git a/src/server/cyberhex-code/system/secure_zone/php/add_client.php b/src/server/cyberhex-code/system/secure_zone/php/add_client.php index 43566c7..712deb9 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/add_client.php +++ b/src/server/cyberhex-code/system/secure_zone/php/add_client.php @@ -25,7 +25,7 @@ if($perms[7]!=="1"){ - Change Password + Add Machine @@ -41,6 +41,25 @@ if($perms[7]!=="1"){ + machineid,cert,apikey + * setup_script => server location, to download settings, databases etc + * add installer.exe to download list => downloads the app and all the files + */ + //create machineid: + $random_bytes = random_bytes(6); + + // Convert the random bytes to hexadecimal + $hex_code = bin2hex($random_bytes); + + // Output the hexadecimal code + echo $hex_code; // This will output a 12-digit hexadecimal code + } + ?>