[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/ -> class.auth_http.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare API - Auth from HTTP                                          *
   4      * This file written by Dan Kuykendall <seek3r@phpgroupware.org>            *
   5      * and Joseph Engo <jengo@phpgroupware.org>                                 *
   6      * Authentication based on HTTP auth                                        *
   7      * Copyright (C) 2000, 2001 Dan Kuykendall                                  *
   8      * ------------------------------------------------------------------------ *
   9      * This library is part of the eGroupWare API                               *
  10      * http://www.egroupware.org/api                                            *
  11      * ------------------------------------------------------------------------ *
  12      * This library is free software; you can redistribute it and/or modify it  *
  13      * under the terms of the GNU Lesser General Public License as published by *
  14      * the Free Software Foundation; either version 2.1 of the License,         *
  15      * or any later version.                                                    *
  16      * This library is distributed in the hope that it will be useful, but      *
  17      * WITHOUT ANY WARRANTY; without even the implied warranty of               *
  18      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
  19      * See the GNU Lesser General Public License for more details.              *
  20      * You should have received a copy of the GNU Lesser General Public License *
  21      * along with this library; if not, write to the Free Software Foundation,  *
  22      * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            *
  23      \**************************************************************************/
  24  
  25      /* $Id: class.auth_http.inc.php 20295 2006-02-15 12:31:25Z  $ */
  26  
  27      class auth_
  28      {
  29          var $previous_login = -1;
  30  
  31  		function authenticate($username, $passwd)
  32          {
  33              if (isset($_SERVER['PHP_AUTH_USER']))
  34              {
  35                  return True;
  36              }
  37              else
  38              {
  39                  return False;
  40              }
  41          }
  42  
  43  		function change_password($old_passwd, $new_passwd)
  44          {
  45              return False;
  46          }
  47      }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7