From 7633ba2bf170f0769de2028ce8066e7c399f4b57 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sat, 17 Feb 2024 10:58:47 +0100 Subject: [PATCH] Update add_client.php --- .../cyberhex-code/system/secure_zone/php/add_client.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 baed953..4ee7bcf 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 @@ -110,16 +110,16 @@ include "../../../config.php"; } $stmt -> close(); //create the files and download them - $fp=fopen("/var/www/html/setup.txt","w"); + $fp=fopen("/var/www/html/export/setup.txt","w"); fwrite($fp,"$this_server"); fclose($fp); - $fp=fopen("/var/www/html/secrets.txt","w"); + $fp=fopen("/var/www/html/export/secrets.txt","w"); fwrite($fp,"machineid $machineid\n"); fwrite($fp,"cert $cert\n"); fwrite($fp,"apikey $apikey\n"); fclose($fp); - echo("Download config file1"); - echo("Download config file2"); + echo("Download config file1"); + echo("Download config file2"); echo("Download installer"); } ?>