added routines to read command lists
parent
43e3f3b84a
commit
ecf7a480c4
|
@ -1 +1,17 @@
|
|||
<?php echo ":( Nothing here yet..."; ?>
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
<?php
|
||||
echo "Getting status commands...";
|
||||
$status_file_name = "commands_status.conf";
|
||||
$status_file = fopen($status_file_name, "r") or die("Could not read file $status_file_name. Aborting.");
|
||||
$status_commands = explode(PHP_EOL, fread($status_file, filesize($status_file_name)));
|
||||
fclose($status_file);
|
||||
echo "Done.";
|
||||
echo "Getting ondemand commands...";
|
||||
$ondemand_file_name = "commands_ondemand.conf";
|
||||
$ondemand_file = fopen($ondemand_file_name, "r") or die("Could not read file $ondemand_file_name. Aborting.");
|
||||
$ondemand_commands = explode(PHP_EOL, fread($ondemand_file, filesize($ondemand_file_name)));
|
||||
fclose($ondemand_file);
|
||||
echo "Done.";
|
||||
?>
|
||||
-->
|
Loading…
Reference in New Issue