Revision c07b05e0
Added by Scott Ullrich almost 15 years ago
usr/local/www/diag_tables.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
/* |
3 |
diag_overload_tables.php
|
|
3 |
diag_tables.php |
|
4 | 4 |
Copyright (C) 2010 Jim Pingle |
5 | 5 |
|
6 | 6 |
Portions borrowed from diag_dump_states.php: |
... | ... | |
35 | 35 |
*/ |
36 | 36 |
|
37 | 37 |
##|+PRIV |
38 |
##|*IDENT=page-diagnostics-overload-tables
|
|
39 |
##|*NAME=Diagnostics: PF Overload table IP addresses
|
|
40 |
##|*DESCR=Allow access to the 'Diagnostics: Overload tables' page.
|
|
41 |
##|*MATCH=diag_overload_tables.php*
|
|
38 |
##|*IDENT=page-diagnostics-tables |
|
39 |
##|*NAME=Diagnostics: PF Table IP addresses
|
|
40 |
##|*DESCR=Allow access to the 'Diagnostics: Tables' page.
|
|
41 |
##|*MATCH=diag_tables.php* |
|
42 | 42 |
##|-PRIV |
43 | 43 |
|
44 |
$pgtitle = array(gettext("Diagnostics"), gettext("Overload tables"));
|
|
44 |
$pgtitle = array(gettext("Diagnostics"), gettext("Tables"));
|
|
45 | 45 |
|
46 | 46 |
require_once("guiconfig.inc"); |
47 | 47 |
|
... | ... | |
82 | 82 |
|
83 | 83 |
<script language="javascript"> |
84 | 84 |
function method_change(entrytype) { |
85 |
window.location='diag_overload_tables.php?type=' + entrytype;
|
|
85 |
window.location='diag_tables.php?type=' + entrytype; |
|
86 | 86 |
} |
87 | 87 |
function del_entry(entry) { |
88 |
new Ajax.Request("diag_overload_tables.php?type=<?php echo $tablename;?>&delete=" + entry, {
|
|
88 |
new Ajax.Request("diag_tables.php?type=<?php echo $tablename;?>&delete=" + entry, { |
|
89 | 89 |
onComplete: function(response) { |
90 | 90 |
if (200 == response.status) |
91 | 91 |
new Effect.Fade($(response.responseText), { duration: 1.0 } ); |
... | ... | |
133 | 133 |
|
134 | 134 |
<?php |
135 | 135 |
if($count > 0) |
136 |
echo "<p/>" . gettext("Delete") . " <a href='diag_overload_tables.php?deleteall=true&type={$tablename}'>" . gettext("all") . "</a> " . gettext("entries in this table.");
|
|
136 |
echo "<p/>" . gettext("Delete") . " <a href='diag_tables.php?deleteall=true&type={$tablename}'>" . gettext("all") . "</a> " . gettext("entries in this table."); |
|
137 | 137 |
|
138 | 138 |
?> |
139 | 139 |
|
Also available in: Unified diff
s/overload//