Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for phpWebFileManager/plugins/auth.php between version 1.2 and 1.3

version 1.2, 2002/10/16 21:19:22 version 1.3, 2003/12/15 13:48:25
Line 1 
Line 1 
 <?php  <?php
   
 /**************************************************************************  /**************************************************************************
  *   *
  * auth.php   * auth.php
  *   *
  * This is a plugin for phpWebFileManager that allows you to restrict   * This is a plugin for phpWebFileManager that allows you to restrict
  * access to phpWebFileManager script using HTTP authentication. Edit   * access to phpWebFileManager script using HTTP authentication. Edit
  * username and password constants below.   * username and password constants below.
  *   *
  **************************************************************************/   **************************************************************************/
   
 /* $Platon: $ */  /* $Platon: phpWebFileManager/plugins/auth.php,v 1.2 2002/10/16 21:19:22 nepto Exp $ */
   
 if (! isset($PHP_AUTH_USER) || ! isset($PHP_AUTH_PW)  if (! isset($PHP_AUTH_USER) || ! isset($PHP_AUTH_PW)
                 || $PHP_AUTH_USER != 'username' || $PHP_AUTH_PW != 'password') {                  || $PHP_AUTH_USER != 'username' || $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');
         echo '<center><h1>Authentication required</h1></center>';          echo '<center><h1>Authentication required</h1></center>';
         exit;          exit;
   
 } else {  } else {
   
         // sucessfully authenticated          // sucessfully authenticated
   
 }  }
   
 ?>  ?>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top