Update add_client.php

This commit is contained in:
jakani24
2024-02-17 10:56:27 +01:00
parent e40fc5c96c
commit ab181c43e0

View File

@@ -111,10 +111,10 @@ include "../../../config.php";
$stmt -> close(); $stmt -> close();
//create the files and download them //create the files and download them
file $fp; file $fp;
$fp=fopen("/var/www/html/setup.txt"); $fp=fopen("/var/www/html/setup.txt","w");
fwrite($fp,"$this_server"); fwrite($fp,"$this_server");
fclose($fp); fclose($fp);
$fp=fopen("/var/www/html/secrets.txt"); $fp=fopen("/var/www/html/secrets.txt","w");
fwrite($fp,"machineid $machineid\n"); fwrite($fp,"machineid $machineid\n");
fwrite($fp,"cert $cert\n"); fwrite($fp,"cert $cert\n");
fwrite($fp,"apikey $apikey\n"); fwrite($fp,"apikey $apikey\n");