From 9892d738d4ded2a3ff0fec1fcc811cbfd0338fb7 Mon Sep 17 00:00:00 2001 From: Armanveer Gill Date: Thu, 12 Dec 2024 16:24:45 -0500 Subject: [PATCH] Complete initial pass of sql conversion --- admin/judges_scheduler_status_output.php | 4 +- admin/tours_sa_status.php | 35 ++--- db/db.update.111.php | 18 ++- db/db.update.117.php | 13 +- db/db.update.118.php | 44 +++--- db/db.update.131.php | 21 ++- db/db.update.146.php | 13 +- db/db.update.146.user.inc.php | 137 +++++++++------- db/db.update.149.php | 5 +- db/db.update.149.user.inc.php | 148 +++++++++++------- db/db.update.155.php | 14 +- db/db.update.174.php | 9 +- db/db.update.75.php | 13 +- db/db.update.76.php | 25 +-- db/db.update.87.php | 7 +- db/db_update.php | 30 ++-- .../filemanager/connectors/php/config.php | 9 +- install3.php | 14 +- winners.php | 3 +- 19 files changed, 324 insertions(+), 238 deletions(-) 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"); -?> - -