diff --git a/admin/judges_scheduler_status_output.php b/admin/judges_scheduler_status_output.php index b8c3ea1..0bd62bc 100644 --- a/admin/judges_scheduler_status_output.php +++ b/admin/judges_scheduler_status_output.php @@ -1,7 +1,7 @@ prepare("SELECT val FROM config WHERE year='0' AND var='judge_scheduler_percent'"); $q->execute(); $r=$q->fetch(PDO::FETCH_OBJ); diff --git a/admin/tours_sa_status.php b/admin/tours_sa_status.php index d53c34f..5e52834 100644 --- a/admin/tours_sa_status.php +++ b/admin/tours_sa_status.php @@ -26,8 +26,8 @@ ogram; see the file COPYING. If not, write to if($_GET['action'] == 'output') { include "../data/config.inc.php"; - mysql_connect($DBHOST,substr($DBUSER,0,16),$DBPASS); - mysql_select_db($DBNAME); + include "../common.inc.php"; + $q=$pdo->prepare("SELECT val FROM config WHERE year='0' AND var='tours_assigner_percent'"); $q->execute(); $r=$q->fetch(PDO::FETCH_OBJ); @@ -49,20 +49,7 @@ ogram; see the file COPYING. If not, write to 'Tours' => 'admin/tours.php') ); require_once("../ajax.inc.php"); -?> - -