本文整理汇总了PHP中Engine::loadIPList方法的典型用法代码示例。如果您正苦于以下问题:PHP Engine::loadIPList方法的具体用法?PHP Engine::loadIPList怎么用?PHP Engine::loadIPList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine
的用法示例。
在下文中一共展示了Engine::loadIPList方法的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();
}