. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ ##|+PRIV ##|*IDENT=page-services-igmpproxy ##|*NAME=Services: IGMP Proxy ##|*DESCR=Allow access to the 'Services: IGMP Proxy' page. ##|*MATCH=services_igmpproxy.php* ##|-PRIV require_once("guiconfig.inc"); if (!is_array($config['igmpproxy']['igmpentry'])) { $config['igmpproxy']['igmpentry'] = array(); } //igmpproxy_sort(); $a_igmpproxy = &$config['igmpproxy']['igmpentry']; if ($_POST) { $pconfig = $_POST; $retval = 0; /* reload all components that use igmpproxy */ $retval = services_igmpproxy_configure(); if (stristr($retval, "error") <> true) { $savemsg = get_std_save_message($retval); } else { $savemsg = $retval; } clear_subsystem_dirty('igmpproxy'); } if ($_GET['act'] == "del") { if ($a_igmpproxy[$_GET['id']]) { unset($a_igmpproxy[$_GET['id']]); write_config(); mark_subsystem_dirty('igmpproxy'); header("Location: services_igmpproxy.php"); exit; } } $pgtitle = array(gettext("Services"), gettext("IGMP Proxy")); include("head.inc"); if ($savemsg) { print_info_box($savemsg, 'success'); } if (is_subsystem_dirty('igmpproxy')) { print_apply_box(gettext('The IGMP entry list has been changed.') . '
' . gettext('The changes must be applied for them to take effect.')); } ?>