");
+// }
- private void BlackFooter()
- {
- Out.Write("
diff --git a/Sunfish/Sunfish/SunfishServerProcessor.cs b/Sunfish/Sunfish/SunfishServerProcessor.cs index 5ce5c7b..f458ec0 100644 --- a/Sunfish/Sunfish/SunfishServerProcessor.cs +++ b/Sunfish/Sunfish/SunfishServerProcessor.cs @@ -19,10 +19,9 @@ } private void Process() { - //SunfishService s = Sunfish.GetServiceForPath(Request.Url.LocalPath); + SunfishService s = Sunfish.GetServiceForPath(call.Request.Url.LocalPath); //Response.Headers[HttpResponseHeader.ContentType] = "text/plain"; //call.OpenOutput(); - call.Out.WriteLine("
Sunfish here"); return; //if (s == null) // if (Sunfish.RootMenu) diff --git a/Sunfish/Sunfish/wx/WShared.cs b/Sunfish/Sunfish/wx/WShared.cs index aba0d27..2d5d67d 100644 --- a/Sunfish/Sunfish/wx/WShared.cs +++ b/Sunfish/Sunfish/wx/WShared.cs @@ -1,82 +1,82 @@ -using System.Linq; -using System.Text; +//using System.Linq; +//using System.Text; -namespace DolphinWebXplorer2.wx -{ - public class WShared - { - private string name; - private string path; - private bool enabled; - private bool allowSubfolders; - private bool allowUpload; - private bool allowDeletion; - private bool allowRename; - private bool allowExecution; - private bool allowNewFolder; - private bool sendThumbnails; +//namespace DolphinWebXplorer2.wx +//{ +// public class WShared +// { +// private string name; +// private string path; +// private bool enabled; +// private bool allowSubfolders; +// private bool allowUpload; +// private bool allowDeletion; +// private bool allowRename; +// private bool allowExecution; +// private bool allowNewFolder; +// private bool sendThumbnails; - public WShared() - { - } +// public WShared() +// { +// } - public WShared(string name, string path) - { - this.name = name; - Path = path; - } +// public WShared(string name, string path) +// { +// this.name = name; +// Path = path; +// } - public string GetLocalPath(string path) - { - return this.path + path.Replace('/', System.IO.Path.DirectorySeparatorChar); - } +// public string GetLocalPath(string path) +// { +// return this.path + path.Replace('/', System.IO.Path.DirectorySeparatorChar); +// } - public string GetRemotePath(string path) - { - return '/' + name + '/' + path; - } +// public string GetRemotePath(string path) +// { +// return '/' + name + '/' + path; +// } - public string GetFlags() - { - StringBuilder sb = new StringBuilder(""); - sb.Append(allowSubfolders ? 'S' : '-'); - sb.Append(allowUpload ? 'U' : '-'); - sb.Append(allowDeletion ? 'D' : '-'); - sb.Append(allowRename ? 'R' : '-'); - sb.Append(allowExecution ? 'X' : '-'); - sb.Append(allowNewFolder ? 'F' : '-'); - sb.Append(sendThumbnails ? 'T' : '-'); - return sb.ToString(); - } +// public string GetFlags() +// { +// StringBuilder sb = new StringBuilder(""); +// sb.Append(allowSubfolders ? 'S' : '-'); +// sb.Append(allowUpload ? 'U' : '-'); +// sb.Append(allowDeletion ? 'D' : '-'); +// sb.Append(allowRename ? 'R' : '-'); +// sb.Append(allowExecution ? 'X' : '-'); +// sb.Append(allowNewFolder ? 'F' : '-'); +// sb.Append(sendThumbnails ? 'T' : '-'); +// return sb.ToString(); +// } - public void SetFlags(string flags) - { - allowSubfolders = flags.Contains('S'); - allowUpload = flags.Contains('U'); - allowDeletion = flags.Contains('D'); - allowRename = flags.Contains('R'); - allowExecution = flags.Contains('X'); - allowNewFolder = flags.Contains('F'); - sendThumbnails = flags.Contains('T'); - } - public string Name { get { return name; } set { name = value; } } - public string Path - { - get { return path; } - set - { - path = value; - if (!path.EndsWith("\\")) - path += '\\'; - } - } - public bool Enabled { get { return enabled; } set { enabled = value; } } - public bool AllowSubfolders { get { return allowSubfolders; } set { allowSubfolders = value; } } - public bool AllowUpload { get { return allowUpload; } set { allowUpload = value; } } - public bool AllowDeletion { get { return allowDeletion; } set { allowDeletion = value; } } - public bool AllowRename { get { return allowRename; } set { allowRename = value; } } - public bool AllowExecution { get { return allowExecution; } set { allowExecution = value; } } - public bool AllowNewFolder { get { return allowNewFolder; } set { allowNewFolder = value; } } - public bool SendThumbnails { get { return sendThumbnails; } set { sendThumbnails = value; } } - } -} +// public void SetFlags(string flags) +// { +// allowSubfolders = flags.Contains('S'); +// allowUpload = flags.Contains('U'); +// allowDeletion = flags.Contains('D'); +// allowRename = flags.Contains('R'); +// allowExecution = flags.Contains('X'); +// allowNewFolder = flags.Contains('F'); +// sendThumbnails = flags.Contains('T'); +// } +// public string Name { get { return name; } set { name = value; } } +// public string Path +// { +// get { return path; } +// set +// { +// path = value; +// if (!path.EndsWith("\\")) +// path += '\\'; +// } +// } +// public bool Enabled { get { return enabled; } set { enabled = value; } } +// public bool AllowSubfolders { get { return allowSubfolders; } set { allowSubfolders = value; } } +// public bool AllowUpload { get { return allowUpload; } set { allowUpload = value; } } +// public bool AllowDeletion { get { return allowDeletion; } set { allowDeletion = value; } } +// public bool AllowRename { get { return allowRename; } set { allowRename = value; } } +// public bool AllowExecution { get { return allowExecution; } set { allowExecution = value; } } +// public bool AllowNewFolder { get { return allowNewFolder; } set { allowNewFolder = value; } } +// public bool SendThumbnails { get { return sendThumbnails; } set { sendThumbnails = value; } } +// } +//} diff --git a/Sunfish/Sunfish/wx/WebXplorer.cs b/Sunfish/Sunfish/wx/WebXplorer.cs index ddf6299..5309634 100644 --- a/Sunfish/Sunfish/wx/WebXplorer.cs +++ b/Sunfish/Sunfish/wx/WebXplorer.cs @@ -1,902 +1,902 @@ -using DolphinWebXplorer2.Middleware; -using DolphinWebXplorer2.Properties; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Drawing.Imaging; -using System.IO; -using System.Linq; -using System.Net; -using System.Reflection; -using System.Text; -using System.Windows.Forms; +//using DolphinWebXplorer2.Middleware; +//using DolphinWebXplorer2.Properties; +//using System; +//using System.Collections.Generic; +//using System.Drawing; +//using System.Drawing.Imaging; +//using System.IO; +//using System.Linq; +//using System.Net; +//using System.Reflection; +//using System.Text; +//using System.Windows.Forms; -namespace DolphinWebXplorer2.wx -{ - static class WebXplorer - { - private static List