[horde] Begin an app with horde: Basic auth needed!
Chuck Hagenbuch
chuck at horde.org
Tue May 20 06:59:19 PDT 2003
Quoting freeze at free.fr:
> Can someone send me a file with such very small piece of code so, I
> can begin to study how thebasic authentification with horde works? I mean
> a file that is nearly independant of any other one but which use the horde
> framework.
Something like this?
<?php
define('HORDE_BASE', '/path/to/your/horde/dir');
require_once HORDE_BASE . '/lib/Auth.php';
require_once HORDE_BASE . '/lib/Registry.php';
// If you don't do this part, you have to make sure that the
// session gets started some other way.
$registry = &Registry::singleton();
if (!Auth::getAuth()) {
exit('no auth');
}
// Rest of page goes here...
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
The alligators were there, too, in a bathtub inside the house.
More information about the horde
mailing list