1 |
commit: 9247d5ed38132adb3462f03a0c164761d50be6dd |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 30 15:40:48 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 30 15:40:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/bouncer.git/commit/?id=9247d5ed |
7 |
|
8 |
update admin/lstats.php |
9 |
|
10 |
php/admin/lstats.php | 6 +++--- |
11 |
1 file changed, 3 insertions(+), 3 deletions(-) |
12 |
|
13 |
diff --git a/php/admin/lstats.php b/php/admin/lstats.php |
14 |
index f7f1900..9416eb5 100644 |
15 |
--- a/php/admin/lstats.php |
16 |
+++ b/php/admin/lstats.php |
17 |
@@ -7,7 +7,7 @@ |
18 |
$protect=1; // protect this page |
19 |
require_once('../cfg/init.php'); |
20 |
|
21 |
-$stats = db_get(" |
22 |
+$stats = DB::get(" |
23 |
SELECT |
24 |
IF(mirror_location_mirror_map.location_active='0','DISABLED','ok') as location_active, |
25 |
mirror_name, |
26 |
@@ -20,7 +20,7 @@ $stats = db_get(" |
27 |
WHERE |
28 |
mirror_mirrors.mirror_id = mirror_location_mirror_map.mirror_id AND |
29 |
mirror_locations.location_id = mirror_location_mirror_map.location_id |
30 |
-",MYSQL_ASSOC); |
31 |
+",PDO::FETCH_ASSOC); |
32 |
|
33 |
$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'location_active'; |
34 |
$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC'; |
35 |
@@ -56,4 +56,4 @@ show_list($stats,$headers,'simple'); |
36 |
echo '<p><a href="./lstats.php?csv=1&sort='.$_GET['sort'].'&order='.$_GET['order'].'">Save this page as CSV »</a></p>'; |
37 |
|
38 |
require_once(FOOTER); |
39 |
-?> |
40 |
+ |