Code Comments
Programming Forum and web based access to our favorite programming groups.rasmus Sun Jun 5 13:07:39 2005 EDT
Modified files:
/php-master-web/manage event.php mirrors.php
Log:
2 more
[url]http://cvs.php.net/diff.php/php-master-web/manage/event.php?r1=1.12&r2=1.13&ty=u[/
url]
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...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 la
stchecked 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)) {
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.