#!/usr/local/bin/php "") { header("Location: pkg_edit.php?xml=" . $xml); } $package_name = $pkg['menu'][0]['name']; $section = $pkg['menu'][0]['section']; $config_path = $pkg['configpath']; $title = $section . ": " . $package_name; $toeval = "\$evaledvar = \$config['installedpackages']['" . xml_safe_fieldname($pkg['name']) . "']['config'];"; eval($toeval); 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) { $toeval = "\$" . xml_safe_fieldname($column['fielddescr']) . " = " . "\$ip['" . xml_safe_fieldname($column['fieldname']) . "'];"; eval($toeval); } } $toeval = "\$a_pkg = &\$config['installedpackages']['" . xml_safe_fieldname($pkg['name']) . "']['config'];"; eval($toeval); if ($a_pkg[$_GET['id']]) { 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']); } unset($a_pkg[$_GET['id']]); write_config(); header("Location: pkg.php?xml=" . $xml); exit; } } $toeval = "\$evaledvar = \$config['installedpackages']['" . xml_safe_fieldname($pkg['name']) . "']['config'];"; eval($toeval); if($pkg['custom_php_command_before_form'] <> "") eval($pkg['custom_php_command_before_form']); ?> "") $title = $pkg['title']; ?> <?=gentitle_pkg($title);?>

"") $savemsg = $_GET['savemsg']; ?> "") { echo ""; echo ""; echo ""; echo "
"; echo "
    "; foreach($pkg['tabs']['tab'] as $tab) { $active = "tabinact"; if(isset($tab['active'])) $active = "tabact"; $urltmp = ""; $title = $tab['text']; if($tab['url'] <> "") $urltmp = $tab['url']; if($tab['xml'] <> "") $urltmp = "pkg_edit.php?xml=" . $tab['xml']; $toeval = "\$myurl = \"" . getenv("HTTP_HOST") . "\"; \n"; eval($toeval); // eval url so that above $myurl item can be processed if need be. $toeval = "\$url = \"" . $urltmp . "\"; \n"; eval($toeval); if($active == "tabinact") { echo "
  • "; echo ""; echo $title; echo ""; echo "
  • "; } else { echo "
  • "; echo $title; echo "
  • "; } } echo "
"; echo "
"; } ?>
"") { foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) { echo ""; $cols++; } } echo ""; $i=0; if($evaledvar) foreach ($evaledvar as $ip) { echo "\n"; if($pkg['adddeleteeditpagefields']['columnitem'] <> "") foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) { ?> \n"; $i++; } ?>
" . $column['fielddescr'] . "
   
"") { echo "
"; } ?>