<% include("language.html") if _SESSION["logined"] ~= nil and _SESSION["admin_readonly"] == 0 then %> Weblink Manager <% local domain = _GET["domain"] or _POST["domain"] local is_uplink = _GET["is_uplink"] or _POST["is_uplink"] or "0" local count_title = LANG["str_total_download"] local filename_title = LANG["str_filename"] if is_uplink == "1" then count_title = LANG["str_total_upload"] filename_title = LANG["title_directory"] end local strBaseURL = c_GetOptionStr(domain, DOPTION_WEBLINK_URL) if strBaseURL == "" then local listenerlist = c_GetListenerList(domain) for _,listener in pairs(listenerlist) do if type(listener) == "table" and listener["Is_Listening"] == true then if listener["Type"] == "3" or listener["Type"] == "4" then local strPort = ":"..listener["Port"] if listener["Type"] == "3" then strBaseURL = "http://" if listener["Port"] == "80" then strPort = "" end else strBaseURL = "https://" if listener["Port"] == "443" then strPort = "" end end if listener["Ip_Address"] == "*" then strBaseURL = strBaseURL.."127.0.0.1" else strBaseURL = strBaseURL..listener["Ip_Address"] end strBaseURL = strBaseURL..strPort.."/" break end end end end %>
<%=LANG["str_domain"]%>:<%=specialhtml_encode(unescape(_GET["domain"]))%>
<%=LANG["title_id"]%> <%=LANG["str_weblink"]%> <%=LANG["title_username"]%> <%=LANG["str_modify_date"]%> <%=filename_title%> <%=count_title%> <%=LANG["str_expired"]%>  
 
<% else print("") print("") end %>