You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: network.forward.go
    path of file: ./repos/arozos/src
    
    the code of the file until where you have to start completion: package main

import (
	"encoding/json"
	"net/http"
	"strconv"

	prout "imuslab.com/arozos/mod/prouter"
	"imuslab.com/arozos/mod/utils"
)

/*
	Network Forward Interface
	author: tobychui

	This is an interface for providing a web UI for port forwarding to this host
	on different ports. Useful if you need to forward alternative ports for your
	services.
*/

func portForwardInit() {

	//Create database table if not exists
	sysdb.NewTable("portforward")

	//Register modules
	if *allow_upnp {
		//For
    
func portForwardInit() {

	//Create database table if not exists
	sysdb.NewTable("portforward")

	//Register modules
	if *allow_upnp {
		//Forward the previous registered paths
		entries, _ := sysdb.ListTable("portforward")
		for _, keypairs := range entries {
			portNumber, _ := strconv.Atoi(string(keypairs[0]))
			policyName := "Unknown Forward Rule"
			json.Unmarshal(keypairs[1], &policyName)

			//Forward the recorded port
			err := UPNP.ForwardPort(portNumber, policyName)
			if err != nil {
				systemWideLogger.PrintAndLog("UpnP", "Port Fordware Failed: "+err.Error()+". Skipping "+policyName, err)
			}

		}

		//Create a setting interface for port forward
		router := prout.NewModuleRouter(prout.RouterOption{
			ModuleName:  "System Setting",
			AdminOnly:   false,
			UserHandler: userHandler,
			DeniedHandler: func(w http.ResponseWriter, r *http.Request) {
				utils.SendErrorResponse(w, "Permission Denied")
			},
		})

		registerSetting(settingModule{
			Name:     "Port Forward",
			Desc:     "UPnP based port forwarding",
			IconPath: "SystemAO/network/img/portforward.png",
			Group:    "Network",
			StartDir: "SystemAO/network/portforward.html",
		})

		router.HandleFunc("/system/network/portforward", portforward_handleForward)
	}
}