// assign error messages $tpl->assign('peer_name_err', $peer_name_err, NULL, NULL); $tpl->assign('primary_err', $primary_err, NULL, NULL); $tpl->assign('address_err', $address_err, NULL, NULL); $tpl->assign('port_err', $port_err, NULL, NULL); $tpl->assign('peer_address_err', $peer_address_err, NULL, NULL); $tpl->assign('peer_port_err', $peer_port_err, NULL, NULL); $tpl->assign('max_response_delay_err', $max_response_delay_err, NULL, NULL); $tpl->assign('max_unacked_updates_err', $max_unacked_updates_err, NULL, NULL); $tpl->assign('mclt_err', $mclt_err, NULL, NULL); $tpl->assign('split_err', $split_err, NULL, NULL); $tpl->assign('load_balance_max_seconds_err', $load_balance_max_seconds_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_failover", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL); }
$tpl->assign('bootp_server_err', $val->ValidateXSS($bootp_server_err), NULL, NULL); $tpl->assign('enable_forwarding_err', $enable_forwarding_err, NULL, NULL); $tpl->assign('allow_deny_err', $allow_deny_err, NULL, NULL); $tpl->assign('broadcast_address_err', $broadcast_address_err, NULL, NULL); $tpl->assign('netbios_servers_err', $netbios_servers_err, NULL, NULL); $tpl->assign('ntp_servers_err', $ntp_servers_err, NULL, NULL); $tpl->assign('default_lease_err', $default_lease_err, NULL, NULL); $tpl->assign('max_lease_err', $max_lease_err, NULL, NULL); $tpl->assign('min_lease_err', $min_lease_err, NULL, NULL); $tpl->assign('pools_err', $pools_err, NULL, NULL); $tpl->assign('list_err', $list_err, NULL, NULL); $tpl->assign('select_groups_err', $select_groups_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_pools", $dbconn); $db->dbFixTable("auth_groups_perms", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL);
$tpl->assign('discovery_control', $val->ValidateXSS($discovery_control), NULL, NULL); $tpl->assign('discovery_mcast_addr', $val->ValidateXSS($discovery_mcast_addr), NULL, NULL); // assign error messages $tpl->assign('pxe_enabled_err', $pxe_enabled_err, NULL, NULL); $tpl->assign('option_space_err', $option_space_err, NULL, NULL); $tpl->assign('mtftp_ip_err', $mtftp_ip_err, NULL, NULL); $tpl->assign('mtftp_cport_err', $mtftp_cport_err, NULL, NULL); $tpl->assign('mtftp_sport_err', $mtftp_sport_err, NULL, NULL); $tpl->assign('mtftp_tmout_err', $mtftp_tmout_err, NULL, NULL); $tpl->assign('mtftp_delay_err', $mtftp_delay_err, NULL, NULL); $tpl->assign('discovery_control_err', $discovery_control_err, NULL, NULL); $tpl->assign('discovery_mcast_addr_err', $discovery_mcast_addr_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_pxe_opts", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL); }
} $list .= "</ol>"; $error = $err->GenerateErrorLink("help/help.html", "#import_hosts", $defined['error'], $errors['val_missing'] . $list, NULL, NULL); } } // Assign form variables $tpl->assign('error', $error, NULL, NULL); $tpl->assign('file_name', $val->ValidateXSS($file_name), NULL, NULL); // assign error messages $tpl->assign('file_name_err', $file_name_err, NULL, NULL); // assign vars and call the validation template $tpl->assign('error_template', $tpl->assign('form_data', $form_data, $error_template, $flag), NULL, $flag); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_hosts", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL); }
$tpl->assign('end_err', $end_err, NULL, NULL); $tpl->assign('cltt_err', $cltt_err, NULL, NULL); $tpl->assign('abandoned_err', $abandoned_err, NULL, NULL); $tpl->assign('circut_id_err', $circut_id_err, NULL, NULL); $tpl->assign('remote_id_err', $remote_id_err, NULL, NULL); $tpl->assign('ddns_text_err', $ddns_text_err, NULL, NULL); $tpl->assign('ddns_fwd_name_err', $ddns_fwd_name_err, NULL, NULL); $tpl->assign('ddns_client_fqdn_err', $ddns_client_fqdn_err, NULL, NULL); $tpl->assign('ddns_rev_name_err', $ddns_rev_name_err, NULL, NULL); $tpl->assign('lease_list_err', $lease_list_err, NULL, NULL); $tpl->assign('search_err', $search_err, NULL, NULL); $tpl->assign('select_groups_err', $select_groups_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_leases", $dbconn); $db->dbFixTable("auth_groups_perms", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL);
$tpl->assign('dns_server_list_err', $dns_server_list_err, NULL, NULL); $tpl->assign('default_lease_time_err', $default_lease_time_err, NULL, NULL); $tpl->assign('max_lease_time_err', $max_lease_time_err, NULL, NULL); $tpl->assign('time_offset_err', $time_offset_err, NULL, NULL); $tpl->assign('routers_err', $routers_err, NULL, NULL); $tpl->assign('lpr_server_list_err', $lpr_server_list_err, NULL, NULL); $tpl->assign('broadcast_addr_err', $broadcast_addr_err, NULL, NULL); $tpl->assign('subnet_mask_addr_err', $val->validateXSS($subnet_mask_addr_err), NULL, NULL); $tpl->assign('server_ident_err', $server_ident_err, NULL, NULL); $tpl->assign('ddns_update_style_err', $ddns_update_style_err, NULL, NULL); $tpl->assign('authoritative_err', $authoritative_err, NULL, NULL); $tpl->assign('bootp_err', $bootp_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_global_opts", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL); }
$tpl->assign('user_password_1_err', $user_password_1_err, NULL, NULL); $tpl->assign('user_password_2_err', $user_password_2_err, NULL, NULL); $tpl->assign('user_pw_list_err', $user_pw_list_err, NULL, NULL); $tpl->assign('user_pw_1_err', $user_pw_1_err, NULL, NULL); $tpl->assign('user_pw_2_err', $user_pw_2_err, NULL, NULL); $tpl->assign('user_fname_err', $user_fname_err, NULL, NULL); $tpl->assign('user_lname_err', $user_lname_err, NULL, NULL); $tpl->assign('user_department_err', $user_department_err, NULL, NULL); $tpl->assign('user_contact_err', $user_contact_err, NULL, NULL); $tpl->assign('user_address_err', $user_address_err, NULL, NULL); $tpl->assign('user_phone_err', $user_phone_err, NULL, NULL); $tpl->assign('user_email_err', $user_email_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("auth_users", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL); }
$tpl->assign('group_id', $val->ValidateXSS($group_id), NULL, NULL); $tpl->assign('group_list', $group_list, NULL, NULL); $tpl->assign('group_name', $val->ValidateXSS($group_name), NULL, NULL); $tpl->assign('group_manager', $val->ValidateXSS($group_manager), NULL, NULL); $tpl->assign('group_contact', $val->ValidateXSS($group_contact), NULL, NULL); $tpl->assign('group_description', $val->ValidateXSS($group_description), NULL, NULL); // and the corresponding errors if any $tpl->assign('group_list_err', $group_list_err, NULL, NULL); $tpl->assign('group_name_err', $group_name_err, NULL, NULL); $tpl->assign('group_manager_err', $group_manager_err, NULL, NULL); $tpl->assign('group_contact_err', $group_contact_err, NULL, NULL); $tpl->assign('group_description_err', $group_description_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("auth_groups", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL); }
$tpl->assign('scope_range_2_err', $scope_range_2_err, NULL, NULL); $tpl->assign('bootp_filename_err', $val->ValidateXSS($bootp_filename_err), NULL, NULL); $tpl->assign('bootp_server_err', $val->ValidateXSS($bootp_server_err), NULL, NULL); $tpl->assign('subnets_err', $subnets_err, NULL, NULL); $tpl->assign('enable_forwarding_err', $enable_forwarding_err, NULL, NULL); $tpl->assign('broadcast_address_err', $broadcast_address_err, NULL, NULL); $tpl->assign('netbios_servers_err', $netbios_servers_err, NULL, NULL); $tpl->assign('ntp_servers_err', $ntp_servers_err, NULL, NULL); $tpl->assign('default_lease_err', $default_lease_err, NULL, NULL); $tpl->assign('max_lease_err', $max_lease_err, NULL, NULL); $tpl->assign('min_lease_err', $min_lease_err, NULL, NULL); $tpl->assign('select_groups_err', $select_groups_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_subnets", $dbconn); $db->dbFixTable("conf_hosts", $dbconn); $db->dbFixTable("auth_groups_perms", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack
$tpl->assign('dnssec_enabled_false', $dnssec_enabled_false, NULL, NULL); $tpl->assign('id', $val->ValidateXSS($id), NULL, NULL); $tpl->assign('zone', $val->ValidateXSS($zone), NULL, NULL); $tpl->assign('primary', $val->ValidateXSS($primary), NULL, NULL); $tpl->assign('dnssec_key', $dnssec_key, NULL, NULL); // assign error messages $tpl->assign('dns_opt_err', $dns_opt_err, NULL, NULL); $tpl->assign('dnssec_enabled_err', $dnssec_enabled_err, NULL, NULL); $tpl->assign('zone_err', $zone_err, NULL, NULL); $tpl->assign('primary_err', $primary_err, NULL, NULL); $tpl->assign('file_name_err', $file_name_err, NULL, NULL); $tpl->assign('dnssec_key_err', $dnssec_key_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_dns_opts", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL); }
} if ($return === -1) { $e = "Empty data for processing. An empty data block was found when attempting to write file."; } } $error = $err->GenerateErrorLink("help/help.html", "#build_config", $img, $e, NULL, NULL); } $tpl->assign('error', $error, NULL, NULL); $tpl->assign('disable', $disable, NULL, NULL); $tpl->assign('configdata_html', $configdata_html, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); $misc->CleanUpVars($sql, NULL); $misc->CleanUpVars($results, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_global_opts", $dbconn); $db->dbFixTable("conf_dns_opts", $dbconn); $db->dbFixTable("conf_dnssec_opts", $dbconn); $db->dbFixTable("conf_subnets", $dbconn); $db->dbFixTable("conf_pxe_groups", $dbconn); $db->dbFixTable("conf_hosts", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL);
$tpl->assign('bootp_filename_err', $val->ValidateXSS($bootp_filename_err), NULL, NULL); $tpl->assign('bootp_server_err', $val->ValidateXSS($bootp_server_err), NULL, NULL); $tpl->assign('subnets_err', $subnets_err, NULL, NULL); $tpl->assign('enable_forwarding_err', $enable_forwarding_err, NULL, NULL); $tpl->assign('broadcast_address_err', $broadcast_address_err, NULL, NULL); $tpl->assign('netbios_servers_err', $netbios_servers_err, NULL, NULL); $tpl->assign('ntp_servers_err', $ntp_servers_err, NULL, NULL); $tpl->assign('default_lease_err', $default_lease_err, NULL, NULL); $tpl->assign('max_lease_err', $max_lease_err, NULL, NULL); $tpl->assign('min_lease_err', $min_lease_err, NULL, NULL); $tpl->assign('subnet_checkboxes_err', $subnet_checkboxes_err, NULL, NULL); $tpl->assign('select_groups_err', $select_groups_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_shared_networks", $dbconn); $db->dbFixTable("conf_subnets", $dbconn); $db->dbFixTable("auth_groups_perms", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack
$tpl->assign('classes', $classes, NULL, NULL); $tpl->assign('encoded', $encoded, NULL, NULL); $tpl->assign('form', $form, NULL, NULL); $tpl->assign('count', $count, NULL, NULL); $tpl->assign('select_groups', $select_groups, NULL, NULL); $tpl->assign('ex_group', $val->ValidateXSS($ex_group), NULL, NULL); // assign error messages $tpl->assign('class_name_err', $class_name_err, NULL, NULL); $tpl->assign('class_option_err', $class_option_err, NULL, NULL); $tpl->assign('class_value_err', $class_value_err, NULL, NULL); $tpl->assign('classes_err', $classes_err, NULL, NULL); $tpl->assign('select_groups_err', $select_groups_err, NULL, NULL); // Do some cleaning before leaving $misc->CleanUpVars($_POST, NULL); // Perform analyze, repair and optimize on used tables $db->dbFixTable("conf_classes", $dbconn); $db->dbFixTable("conf_classes_options", $dbconn); $db->dbFixTable("auth_groups_perms", $dbconn); // Free db handle and close connection(s) $db->dbFreeData($dbconn); $db->dbCloseConn($dbconn); } else { // page view restricted by access level $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['level'], NULL, NULL); } } else { // general authentication error $ERROR = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['auth_n'], NULL, NULL); } } else { // Possible XSS attack