Update add_client.php
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user