Hi Gerard,

You could use php classes ...

eg
<?
if (!class_exists('accessClass')){
        include("/Library/WebServer/Documents/php/access.class") ;
} ;
$access = new accessClass() ;
if ( $access->get('loggedIn' ) ) {
        include("main.php" ) ;
} else {
        header( "Location: login.php" ) ;
} ;
?>


--
Keith Hutchison
http://balance-infosystems.com http://realopen.org
http://www.kasamba.com/Keith-Hutchison
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to