当前位置: 首页>>代码示例>>PHP>>正文


PHP module_security::getcred方法代码示例

本文整理汇总了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 
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:design_menu.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']);
                ?>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:design_header.php

示例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 = ' &raquo; ';
$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);
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:init.php

示例4: getcred

function getcred()
{
    return module_security::getcred();
}
开发者ID:sgh1986915,项目名称:php-crm,代码行数:4,代码来源:functions.php

示例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")){
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:index.php


注:本文中的module_security::getcred方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。