svn: /web/php-bugs/trunk/www/ admin/index.php
| From: | Philip Olson | Date: | Thu, 11 Mar 2010 21:25:55 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/ admin/index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-7555@lists.php.net to get a copy of this message | ||
philip Thu, 11 Mar 2010 21:25:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296090
Log:
Initial admin that does very little, except show us where bug emails are sent.
Changed paths:
A web/php-bugs/trunk/www/admin/
A web/php-bugs/trunk/www/admin/index.php
Added: web/php-bugs/trunk/www/admin/index.php
===================================================================
--- web/php-bugs/trunk/www/admin/index.php (rev 0)
+++ web/php-bugs/trunk/www/admin/index.php 2010-03-11 21:25:55 UTC (rev 296090)
@@ -0,0 +1,32 @@
+<?php
+require_once '../../include/prepend.php';
+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');
+$action = !empty($_GET['action']) && in_array($_GET['action'],
$actions) ? $_GET['action'] : 'list_lists';
+
+if ($action === 'list_lists') {
+
+ $res = $dbh->query("
+ SELECT name, list_email
+ FROM bugdb_pseudo_packages
+ WHERE project = 'php'
+ ORDER BY list_email
+ ");
+
+ echo "<dl>\n";
+ while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
+ echo "<dt>", $row['name'], ": </dt>\n<dd>",
$row['list_email'], "</dd>\n";
+ }
+ echo "</dl>\n";
+}
+
+response_footer();
Property changes on: web/php-bugs/trunk/www/admin/index.php
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native