'', 'status' => ''); // Set up the table in HTML to add the extra config to the page $page_def_extra = "
"; $page_def_extra .= ""; $page_def[] = config_add_html($page_def_extra); // Need to store the updated values to GLOBALS so that the latest values are shown foreach ($page_def as $def) { $array_offset = array(); if (preg_match("/\[[\"|']?\w+[\"|']?\]/", $def[1], $array_offset)) { $array = preg_replace("/\[[\"|']?\w+[\"|']?\]/", "", $def[1]); preg_match("/[\"|']?\w+[\"|']?/", $array_offset[0], $array_offset); } if (!empty($array_offset)) { $curr_post = getval($array, ""); if ($curr_post == "") { continue; } //Ignore if Array already handled or blank foreach ($curr_post as $key => $val) { $config[$array][$key] = explode(',', $val); $GLOBALS[$array][$key] = explode(',', $val); } unset($_POST[$array]); //Unset once array has been handled to prevent duplicate changes } } // Do the page generation ritual -- don't change this section. // Note that config_gen_setup_post() is not used as it cannot process $action_dates_extra_config array //config_gen_setup_post($page_def, $plugin_name); include '../../../include/header.php'; config_gen_setup_html($page_def, $plugin_name, true, $plugin_page_heading); include '../../../include/footer.php';