diff --git a/api/crontab_stats.php b/api/crontab_stats.php new file mode 100644 index 0000000..a1a167b --- /dev/null +++ b/api/crontab_stats.php @@ -0,0 +1,5 @@ +"; +$crontab_counts=shell_exec('./count-crontabs.sh'); +echo "$crontab_counts"; +?> diff --git a/database_version.php b/api/database_version.php similarity index 100% rename from database_version.php rename to api/database_version.php diff --git a/api/table.php b/api/table.php new file mode 100644 index 0000000..f3ee86f --- /dev/null +++ b/api/table.php @@ -0,0 +1,58 @@ + 0){ + $query_modifier="WHERE LIMIT $limit"; + } + }else { + $query_modifier=""; + } + + $db = new SQLite3("../../webcron.db"); + + $res = $db->query("SELECT * FROM $name $query_modifier"); + echo '