本文整理汇总了PHP中module_security::getcred方法的典型用法代码示例。如果您正苦于以下问题:PHP module_security::getcred方法的具体用法?PHP module_security::getcred怎么用?PHP module_security::getcred使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类module_security
的用法示例。
在下文中一共展示了module_security::getcred方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _l
echo _l($link['name']);
?>
</a>
</li>
<?php
}
unset($menu_holder);
unset($menu_type);
unset($current_link);
unset($menu_allow_nesting);
?>
<?php
if (isset($show_quick_search) && $show_quick_search) {
?>
<?php
if (module_security::getcred() && module_security::can_user(module_security::get_loggedin_id(), 'Show Quick Search') && $display_mode != 'mobile') {
if (module_config::c('global_search_focus', 1) == 1) {
module_form::set_default_field('ajax_search_text');
}
?>
<li>
<div id="quick_search_box">
<div id="quick_search_placeholder"><div><?php
_e('Quick Search:');
?>
</div></div>
<input type="text" name="quick_search" id="ajax_search_text" size="10" value="">
<div id="ajax_search_result"></div>
</div>
</li>
<?php
示例2: isset
//<i class="fa fa-home"></i> {page title here}
echo isset($GLOBALS['metis_main_title']) ? $GLOBALS['metis_main_title'] : $page_title;
?>
</h3>
</div>
<!-- /.main-bar -->
</header>
<!-- end header.head -->
</div>
<!-- /#top -->
<?php
if (module_security::getcred()) {
?>
<div id="left">
<div class="media user-media">
<div class="media-body">
<h5 class="media-heading"><?php
$user = module_user::get_user(module_security::get_loggedin_id());
_e('Welcome %s', htmlspecialchars($user['name']));
?>
</h5>
<ul class="list-unstyled user-info">
<li><small><i class="fa fa-user"></i> <a href="<?php
echo module_user::link_open($_SESSION['_user_id']);
?>
示例3: _e
_e('Sorry the captcha code you entered was incorrect. Please <a href="%s" onclick="%s">go back</a> and try again.', '#', 'window.history.go(-1); return false;');
exit;
}
}
module_security::process_password_reset();
}
if (isset($_REQUEST['_process_login'])) {
// check recaptcha
module_security::process_login();
}
if (isset($_REQUEST['_logout'])) {
module_security::logout();
header("Location: index.php");
exit;
}
if (!_UCM_INSTALLED && module_security::getcred()) {
module_security::logout();
}
// wrap the module loading request into an array
// this way we can load multiple modules and pages around eachother.
// awesome.
$inner_content = array();
$page_title_delim = ' » ';
$page_title = '';
$load_modules = isset($_REQUEST['m']) ? $_REQUEST['m'] : false;
$load_pages = isset($_REQUEST['p']) ? $_REQUEST['p'] : false;
if ((!isset($noredirect) || !$noredirect) && !$load_modules && !$load_pages && defined('_CUSTOM_UCM_HOMEPAGE')) {
redirect_browser(_CUSTOM_UCM_HOMEPAGE);
}
if (!is_array($load_modules)) {
$load_modules = array($load_modules);
示例4: getcred
function getcred()
{
return module_security::getcred();
}
示例5: die
$load_page = 'home';
}
}
}
if ($load_page) {
//} && is_file("pages/".$load_page.".php")){
$page = "pages/" . $load_page . ".php";
} else {
$page = 'pages/home.php';
}
// load this particular module so other scripts can access the $module variable.
$module = false;
if (isset($plugins[$load_module])) {
$module =& $plugins[$load_module];
}
if (module_security::getcred() || $load_module == 'setup') {
// handle any form submits for this module.
if (isset($_REQUEST['_process']) && $_REQUEST['_process']) {
if ($module) {
module_debug::log(array('title' => 'Process Post Back', 'file' => 'index.php', 'data' => "_process variable found, passing this through to module: {$load_module}"));
$module->process();
} else {
die('invalid process');
}
}
if ($module && $load_page && is_file("includes/plugin_" . $load_module . "/pages/" . $load_page . ".php")) {
// pull out the module in a local var ready for these pages to use.
$page = "includes/plugin_" . $load_module . "/pages/" . $load_page . ".php";
} else {
if ($load_page) {
// && is_file("pages/".$load_page.".php")){