cvs: phpweb / bugs.php

From: Date: Sun, 14 Jan 2001 05:55:50 +0000
Subject: cvs: phpweb / bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-3419@lists.php.net to get a copy of this message
david Sat Jan 13 21:55:50 2001 EDT Modified files: /phpweb bugs.php Log: if magic cookie set, default to dev edit when looking up bug by number Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.72 phpweb/bugs.php:1.73 --- phpweb/bugs.php:1.72 Sat Jan 13 17:14:12 2001 +++ phpweb/bugs.php Sat Jan 13 21:55:50 2001 @@ -123,7 +123,7 @@ function show_menu($state) { - global $PHP_SELF, $bug_type, $by; + global $PHP_SELF, $bug_type, $by, $MAGIC_COOKIE; if(!isset($bug_type)) { $bug_type="Any"; } echo "<form method=POST action=\"$PHP_SELF\">\n"; @@ -153,7 +153,10 @@ echo "<td colspan=3><input type=text name=\"search_for\"></td></tr></form>\n"; echo "<tr><td colspan=3 align=right><form method=GET action=\"$PHP_SELF\">\n"; echo "<input type='submit' value='Edit'> bug number:</td><td colspan=2><input type='text' name='id'></td>\n"; - echo "<input type='hidden' name='edit' value='2'>\n"; + if (isset($MAGIC_COOKIE)) + echo "<input type='hidden' name='edit' value='1'>\n"; + else + echo "<input type='hidden' name='edit' value='2'>\n"; echo "</td><td><a href=\"bugstats.php\">Statistics</a></td></tr></table>"; echo "<i>Feature/Change requests must be explicitly selected to be shown</i></form>\n"; }

« previous php.mirrors (#3419) next »