* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ function DelChainForm($table,$chain,$lang) { echo "
" ."" ."" ."" .""; echo "" ."" ."" ."" ."" ."
".strtoupper($lang["delchainheader"])."
".$lang["table"].":$table
".$lang["chain"].":$chain
".$lang["delchainconfirm"]."
" ."
" ."
"; } function DelChain($table,$chain,$lang,$iptables) { $cmd1="$iptables -t $table -F $chain"; exec("sudo $cmd1",$output,$return); $cmd2="$iptables -t $table -X $chain"; exec("sudo ".$cmd2,$output,$return); echo "" .""; if ($return==0) { echo ""; echo ""; } else { echo ""; } echo ""; echo "" ."
".strtoupper($lang["delchainheader"])."
".$lang["success"]."
".$lang["commands"].":
$cmd1
$cmd2
".$lang["command"].":
$cmd2
"; } ?>