science-ation/admin/judges_scheduler_status_output.php
2024-12-10 19:40:23 -05:00

17 lines
460 B
PHP

<?
include "../data/config.inc.php";
mysql_connect($DBHOST,substr($DBUSER,0,16),$DBPASS);
mysql_select_db($DBNAME);
$q=$pdo->prepare("SELECT val FROM config WHERE year='0' AND var='judge_scheduler_percent'");
$q->execute();
$r=$q->fetch(PDO::FETCH_OBJ);
$percent=$r->val;
$q=$pdo->prepare("SELECT val FROM config WHERE year='0' AND var='judge_scheduler_activity'");
$q->execute();
$r=$q->fetch(PDO::FETCH_OBJ);
$status=$r->val;
echo "$percent:$status\n";
?>