mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2025-04-30 00:57:16 +00:00
Update gen.php
This commit is contained in:
parent
4371e3d2f9
commit
63b8649e9a
@ -268,7 +268,7 @@ $torname = file_get_contents('/home/pi/pivilion/torname');
|
|||||||
$tornamemode = preg_replace('/\s+/', '', $torname);
|
$tornamemode = preg_replace('/\s+/', '', $torname);
|
||||||
$output = ob_get_contents(); // get contents of trapped output
|
$output = ob_get_contents(); // get contents of trapped output
|
||||||
//write to file, e.g.
|
//write to file, e.g.
|
||||||
$newfile = "/var/www/html/pivilion/gen/index.html";
|
$newfile = "/var/www/html/pivilion/gen/index.php";
|
||||||
$file = fopen($newfile, "w");
|
$file = fopen($newfile, "w");
|
||||||
fwrite($file, $output);
|
fwrite($file, $output);
|
||||||
fclose($file);
|
fclose($file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user