Project

General

Profile

« Previous | Next » 

Revision f9a91638

Added by Scott Ullrich over 20 years ago

Add new custom_php_command_before_form directive which is handy to setup function evals that can be hooked into throughout the life of a package

View differences:

usr/local/www/pkg_edit.php
65 65
$toeval = "\$a_pkg = &\$config['installedpackages']['" . xml_safe_fieldname($pkg['name']) . "']['config'];";
66 66
eval($toeval);
67 67

  
68
if($pkg['custom_php_command_before_form'] <> "")
69
  eval($pkg['custom_php_command_before_form']);
70

  
71

  
68 72
if ($_POST) {
69 73
	if($_POST['act'] == "del") {
70 74
		if($pkg['custom_delete_php_command']) {

Also available in: Unified diff