Diff for phpWebFileManager/plugins/auth.php between version 1.3 and 1.4
| version 1.3, 2003/12/15 13:48:25 |
version 1.4, 2005/12/17 09:41:56 |
|
|
| * |
* |
| **************************************************************************/ |
**************************************************************************/ |
| |
|
| /* $Platon: phpWebFileManager/plugins/auth.php,v 1.2 2002/10/16 21:19:22 nepto Exp $ */ |
/* $Platon: phpWebFileManager/plugins/auth.php,v 1.3 2003/12/15 13:48:25 nepto Exp $ */ |
| |
|
| if (! isset($PHP_AUTH_USER) || ! isset($PHP_AUTH_PW) |
if (! isset($_SERVER['PHP_AUTH_USER']) || ! isset($_SERVER['PHP_AUTH_PW']) |
| || $PHP_AUTH_USER != 'username' || $PHP_AUTH_PW != 'password') { |
|| $_SERVER['PHP_AUTH_USER'] != 'username' || $_SERVER['PHP_AUTH_PW'] != 'password') { |
| |
|
| header('WWW-Authenticate: Basic realm="phpWebFileManager authentication"'); |
header('WWW-Authenticate: Basic realm="phpWebFileManager authentication"'); |
| header('HTTP/1.0 401 Unauthorized'); |
header('HTTP/1.0 401 Unauthorized'); |
Platon Group <platon@platon.org> http://platon.org/
|
|