diff options
author | Brian Evans <grknight@gentoo.org> | 2018-01-30 10:40:48 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-01-30 10:40:48 -0500 |
commit | 9247d5ed38132adb3462f03a0c164761d50be6dd (patch) | |
tree | 2b0a5eaf98f5244d0996b1e1265b1e8766297ca9 /php | |
parent | Remove old db lib backup (diff) | |
download | bouncer-9247d5ed38132adb3462f03a0c164761d50be6dd.tar.gz bouncer-9247d5ed38132adb3462f03a0c164761d50be6dd.tar.bz2 bouncer-9247d5ed38132adb3462f03a0c164761d50be6dd.zip |
update admin/lstats.php
Diffstat (limited to 'php')
-rw-r--r-- | php/admin/lstats.php | 6 |
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&sort='.$_GET['sort'].'&order='.$_GET['order'].'">Save this page as CSV »</a></p>'; require_once(FOOTER); -?> + |