cvs: phpweb / bugs.php

From: Date: Sat, 07 Jul 2001 18:57:09 +0000
Subject: cvs: phpweb / bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5294@lists.php.net to get a copy of this message
jimw Sat Jul 7 14:57:09 2001 EDT Modified files: /phpweb bugs.php Log: extract user and pw from magic cookie when set Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.129 phpweb/bugs.php:1.130 --- phpweb/bugs.php:1.129 Sat Jul 7 14:55:38 2001 +++ phpweb/bugs.php Sat Jul 7 14:57:07 2001 @@ -4,6 +4,9 @@ if (isset($save) && isset($pw)) { # non-developers don't have $user set setcookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/'); } +if (isset($MAGIC_COOKIE) && !isset($user) && !isset($pw)) { + list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE)); +} /* See the end of the script for the table layout. */

« previous php.mirrors (#5294) next »