[geeklog-cvs] Auth_Enterprise/doc/examples auth_enterprise.php,NONE,1.1 xmlrpc.php,NONE,1.1

jellybob at iowaoutdoors.org jellybob at iowaoutdoors.org
Thu Jul 8 10:36:19 EDT 2004


Update of /var/cvs/Auth_Enterprise/doc/examples
In directory www:/tmp/cvs-serv31121/doc/examples

Added Files:
	auth_enterprise.php xmlrpc.php 
Log Message:
Major changes to the API everywhere.

The README is currently out of date, to find out how to use the new API
please check doc/examples/

Some features are currently untested, and may not work.


--- NEW FILE: xmlrpc.php ---
<?php
require_once 'Auth/Enterprise/Server/XMLRPCHandler.php';
$handler = new Auth_Enterprise_XMLRPCHandler("DB", array('dsn' => 'mysql://root@localhost/test',
                                                         'appId' => 'testapp'));
?>

--- NEW FILE: auth_enterprise.php ---
<?php
require_once('Auth/Enterprise.php');

$client =& Auth_Enterprise::clientFactory("XmlRpc", array('appId' => 'testapp',
                                                          'debug' => 0,
                                                          'path' => '/~jon/xmlrpc.php',
                                                          'server' => 'localhost'));
/* Uncomment for a Localhost client
$client =& Auth_Enterprise::clientFactory("Localhost", array('appId' => 'testapp',
                                                             'serverProvider' => 'DB',
                                                             'serverOptions' => array('dsn' => 'mysql://root@localhost/test',
                                                                                      'appId' => 'testapp'))
                                         );
*/
var_dump($client->authenticate("test", "test"));
?>




More information about the geeklog-cvs mailing list