if ($_REQUEST['pop_type'] == 'edit_template') { if (empty($_REQUEST['edit_id'])) { $message = _("No Device Selected to Edit!") . "!"; if (isset($message)) { $endpoint->display_message_box($message, $endpoint->tpl, 0); } if (isset($error_message)) { $endpoint->display_message_box($error_message, $endpoint->tpl, 1); } } else { $template_editor = TRUE; $sql = "UPDATE endpointman_mac_list SET model = '" . $_REQUEST['model_list'] . "' WHERE id =" . $_REQUEST['edit_id']; $endpoint->db->query($sql); $endpoint->tpl->assign("silent_mode", 1); if ($_REQUEST['template_list'] == 0) { $endpoint->edit_template_display($_REQUEST['edit_id'], 1); } else { $endpoint->edit_template_display($_REQUEST['template_list'], 0); } } } if ($_REQUEST['pop_type'] == 'global_over') { if (isset($_REQUEST['button_update_globals'])) { $_POST['srvip'] = trim($_POST['srvip']); #trim whitespace from IP address $_POST['config_loc'] = trim($_POST['config_loc']); #trim whitespace from Config Location //No trailing slash. Help the user out and add one :-) if ($_POST['config_loc'][strlen($_POST['config_loc']) - 1] != "/") { $_POST['config_loc'] = $_POST['config_loc'] . "/"; }