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 '
'; + echo '
'; + echo '
'; + + $counter=0; + for ($i = 0; $i < $res->numColumns(); $i++ ){ + echo "
{$res->columnName($i)}
"; + $counter++; + } + + echo '
'; + while ($row = $res->fetchArray()){ + echo "
"; + + for ($i = 0; $i < $counter; $i++){ + echo "
{$row[$i]}
"; + } + + echo "
"; + } + echo '
'; + echo '
'; + + +?> \ No newline at end of file diff --git a/crontabs.php b/crontabs.php deleted file mode 100644 index 9e27099..0000000 --- a/crontabs.php +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - This is a test - - - - -
- - - -
- Total Crontabs:
- -
- -
-
- All Crontabs -
-
-
Crontab
Created At
Last Modified
-
- query("SELECT crontab_path, crontab_created_timestamp, crontab_modified_timestamp FROM crontabs;"); - - while ($row = $res->fetchArray()){ - echo "
"; - echo "
{$row['crontab_path']}
{$row['crontab_created_timestamp']}
{$row['crontab_modified_timestamp']}
"; - echo "
"; - } - ?> -
-
- -
-
- - - \ No newline at end of file diff --git a/pages/login.php b/pages/login.php new file mode 100644 index 0000000..e69de29