For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > June 2005 > cvs: php-master-web /manage event.php mirrors.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: php-master-web /manage event.php mirrors.php
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)) {

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com