| Rasmus Lerdorf 2005-06-05, 3:56 pm |
| 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-mas...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-mas...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)) {
|