$value) { $config['installedpackages'][$pkg['name']]['config'][$sort_list[$key]]=$current_values[$update_list['ids'][$key]]; } #save current config write_config(); #sync package eval ("{$pkg['custom_php_resync_config_command']}"); } #function called via jquery, no need to continue after save changes. exit; } if ($_GET['act'] == "del") { // loop through our fieldnames and automatically setup the fieldnames // in the environment. ie: a fieldname of username with a value of // testuser would automatically eval $username = "testuser"; foreach ($evaledvar as $ip) { if ($pkg['adddeleteeditpagefields']['columnitem']) { foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) { ${xml_safe_fieldname($column['fielddescr'])} = $ip[xml_safe_fieldname($column['fieldname'])]; } } } $a_pkg = &$config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']; if ($a_pkg[$_GET['id']]) { unset($a_pkg[$_GET['id']]); write_config(); if ($pkg['custom_delete_php_command'] != "") { if ($pkg['custom_php_command_before_form'] != "") { eval($pkg['custom_php_command_before_form']); } eval($pkg['custom_delete_php_command']); } header("Location: pkg.php?xml=" . $xml); exit; } } ob_start(); $iflist = get_configured_interface_with_descr(false, true); $evaledvar = $config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']; if ($pkg['custom_php_global_functions'] != "") { eval($pkg['custom_php_global_functions']); } if ($pkg['custom_php_command_before_form'] != "") { eval($pkg['custom_php_command_before_form']); } $pgtitle = array($pkg['title']); include("head.inc"); ?>
"; echo ""; include("foot.inc"); ?>