[geeklog-cvs] Auth_Enterprise test.php,1.2,1.3
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Thu Jun 17 01:38:32 EDT 2004
Update of /var/cvs/Auth_Enterprise
In directory www:/tmp/cvs-serv6765
Modified Files:
test.php
Log Message:
Added stuff for generating a valid PEAR package XML
Index: test.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/test.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test.php 16 Jun 2004 05:26:55 -0000 1.2
--- test.php 17 Jun 2004 05:38:30 -0000 1.3
***************
*** 1,4 ****
<?php
!
require_once 'Auth_Enterprise/Client/AEClient.class.php';
--- 1,46 ----
<?php
! /*
! require_once 'PEAR/PackageFileManager.php';
! $fm = new PEAR_PackageFileManager();
! $options = array(
! 'packagefile' => 'package2.xml',
! 'state' => 'beta',
! 'version' => '0.1',
! 'filelistgenerator' => 'cvs',
! 'baseinstalldir' => 'Auth_Enterprise',
! 'package' => 'Auth_Enterprise',
! 'summary' => 'summary goes here',
! 'description' => 'description',
! 'doctype' => 'http://pear.php.net/dtd/package-1.0',
! 'packagedirectory' => '/srv/www/htdocs/Auth_Enterprise/',
! 'filelistgenerator' => 'file',
! 'license' => 'PHP License',
! 'changelogoldtonew' => true,
! 'roles' =>
! array(
! 'php' => 'php',
! 'txt' => 'doc',
! '*' => 'data',
! ),
! 'dir_roles' =>
! array(
! 'sql' => 'data',
! 'examples' => 'doc',
! 'tests' => 'test',
! )
! );
! $e = $fm->setOptions($options);
! if (PEAR::isError($e)) {
! echo $e->getMessage();
! die();
! }
! $fm->addMaintainer('tbibbs','lead','Tony Bibbs','tony at geeklog.net');
! $e = $fm->writePackageFile();
! if (PEAR::isError($e)) {
! echo $e->getMessage();
! die();
! }
! exit;
! */
require_once 'Auth_Enterprise/Client/AEClient.class.php';
***************
*** 9,12 ****
--- 51,56 ----
//$userObj = $client->authenticate('root at localhost','foo');
$userObj = $client->authenticate('webmaster at localhost','foo2');
+ echo $userObj->resetPassword();
+ exit;
//print_r($userObj); exit;
$privArray = $userObj->getUserGroupsByAdmin('root at localhost' );
More information about the geeklog-cvs
mailing list