dhcpfilter.php 469 B

1234567891011
  1. <?php
  2. if (! defined("CONFIG")) die("Not defined");
  3. if (isset($_GET['dhcp_enabled'])) { $dhcp_enabled = $_GET["dhcp_enabled"] * 1; }
  4. if (isset($_POST['dhcp_enabled'])) { $dhcp_enabled = $_POST["dhcp_enabled"] * 1; }
  5. if (!isset($dhcp_enabled)) {
  6. if (isset($_SESSION[$page_url]['dhcp_enabled'])) { $dhcp_enabled = $_SESSION[$page_url]['dhcp_enabled']*1; }
  7. }
  8. if (!isset($dhcp_enabled)) { $dhcp_enabled = 0; }
  9. $_SESSION[$page_url]['dhcp_enabled']=$dhcp_enabled;
  10. ?>