Made changes
This commit is contained in:
parent
93c0982363
commit
bfa1ed68f6
23
api/crontab.php
Normal file
23
api/crontab.php
Normal 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
5
api/test.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
echo shell_exec("uname -a");
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user