diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index be047521c..3d627b1dc 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,6 +1,6 @@ - + diff --git a/Duplicati.Library.RestAPI/RESTMethods/SystemInfo.cs b/Duplicati.Library.RestAPI/RESTMethods/SystemInfo.cs index 465396ea9..6c7f37b24 100644 --- a/Duplicati.Library.RestAPI/RESTMethods/SystemInfo.cs +++ b/Duplicati.Library.RestAPI/RESTMethods/SystemInfo.cs @@ -27,7 +27,7 @@ using Duplicati.Library.RestAPI; namespace Duplicati.Server.WebServer.RESTMethods { - public class SystemInfo : IRESTMethodGET, IRESTMethodPOST, IRESTMethodDocumented + public class SystemInfo : IRESTMethodGET, IRESTMethodDocumented { public string Description { get { return "Gets various system properties"; } } public IEnumerable> Types @@ -45,26 +45,6 @@ namespace Duplicati.Server.WebServer.RESTMethods info.BodyWriter.OutputOK(SystemData(info)); } - public void POST(string key, RequestInfo info) - { - switch ((key ?? "").ToLowerInvariant()) - { - case "suppressdonationmessages": - Library.Main.Utility.SuppressDonationMessages = true; - info.OutputOK(); - return; - - case "showdonationmessages": - Library.Main.Utility.SuppressDonationMessages = false; - info.OutputOK(); - return; - - default: - info.ReportClientError("No such action", System.Net.HttpStatusCode.NotFound); - return; - } - } - private static object SystemData(RequestInfo info) { var browserlanguage = RESTHandler.ParseDefaultRequestCulture(info) ?? System.Globalization.CultureInfo.InvariantCulture; @@ -107,7 +87,6 @@ namespace Duplicati.Server.WebServer.RESTMethods ServerModules = Serializable.ServerSettings.ServerModules, UsingAlternateUpdateURLs = Duplicati.Library.AutoUpdater.AutoUpdateSettings.UsesAlternateURLs, LogLevels = Enum.GetNames(typeof(Duplicati.Library.Logging.LogMessageType)), - SuppressDonationMessages = Duplicati.Library.Main.Utility.SuppressDonationMessages, SpecialFolders = from n in SpecialFolders.Nodes select new { ID = n.id, Path = n.resolvedpath }, BrowserLocale = new { diff --git a/Duplicati/CommandLine/CLI/Commands.cs b/Duplicati/CommandLine/CLI/Commands.cs index c8f5c78ee..f209384bc 100644 --- a/Duplicati/CommandLine/CLI/Commands.cs +++ b/Duplicati/CommandLine/CLI/Commands.cs @@ -580,15 +580,6 @@ namespace Duplicati.CommandLine output.MessageEvent(string.Format("Restored {0} ({1}) files to {2}", res.RestoredFiles, Library.Utility.Utility.FormatSizeString(res.SizeOfRestoredFiles), string.IsNullOrEmpty(restorePath) ? "original path" : restorePath)); output.MessageEvent(string.Format("Duration of restore: {0:hh\\:mm\\:ss}", res.Duration)); - if (res.RestoredFiles > 0 && !Library.Main.Utility.SuppressDonationMessages) - { - output.MessageEvent("***********************************************"); - output.MessageEvent("Did we help save your files? If so, please support Duplicati with a donation. We suggest 10€ for private use and 100€ for commercial use."); - output.MessageEvent(""); - output.MessageEvent("https://www.duplicati.com/donate/"); - output.MessageEvent("***********************************************"); - } - if (output.FullResults) Library.Utility.Utility.PrintSerializeObject(res, outwriter); diff --git a/Duplicati/Library/Main/Utility.cs b/Duplicati/Library/Main/Utility.cs index fd5c8de06..afdf638a0 100644 --- a/Duplicati/Library/Main/Utility.cs +++ b/Duplicati/Library/Main/Utility.cs @@ -182,54 +182,6 @@ namespace Duplicati.Library.Main db.SetDbOptions(newDict, transaction); } } - - /// - /// The filename for the marker file that the user can add to suppress donation messages - /// - private const string SUPPRESS_DONATIONS_FILENAME = "suppress_donation_messages.txt"; - - - /// - /// Gets or sets donation message suppression - /// - public static bool SuppressDonationMessages - { - get - { - try - { - var folder = Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), AutoUpdater.AutoUpdateSettings.AppName); - return File.Exists(Path.Combine(folder, SUPPRESS_DONATIONS_FILENAME)); - } - catch - { - } - - return true; - } - set - { - try - { - var folder = Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), AutoUpdater.AutoUpdateSettings.AppName); - if (!Directory.Exists(folder)) - Directory.CreateDirectory(folder); - - var path = Path.Combine(folder, SUPPRESS_DONATIONS_FILENAME); - - if (value) - using(File.OpenWrite(path)) - { - } - else - File.Delete(path); - - } - catch - { - } - } - } } } diff --git a/Duplicati/Server/webroot/ngax/index.html b/Duplicati/Server/webroot/ngax/index.html index 7ddb218ee..5119b6c7e 100755 --- a/Duplicati/Server/webroot/ngax/index.html +++ b/Duplicati/Server/webroot/ngax/index.html @@ -148,11 +148,6 @@ - - -
@@ -253,13 +248,6 @@
-
{{'Visit us on' | translate}}