Made changes

This commit is contained in:
Tristan Ancelet 2023-05-20 15:07:45 -05:00
parent 93c0982363
commit bfa1ed68f6
2 changed files with 28 additions and 0 deletions

23
api/crontab.php Normal file
View File

@ -0,0 +1,23 @@
<?php
/*
/api/crontab.php
This script is meant to act as a interface for in logic for
*/
if (array_key_exists("action",$_GET)){
$action=$_GET['action'];
}
$db = new SQLite3("../../webcron.db");
switch ($action) {
case "list":
$res = $db->query("SELECT crontab_path FROM crontabs;");
while ($row = $res->fetchArray()){
exit;
}
break;
}
?>

5
api/test.php Normal file
View File

@ -0,0 +1,5 @@
<?php
echo shell_exec("uname -a");
?>