Source for file area51.php
Documentation is available at area51.php
* Test for the LiveUser class
* ===============================
* This example sets up an authorization system using the LiveUser
* class. You don't have to use this to use the LiveUser class(es), but
* this way you don't need to take care of the login-process, storing
* the user object in a session and more...
* This example is intended to be used with the DB_Medium Perm driver.
* @version $Id: area51.php,v 1.2 2004/12/18 21:59:05 lsmith Exp $
// Include configuration.
die ('An unknown error occurred');
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>Example Area51</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
background-color: #CCCCCC;
border-color: 1px solid #000;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #FFFFFF
if (!$LU->isLoggedIn ()) {
include_once 'loginscreen.php';
if (!$LU->checkRight (ACCESS)) {
<p>Hey, this is a top secret area. Access denied.</p>
<p>Live long and prosper, <b> <?php echo $LU->getProperty ('handle'); ?> </b>.</p>
<p>You have access at the necessary level <b> <?php echo $LU->checkRightLevel (ACCESS, 1 , 0 ); ?></b></p>
<p>Please wait ... checking some rights ...<br />
// you can even check multiple rights with one checkright call
<p>OK, you're the boss. Let's take our alien space craft, launch the orbital atomic bombs and kick some ass! ;-)<br />
(Ehm, that was just to test our right system ...)<p>
<p>Don't touch anything!</p>
<p class="center"><a href="area51.php?logout=1">Logout</a></p>
Documentation generated on Mon, 11 Mar 2019 14:16:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|