svn: /web/php-bugs/trunk/www/admin/ index.php
| From: | Philip Olson | Date: | Tue, 01 Jun 2010 01:51:16 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/admin/ index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-8272@lists.php.net to get a copy of this message | ||
philip Tue, 01 Jun 2010 01:51:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300019
Log:
Added phpinfo() option, and cleaned up list_lists
Changed paths:
U web/php-bugs/trunk/www/admin/index.php
Modified: web/php-bugs/trunk/www/admin/index.php
===================================================================
--- web/php-bugs/trunk/www/admin/index.php 2010-06-01 01:50:41 UTC (rev 300018)
+++ web/php-bugs/trunk/www/admin/index.php 2010-06-01 01:51:16 UTC (rev 300019)
@@ -3,22 +3,29 @@
session_start();
bugs_authenticate($user, $pw, $logged_in, $is_trusted_developer);
-response_header("Bugs admin suite");
if (!$logged_in) {
response_footer("Please login");
exit;
}
-$actions = array('list_lists');
+$actions = array('list_lists', 'phpinfo');
$action = !empty($_GET['action']) && in_array($_GET['action'],
$actions) ? $_GET['action'] : 'list_lists';
+if ($action === 'phpinfo') {
+ phpinfo();
+ exit;
+}
+
+response_header("Bugs admin suite");
+
if ($action === 'list_lists') {
$res = $dbh->query("
SELECT name, list_email
FROM bugdb_pseudo_packages
WHERE project = 'php'
+ AND LENGTH(list_email) > 0
ORDER BY list_email
");