Beispiel #1
0
        public static string default_domain()
        {
            string str = Ini.getstring(En.default_domain);

            if (str.Length == 0)
            {
                str = Ini.host();
            }
            return(str);
        }
Beispiel #2
0
 public static void page_end(Websvc w)
 {
     Web.wp(w, "<hr>\n");
     if (w.ses != null)
     {
         Web.wp(w, "<p>WEBDAV:\n");
         string str1 = clib.make_url("http", Ini.host(), Ini.getint(En.webdav_port), "/");
         Web.wp(w, "<a href=\"{0}\">{0}</a>", (object)str1);
         Web.wp(w, " or ");
         string str2 = clib.make_url("https", Ini.host(), Ini.getint(En.webdav_port_ssl), "/");
         Web.wp(w, "<a href=\"{0}\">{0}</a>", (object)str2);
         Web.wp(w, "<BR>FTP:\n");
         string str3 = string.Format("ftp://{0}:{1}", (object)Ini.host(), (object)Ini.getint(En.ftp_port));
         Web.wp(w, "<a href=\"{0}\">{0}</a>", (object)str3);
         Web.wp(w, "<BR> Web Browser: ");
         string str4 = Ini.url_browse();
         Web.wp(w, "<a href=\"{0}\">{0}</a>", (object)str4);
         Web.wp(w, " or ");
         string str5 = clib.make_url("https", Ini.host(), Ini.getint(En.web_port_ssl), "/");
         Web.wp(w, "<a href=\"{0}\">{0}</a>", (object)str5);
         Web.wp(w, "<BR> <a href=\"http://netwinsite.com/ftpdav/guide.htm\">Guide to free WebDav/FTP Clients</a>");
     }
     Web.wp(w, "</div>");
 }
Beispiel #3
0
 public static string url_browse()
 {
     return(clib.make_url("http", Ini.host(), Ini.getint(En.web_port), "/"));
 }