本文整理汇总了PHP中Resource::create_sub_menu方法的典型用法代码示例。如果您正苦于以下问题:PHP Resource::create_sub_menu方法的具体用法?PHP Resource::create_sub_menu怎么用?PHP Resource::create_sub_menu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Resource
的用法示例。
在下文中一共展示了Resource::create_sub_menu方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Template
# Webekci Manage Interface
#
# Release Notes:
#
require_once "lib/DB.class.php";
require_once "lib/Template.class.php";
require_once "lib/Domain.class.php";
require_once "lib/Resource.class.php";
require_once "lib/ModSecConfiguration.class.php";
$tmp = new Template();
$pages = array('dmns' => 'domains.tpl', 'mscnf' => 'modsec_conf.tpl', 'dadd' => 'domains_add.tpl', 'cadd' => 'modsec_conf_add.tpl');
$_GET['tab'] ? $sub_menu = $_GET['tab'] : ($sub_menu = 'mscnf');
$_GET['c'] ? $c = $_GET['c'] : ($c = 0);
$_GET['cmd'] ? $cmd = $_GET['cmd'] : ($cmd = '');
$rs = new Resource();
$sub_menus = $rs->create_sub_menu('conf');
$count_menus = count($sub_menus);
$tmp->assign('sub_menus', $sub_menus);
$tmp->assign('select_menu', $c);
$tmp->assign('count_menus', $count_menus);
$db = new DBConnection();
# --------------------------------------------------------------------------
switch ($sub_menu) {
case "dmns":
if ($cmd == 'dadd') {
domain_add($tmp, $pages[$cmd], $_GET['id']);
} elseif ($cmd == 'validity') {
$db->setDomainValidity($_GET['id'], $_GET['v']);
domain_list($tmp, $pages[$sub_menu]);
} elseif ($cmd == 'dinst') {
domain_insert($_POST, $db);
示例2: Template
# Version: 1.0
# Created: 08.05.2008, Bunyamin Demir
#
# Webekci Manage Interface
#
# Release Notes:
#
require_once "lib/DB.class.php";
require_once "lib/Template.class.php";
$tmp = new Template();
$pages = array('wbmng' => 'wb_manage.tpl', 'dbmng' => 'db_manage.tpl', 'cnfmng' => 'conf_manage.tpl', 'inf' => 'inf_manage.tpl');
$_GET['tab'] ? $sub_menu = $_GET['tab'] : ($sub_menu = 'wbmng');
$_GET['c'] ? $c = $_GET['c'] : ($c = 0);
$_GET['cmd'] ? $cmd = $_GET['cmd'] : ($cmd = '');
$rs = new Resource();
$sub_menus = $rs->create_sub_menu('webekci');
$count_menus = count($sub_menus);
$rs = new Resource();
$RS = $rs->enum(array('LIST_MANAGEMENT_TYPE'));
$db = new DBConnection();
$tmp->assign('sub_menus', $sub_menus);
$tmp->assign('select_menu', $c);
$tmp->assign('count_menus', $count_menus);
# --------------------------------------------------------------------------
switch ($sub_menu) {
case "wbmng":
if ($cmd == 'dadd') {
domain_add($tmp, $pages[$cmd], $_GET['id']);
} elseif ($cmd == 'validity') {
$db->setDomainValidity($_GET['id'], $_GET['v']);
domain_list($tmp, $pages[$sub_menu]);
示例3: Template
# Release Notes:
#
require_once "lib/DB.class.php";
require_once "lib/Template.class.php";
require_once "lib/Rule.class.php";
require_once "lib/Domain.class.php";
require_once "lib/Resource.class.php";
require_once "lib/Navigation.class.php";
require_once "lib/ModSecConfiguration.class.php";
$tmp = new Template();
$pages = array('rfile' => 'rule_files.tpl', 'rf_add' => 'rule_files_add.tpl', 'rule' => 'rule.tpl', 'rule_add' => 'rule_add.tpl', 'rdfile' => 'rule_data_files.tpl', 'rdf_add' => 'rule_data_files_add.tpl', 'rdata' => 'rule_data.tpl', 'rd_add' => 'rule_data_add.tpl', 'wlist' => 'white_list.tpl', 'wl_add' => 'white_list_add.tpl');
$_GET['tab'] ? $sub_menu = $_GET['tab'] : ($sub_menu = 'rfile');
$_GET['c'] ? $c = $_GET['c'] : ($c = 0);
$_GET['cmd'] ? $cmd = $_GET['cmd'] : ($cmd = '');
$rs = new Resource();
$sub_menus = $rs->create_sub_menu('rule');
$count_menus = count($sub_menus);
$tmp->assign('sub_menus', $sub_menus);
$tmp->assign('select_menu', $c);
$tmp->assign('count_menus', $count_menus);
$rs = new Resource();
$RS = $rs->enum(array('LIST_WHITE_LIST_TYPE'));
$db = new DBConnection();
# --------------------------------------------------------------------------
switch ($sub_menu) {
case "rfile":
if ($cmd == 'rf_add') {
rule_file_add($tmp, $pages[$cmd], $_GET['id']);
} elseif ($cmd == 'validity') {
$db->setRuleFileValidity($_GET['id'], $_GET['v']);
rule_file_list($tmp, $pages[$sub_menu]);
示例4: Template
#
# Release Notes:
#
require_once "lib/DB.class.php";
require_once "lib/Template.class.php";
require_once "lib/Report.class.php";
require_once "lib/Navigation.class.php";
require_once "lib/Resource.class.php";
require_once "lib/Filter.class.php";
$tmp = new Template();
$pages = array('audit' => 'audit_records.tpl', 'show_det' => 'audit_log_detail.tpl', 'sip' => 'source_ip_report.tpl', 'show_ip' => 'source_ip_detail.tpl', 'severity' => 'severity_dist_report.tpl', 'category' => 'category_dist_report.tpl', 'rule' => 'rule_report.tpl', 'show_rule' => 'rule_detail.tpl');
$_GET['tab'] ? $sub_menu = $_GET['tab'] : ($sub_menu = 'audit');
$_GET['c'] ? $c = $_GET['c'] : ($c = 0);
$_GET['cmd'] ? $cmd = $_GET['cmd'] : ($cmd = '');
$rs = new Resource();
$sub_menus = $rs->create_sub_menu('report');
$count_menus = count($sub_menus);
$tmp->assign('sub_menus', $sub_menus);
$tmp->assign('select_menu', $c);
$tmp->assign('count_menus', $count_menus);
$db = new DBConnection();
$RS = $rs->enum(array('LIST_SEVERITY', 'LIST_CATEGORY', 'LIST_HTTP_METHOD', 'LIST_STATUS', 'LIST_PHASE', 'LIST_HTTP_CODE', 'LIST_HTTP_PROTOCOL', 'LIST_IP'));
# --------------------------------------------------------------------------
switch ($sub_menu) {
case 'audit':
if ($cmd == 'show_det') {
audit_record_details($tmp, $pages[$cmd], $_GET['id']);
} elseif ($cmd == 'ip_block') {
$db->setIpBlock($_GET['ip'], $_GET['v']);
audit_record_details($tmp, $pages['show_det'], $_GET['id']);
} else {
示例5: array
#
# Copyright ..........
# OWASP Foundation bla bla bla...
# All rights reserved.
#
# Version: 1.0
# Created: 11.05.2008, Bunyamin Demir
#
# Logs Interface
#
# Release Notes:
#
$pages = array('glog' => 'guardian_log.tpl', 'elog' => 'error_log.tpl', 'alog' => 'audit_log.tpl', 'lmng' => 'log_management.tpl');
require_once "lib/Template.class.php";
$tmp = new Template();
$_GET['tab'] ? $sub_menu = $_GET['tab'] : ($sub_menu = 'audit');
$_GET['c'] ? $c = $_GET['c'] : ($c = 0);
$_GET['cmd'] ? $cmd = $_GET['cmd'] : ($cmd = '');
$rs = new Resource();
$sub_menus = $rs->create_sub_menu('logs');
$count_menus = count($sub_menus);
//print $sub_menus[$_GET['page']];
$tmp->assign('sub_menus', $sub_menus);
$tmp->assign('select_menu', $c);
$tmp->assign('count_menus', $count_menus);
$tmp->assign('tab_page', $pages[$_GET['tab']]);
print $firstname = $_POST['firstname'];
print $lastname = $_POST['lastname'];
print $email = $_POST['email'];
print $sex = $_POST['sex'];
$tmp->display('logs.tpl');