cvs: php-master-web /manage event.php mirrors.php
| From: | Rasmus Lerdorf | Date: | Sun, 05 Jun 2005 17:07:39 +0000 |
| Subject: | cvs: php-master-web /manage event.php mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-28354@lists.php.net to get a copy of this message | ||
rasmus Sun Jun 5 13:07:39 2005 EDT
Modified files:
/php-master-web/manage event.php mirrors.php
Log:
2 more
http://cvs.php.net/diff.php/php-master-web/manage/event.php?r1=1.12&r2=1.13&ty=u
Index: php-master-web/manage/event.php
diff -u php-master-web/manage/event.php:1.12 php-master-web/manage/event.php:1.13
--- php-master-web/manage/event.php:1.12 Fri Aug 6 04:54:58 2004
+++ php-master-web/manage/event.php Sun Jun 5 13:07:38 2005
@@ -26,8 +26,9 @@
or die("unable to connect to database");
@mysql_select_db("phpmasterdb");
+if (isset($id)) $id = (int)$id;
+
if (isset($id) && isset($action)) {
- $id = (int)$id;
switch ($action) {
case 'approve':
if (db_query("UPDATE phpcal SET approved=1,app_by='$user' WHERE id=$id")
http://cvs.php.net/diff.php/php-master-web/manage/mirrors.php?r1=1.88&r2=1.89&ty=u
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.88 php-master-web/manage/mirrors.php:1.89
--- php-master-web/manage/mirrors.php:1.88 Sun Jun 5 12:34:02 2005
+++ php-master-web/manage/mirrors.php Sun Jun 5 13:07:38 2005
@@ -15,6 +15,8 @@
$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;
+
// We have something to update in the database
if (isset($id) && isset($hostname)) {