Source for file Auth.php
Documentation is available at Auth.php
* Authentication Functions
* @copyright Copyright (c) 2003, 2004 Mirchev Ideas Ltd. All rights reserved.
require_once('../include/miphpf/model/Users.php');
require_once('../include/miphpf/const/Consts.php');
define('MI_SESSION_NAME', 'MIPHPF_SESSION');
# Check if the user is authorized
function isAuthorized($section = 0)
mi_session_name(MI_SESSION_NAME);
if (!array_key_exists('UserID', $_SESSION))
$user->readUser($_SESSION['UserID']);
if ($user->getPrivilege() >= $section)
function getSessionUserID()
return $_SESSION['UserID'];
Documentation generated on Thu, 08 May 2008 16:57:08 +0300 by phpDocumentor 1.4.1