science-ation/admin/judges_scheduler_status_output.php

17 lines
460 B
PHP
Raw Normal View History

<?
include "../data/config.inc.php";
mysql_connect($DBHOST,substr($DBUSER,0,16),$DBPASS);
mysql_select_db($DBNAME);
2024-12-11 00:40:23 +00:00
$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;
2024-12-11 00:40:23 +00:00
$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";
?>