added a foreach loop to print out a crontab line-by-line to crontab_view.php

This commit is contained in:
2023-05-21 14:14:28 -05:00
parent dbc5587bb6
commit 743ca029cc
8 changed files with 129 additions and 67 deletions

20
api/update.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
/*
UPDATE:
target=<string>
*/
if (array_key_exists("target", $_GET)){
$target=$_GET['target'];
}
switch ($target) {
case "crontabs":
shell_exec("../../Scripts/update-databse.sh");
break;
}
return 0;
?>