svn: /web/php-master/trunk/manage/ event.php mirrors.php users.php
| From: | Rasmus Lerdorf | Date: | Thu, 19 Jan 2012 20:15:16 +0000 |
| Subject: | svn: /web/php-master/trunk/manage/ event.php mirrors.php users.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-12841@lists.php.net to get a copy of this message | ||
rasmus Thu, 19 Jan 2012 20:15:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=322473
Log:
Tweaks for 5.4
Changed paths:
U web/php-master/trunk/manage/event.php
U web/php-master/trunk/manage/mirrors.php
U web/php-master/trunk/manage/users.php
Modified: web/php-master/trunk/manage/event.php
===================================================================
--- web/php-master/trunk/manage/event.php 2012-01-19 17:17:12 UTC (rev 322472)
+++ web/php-master/trunk/manage/event.php 2012-01-19 20:15:16 UTC (rev 322473)
@@ -23,7 +23,9 @@
head("event administration");
db_connect();
-if (isset($id)) $id = (int)$id;
+if (isset($_REQUEST['id'])) $id = (int)$_REQUEST['id'];
+if (isset($_REQUEST['action'])) $action = $_REQUEST['action'];
+if (isset($_REQUEST['in'])) $in = $_REQUEST['in'];
if (isset($id) && isset($action)) {
switch ($action) {
Modified: web/php-master/trunk/manage/mirrors.php
===================================================================
--- web/php-master/trunk/manage/mirrors.php 2012-01-19 17:17:12 UTC (rev 322472)
+++ web/php-master/trunk/manage/mirrors.php 2012-01-19 20:15:16 UTC (rev 322473)
@@ -17,8 +17,14 @@
$lct = db_query("SELECT UNIX_TIMESTAMP(lastchecked) FROM mirrors ORDER BY lastchecked DESC
LIMIT 1");
list($checktime) = mysql_fetch_row($lct);
-if (isset($id)) $id = (int)$id;
+if (isset($_REQUEST['id'])) $id = (int)$_REQUEST['id'];
+$valid_fields = array('hostname', 'mode', 'active',
'mirrortype', 'cname', 'maintainer', 'providername',
'providerurl', 'cc', 'lang', 'has_stats', 'acmt',
'reason');
+
+foreach($valid_fields as $k) {
+ if (isset($_REQUEST[$k])) $$k = $_REQUEST[$k];
+}
+
// We have something to update in the database
if (isset($id) && isset($hostname)) {
Modified: web/php-master/trunk/manage/users.php
===================================================================
--- web/php-master/trunk/manage/users.php 2012-01-19 17:17:12 UTC (rev 322472)
+++ web/php-master/trunk/manage/users.php 2012-01-19 20:15:16 UTC (rev 322473)
@@ -8,6 +8,10 @@
require '../include/email-validation.inc';
define('PHP_SELF', htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES,
'UTF-8'));
+if(!empty($_GET['search'])) $search = $_GET['search'];
+else $search = false;
+if(!empty($username)) $username = $_GET['username'];
+if(!empty($id)) $username = $_GET['username'];
$mailto = "group@php.net";