function saveConfig() { foreach ($this->config_options as $name => $settings) { $si_config = new SI_Config(); $si_config->name = 'cc_processor-' . $GLOBALS['CONFIG']['cc_processor'] . '-' . $name; $si_config->value = $settings['value']; if ($si_config->update() === FALSE) { $this->error = "Error updating configuration parameter: {$si_config->name}\n"; return false; } } }
if($task_statuses === FALSE){ $error_msg .= "Error getting task statuses!\n"; debug_message($task_status->getLastError()); } $title = "Priority & Status Configuration"; if($_POST['save']){ if(is_array($_POST['params'])){ foreach($_POST['params'] as $param_name => $param_value){ if(!empty($param_name)){ $modified_config = new SI_Config(); $modified_config->name = $param_name; $modified_config->value = $param_value; if($modified_config->update() === FALSE){ $error_msg .= "Error updating configuration paramenter: $param_name\n"; debug_message($modified_config->getLastError()); break; } } } } if(empty($error_msg)){ header("Location: ".getCurrentURL()."\r\n"); exit(); } } require('header.php') ?> <form action="<?php