[zi-cvs] packages/com.zzoss.zic/inc authentication.php,1.6,1.7
Sandro Zic <[email protected]> Tue, 06 Apr 2004 18:04:24 +0000
| Newsgroups | gmane.comp.php.zzoss.installer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/zzossinstaller/packages/com.zzoss.zic/inc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6210
Modified Files:
authentication.php
Log Message:
fixed bug with different auth session names in win and lin
Index: authentication.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic/inc/authentication.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** authentication.php 6 Apr 2004 14:45:17 -0000 1.6
--- authentication.php 6 Apr 2004 18:04:22 -0000 1.7
***************
*** 39,43 ****
require_once 'Auth/HTTP.php';
! $zi_auth = new Auth_HTTP("File", $GLOBALS['ZI']['installer_data_dir'].".htpasswd");
$zi_auth->setRealm('ZZ/OSS Installer Client (ZIC)');
$zi_auth->setCancelText(zi_cancel_text());
--- 39,46 ----
require_once 'Auth/HTTP.php';
! $options['sessionName'] = 'PEAR_Auth';
! $options['dsn'] = $GLOBALS['ZI']['installer_data_dir'].".htpasswd";
!
! $zi_auth = new Auth_HTTP("File", );
$zi_auth->setRealm('ZZ/OSS Installer Client (ZIC)');
$zi_auth->setCancelText(zi_cancel_text());
***************
*** 49,53 ****
// a dirty hack on checking if user has properly authenticated
// with PEAR::Auth previously
! if(!$_SESSION['/']['registered'] || !isset($_SESSION['/']['username'])){
header('Location: index.php');
exit;
--- 52,56 ----
// a dirty hack on checking if user has properly authenticated
// with PEAR::Auth previously
! if(!$_SESSION['PEAR_Auth']['registered'] || !isset($_SESSION['PEAR_Auth']['username'])){
header('Location: index.php');
exit;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click