added a foreach loop to print out a crontab line-by-line to crontab_view.php
This commit is contained in:
20
api/update.php
Normal file
20
api/update.php
Normal 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;
|
||||
|
||||
?>
|
Reference in New Issue
Block a user