Changed crontab_stats.php to only use php code (as shell_exec isn't working)

This commit is contained in:
Tristan Ancelet 2023-05-15 17:32:36 -05:00
parent 396f418350
commit 5d5dd02fb0

View File

@ -1,5 +1,5 @@
<?php <?php
echo "Total Crontabs:<br>"; $db = new SQLite3("../../webcron.db");
$crontab_counts=shell_exec('../../Scripts/count-crontabs.sh'); $res = $db->querySingle("SELECT COUNT(*) FROM crontabs");
echo "$crontab_counts"; echo "Total Crontabs:$res<br>";
?> ?>