本文整理匯總了PHP中Rights::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Rights::init方法的具體用法?PHP Rights::init怎麽用?PHP Rights::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Rights
的用法示例。
在下文中一共展示了Rights::init方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Cache
header('Cache-Control: no-cache, must-revalidate');
require_once 'framework/functions/basic.inc.php';
initialize_paths();
require_once 'framework/inc/constants.inc.php';
load('config/config');
load('functions/useful', INC_LOAD);
load('inc/default', INC_LOAD);
load('core/cache');
load('core/errors');
load('core/breadcrumb');
load('core/sessions');
load('builder/form');
load('templates/constructor');
load('lang/lang');
load('db/mysql');
load('members/member');
@(require_once ROOT . 'install/install_delete_dir.php');
$cache = new Cache(false, false);
$bdd = new Bdd();
$sessions = new Sessions();
$member = new Member();
$config = new Config($cache, $member->getDesign(), $member->getLang());
$authorizations = new Rights();
$authorizations->init();
$rights = new Member_rights($member->getId());
$rights->init($config->getInfos('module'), $config->getInfos('page'));
$lang = new Lang('accueil', 'index', $member->getLang());
$breadcrumb = new Breadcrumb();
$tpl = new TemplatesConstructor();
$tpl->init($config);
autoload_libs();