Location: PHPKode > projects > Webextreme > webextreme/denyfilteredit_post.php
<?php
  require("functions.php");
  if(!check_login())
  {
    header("Location: index.php");
  }

  if($_POST['action'] == $lang['save'])
    {
	$command = "deny add condition=" . $_POST['condition'] . " value=" . $_POST['value'];
    $result = command($command);
    }
  elseif($_POST['action'] == $lang['delete'])
    {
	$command = "deny del condition=" . $_POST['condition'] . " value=" . $_POST['value'];
    $result = command($command);
  	}
  else
  {
    $error['title'] = $lang['error'];
    $error['message'] = $lang['error_reaching_page'];
    $error['back'] = 1;
    require("error.php");
    exit;
  }

  $message = $result[0];

?>
<html>
<head>
<title><?php echo $lang['denyfilter_edit']; ?></title>
<link rel="stylesheet"                  href="style.css">
<meta http-equiv="pragma"               content="no-cache">
<meta http-equiv="content-type"         content="text/html; charset=iso-8859-1">
</head>

<body>

<div align="center">
  <table border="0" bgcolor="black" cellpadding="2" cellspacing="1" width="300">
    <tr>
      <td align="center" bgcolor="white" class="highlight"><?php echo $message; ?></td>
    </tr>
    <tr>
      <td bgcolor="white" align="center"><a href="denyfilterview.php" target="_top"><?php echo $lang['back_to_edit']; ?></a></td>
    </tr>
    
  </table>
</div>

</body>
</html>
Return current item: Webextreme