cvs: phpweb / cal.php

From: Date: Fri, 13 Jul 2001 04:24:03 +0000
Subject: cvs: phpweb / cal.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5529@lists.php.net to get a copy of this message
jacques Fri Jul 13 00:24:03 2001 EDT Modified files: /phpweb cal.php Log: * The "approved by" gets set to the person's cvs username that approved the event, previously was hardcoded to rasmus. --jm Index: phpweb/cal.php diff -u phpweb/cal.php:1.15 phpweb/cal.php:1.16 --- phpweb/cal.php:1.15 Thu Jul 12 23:24:01 2001 +++ phpweb/cal.php Fri Jul 13 00:24:02 2001 @@ -410,7 +410,7 @@ if (verify_password($user,$pw)) { if(isset($HTTP_POST_VARS['Approve_Selected_x']) || isset($HTTP_POST_VARS['Approve_Selected']) || isset($HTTP_POST_VARS['Approve_Selected_y'])) { foreach($entries as $entry=>$val) { - $result = mysql_query("update phpcal set approved=1, app_by='rasmus' where id=$entry"); + $result = mysql_query("update phpcal set approved=1, app_by='$user' where id=$entry"); if(!$result) echo mysql_error(); } }

« previous php.mirrors (#5529) next »