added routines to read command lists

master
Jan Danielzick 2020-02-12 04:24:26 +01:00
parent 43e3f3b84a
commit ecf7a480c4
1 changed files with 17 additions and 1 deletions

View File

@ -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.";
?>
-->