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


PHP Engine::loadForbidden方法代码示例

本文整理汇总了PHP中Engine::loadForbidden方法的典型用法代码示例。如果您正苦于以下问题:PHP Engine::loadForbidden方法的具体用法?PHP Engine::loadForbidden怎么用?PHP Engine::loadForbidden使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Engine的用法示例。


在下文中一共展示了Engine::loadForbidden方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: admin

 function admin()
 {
     $this->loadNavigation();
     $arr = array('CONTROLLERS' => '', 'SITE' => Settings::$ENGINE['site'] ? ' checked' : null, 'MULTI_LANG' => Settings::$ENGINE['multiLang'] ? ' checked' : null, 'MASK_URI' => Settings::$ENGINE['maskURI'] ? ' checked' : null, 'useJS' => Settings::$ENGINE['useJS'] ? ' checked' : null);
     $controllers = Engine::loadControllers();
     foreach ($controllers as $c) {
         if ($c['status'] == 0) {
             $c['CL'] = ' selected';
         } else {
             if ($c['status'] == 1) {
                 $c['AD'] = ' selected';
             } else {
                 if ($c['status'] == 2) {
                     $c['OP'] = ' selected';
                 }
             }
         }
         $arr['CONTROLLERS'] .= View::load(array('engine', 'controllerNode'), $c);
     }
     //
     if (Settings::$ENGINE['checkIP'] == 0) {
         $arr['IPN'] = ' selected';
     } else {
         if (Settings::$ENGINE['checkIP'] == 1) {
             $arr['IPR'] = ' selected';
         } else {
             if (Settings::$ENGINE['checkIP'] == 2) {
                 $arr['IPF'] = ' selected';
             }
         }
     }
     $arr['IP_LIST'] = '';
     foreach (Engine::loadIPList() as $val) {
         $arr['IP_LIST'] .= $val['ip'] . "\r\n";
     }
     //
     $arr['F_STUF'] = '';
     foreach (Engine::loadForbidden() as $val) {
         $arr['F_STUF'] .= $val['name'] . '/' . $val['version'] . "\r\n";
     }
     if (Settings::$ENGINE['checkFStuff'] == 0) {
         $arr['SN'] = ' selected';
     } else {
         if (Settings::$ENGINE['checkFStuff'] == 1) {
             $arr['SR'] = ' selected';
         } else {
             if (Settings::$ENGINE['checkFStuff'] == 2) {
                 $arr['SF'] = ' selected';
             }
         }
     }
     //
     $arr['MASK_TABLE'] = View::table(Engine::loadURIMasks(), array('colNames' => array('Ссылка', 'Маска'), 'callback' => function (&$arr) {
         $arr[0] = '<input type="text" value="' . $arr[0] . '" readonly>';
         $arr[1] = '<input type="text" value="' . $arr[1] . '" readonly>';
     }));
     //
     $langs = Engine::getLanguageList();
     $arr['LANGUAGES'] = '';
     foreach ($langs as $val) {
         $arr['LANGUAGES'] .= View::selectOption($val, $val, false, Settings::$ENGINE['default_lang'] == $val ? true : false);
     }
     //
     $templates = scandir(Route::getDir(Settings::$viewsDir));
     $arr['TEMPLATES'] = '';
     foreach ($templates as $val) {
         if (!in_array($val, array('.', '..', 'engine'))) {
             $arr['TEMPLATES'] .= View::selectOption($val, $val, false, Settings::$ENGINE['template'] == $val ? true : false);
         }
     }
     View::loadContent('admin', $arr, 'engine');
     View::render();
 }
开发者ID:pdanver,项目名称:mir-ndv,代码行数:73,代码来源:Administrator.php


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