本文整理汇总了PHP中delete_id函数的典型用法代码示例。如果您正苦于以下问题:PHP delete_id函数的具体用法?PHP delete_id怎么用?PHP delete_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了delete_id函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mark_subsystem_dirty
if ($want_dirty_filter) {
mark_subsystem_dirty('filter');
}
}
header("Location: firewall_nat.php");
exit;
}
}
if (isset($_POST['del_x'])) {
/* delete selected rules */
if (is_array($_POST['rule']) && count($_POST['rule'])) {
foreach ($_POST['rule'] as $rulei) {
$target = $rule['target'];
// Check for filter rule associations
if (isset($a_nat[$rulei]['associated-rule-id'])) {
delete_id($a_nat[$rulei]['associated-rule-id'], $config['filter']['rule']);
mark_subsystem_dirty('filter');
}
unset($a_nat[$rulei]);
}
if (write_config()) {
mark_subsystem_dirty('natconf');
}
header("Location: firewall_nat.php");
exit;
}
}
$closehead = false;
$pgtitle = array(gettext("Firewall"), gettext("NAT"), gettext("Port Forward"));
include "head.inc";
if ($savemsg) {
示例2: save
exit;
}
if (isset($_GET["RuleID"])) {
save();
exit;
}
if (isset($_GET["show-membrs"])) {
group_members_js();
exit;
}
if (isset($_GET["delete-js"])) {
delete_js();
exit;
}
if (isset($_GET["delete-id"])) {
delete_id();
exit;
}
if (isset($_GET["js-groups"])) {
js_group();
exit;
}
table_list();
function delete_id()
{
$sql = "DELETE FROM dansguardian_groups WHERE ID={$_GET["delete-id"]}";
$q = new mysql();
$q->QUERY_SQL($sql, "artica_backup");
}
function delete_js()
{