Ejemplo n.º 1
0
<?php

fSession::open();
$authLevel = fAuthorization::getUserAuthLevel();
if ($authLevel == 'guest') {
    exit;
}
$idUser = fSession::get(SESSION_ID_USER);
if (empty($idUser)) {
    header('Location: ' . LOGIN);
}
//if(fAuthorization::checkACL($section,$sub)) echo "si";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0064)http://demo.mariuszboloz.com/joomla/new-business/?ja_color=green -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb">
	<?php 
require_once 'head.php';
?>
	<body id="bd" class="fs3 Moz">
		<div id="loader"><img src="<?php 
echo IMAGES;
?>
loader.gif" style="position:absolute; top:50%; left:50%;" /> <span style="position:absolute; left:46%; top:8%;"><b>Guardando los cambios, espere porfavor.</b></span> </div>
		<div id="ja-wrapper">
			<!-- MAIN NAVIGATION -->
			<div id="ja-mainnav" class="wrap">
				<div class="main clearfix">
					<ul id="ja-cssmenu" class="clearfix">
						<?php 
 public function testUserAuthLevel()
 {
     fAuthorization::setAuthLevels(array('user' => 20, 'admin' => 50));
     fAuthorization::setUserAuthLevel('user');
     $this->assertEquals('user', fAuthorization::getUserAuthLevel());
 }
Ejemplo n.º 3
0
 /**
  * Get user's authentication level, based on fAuthorization.
  * 
  * @return integer 		User's auth level
  */
 public static function getUserAuthLevel()
 {
     return fAuthorization::getUserAuthLevel();
 }