aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-30 10:40:48 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-30 10:40:48 -0500
commit9247d5ed38132adb3462f03a0c164761d50be6dd (patch)
tree2b0a5eaf98f5244d0996b1e1265b1e8766297ca9
parentRemove old db lib backup (diff)
downloadbouncer-9247d5ed38132adb3462f03a0c164761d50be6dd.tar.gz
bouncer-9247d5ed38132adb3462f03a0c164761d50be6dd.tar.bz2
bouncer-9247d5ed38132adb3462f03a0c164761d50be6dd.zip
update admin/lstats.php
-rw-r--r--php/admin/lstats.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/php/admin/lstats.php b/php/admin/lstats.php
index f7f1900..9416eb5 100644
--- a/php/admin/lstats.php
+++ b/php/admin/lstats.php
@@ -7,7 +7,7 @@
$protect=1; // protect this page
require_once('../cfg/init.php');
-$stats = db_get("
+$stats = DB::get("
SELECT
IF(mirror_location_mirror_map.location_active='0','DISABLED','ok') as location_active,
mirror_name,
@@ -20,7 +20,7 @@ $stats = db_get("
WHERE
mirror_mirrors.mirror_id = mirror_location_mirror_map.mirror_id AND
mirror_locations.location_id = mirror_location_mirror_map.location_id
-",MYSQL_ASSOC);
+",PDO::FETCH_ASSOC);
$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'location_active';
$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC';
@@ -56,4 +56,4 @@ show_list($stats,$headers,'simple');
echo '<p><a href="./lstats.php?csv=1&amp;sort='.$_GET['sort'].'&amp;order='.$_GET['order'].'">Save this page as CSV &raquo;</a></p>';
require_once(FOOTER);
-?>
+