diff --git a/SteamWareLib/SteamWare.csproj b/SteamWareLib/SteamWare.csproj index 20c848a..1d9abae 100644 --- a/SteamWareLib/SteamWare.csproj +++ b/SteamWareLib/SteamWare.csproj @@ -33,6 +33,8 @@ false true + + true @@ -405,4 +407,11 @@ + + + + Questo progetto fa riferimento a uno o più pacchetti NuGet che non sono presenti in questo computer. Usare lo strumento di ripristino dei pacchetti NuGet per scaricarli. Per altre informazioni, vedere http://go.microsoft.com/fwlink/?LinkID=322105. Il file mancante è {0}. + + + \ No newline at end of file diff --git a/SteamWareLib/UserPage.cs b/SteamWareLib/UserPage.cs index ba3eb3e..e06c30d 100644 --- a/SteamWareLib/UserPage.cs +++ b/SteamWareLib/UserPage.cs @@ -1,77 +1,77 @@ namespace SteamWare { - /// - /// Base class for every user control in the application, containing some common - /// behaviour and utility methods. - /// It is not meant to be be used directly. - /// - public class UserPage : System.Web.UI.Page - { + /// + /// Base class for every user control in the application, containing some common + /// behaviour and utility methods. + /// It is not meant to be be used directly. + /// + public class UserPage : System.Web.UI.Page + { - /// - /// wrapper traduzione - /// - /// - /// - public string traduci(object lemma) - { - string answ = ""; - if (lemma != null) - { - answ = user_std.UtSn.Traduci(lemma.ToString()); - } - else - { - answ = "--"; - } - return answ; - } - /// - /// indica se i caratteri vadano forzati a maiuscoli - /// - public bool forceUppercase - { - get - { - bool answ = false; - try - { - answ = memLayer.ML.CRB("forceUppercase"); - } - catch - { } - return answ; - } - } - /// - /// determina se l'utente sia abilitato a scrivere nelal pagina corrente (quindi modificare e cancellare...) - /// - public bool isWriteEnabled - { - get - { - return devicesAuthProxy.stObj.isPageWriteEnabled(titolo); - } - } - /// - /// determina se l'utente sia abilitato alla pagina corrente (di base visualizzaizone...) - /// - public bool isPageEnabled - { - get - { - return devicesAuthProxy.stObj.isPageEnabled(titolo); - } - } - /// - /// titolo pagina - /// - public string titolo - { - get - { - return devicesAuthProxy.getPage(Request.Url); - } - } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + string answ = ""; + if (lemma != null) + { + answ = user_std.UtSn.Traduci(lemma.ToString()); + } + else + { + answ = "--"; + } + return answ; } + /// + /// indica se i caratteri vadano forzati a maiuscoli + /// + public bool forceUppercase + { + get + { + bool answ = false; + try + { + answ = memLayer.ML.CRB("forceUppercase"); + } + catch + { } + return answ; + } + } + /// + /// determina se l'utente sia abilitato a scrivere nelal pagina corrente (quindi modificare e cancellare...) + /// + public bool isWriteEnabled + { + get + { + return devicesAuthProxy.stObj.isPageWriteEnabled(titolo); + } + } + /// + /// determina se l'utente sia abilitato alla pagina corrente (di base visualizzaizone...) + /// + public bool isPageEnabled + { + get + { + return devicesAuthProxy.stObj.isPageEnabled(titolo); + } + } + /// + /// titolo pagina + /// + public string titolo + { + get + { + return devicesAuthProxy.getPage(Request.Url); + } + } + } } diff --git a/SteamWareLib/app.config b/SteamWareLib/app.config index 44d9b08..a2a8b42 100644 --- a/SteamWareLib/app.config +++ b/SteamWareLib/app.config @@ -59,34 +59,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -95,6 +71,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SteamWareLib/logger.cs b/SteamWareLib/logger.cs index 932c4cd..9c72253 100644 --- a/SteamWareLib/logger.cs +++ b/SteamWareLib/logger.cs @@ -137,7 +137,7 @@ namespace SteamWare bool needWrite = false; bool fatto = false; // preparo hash redis - string hKey = _testoPre.Replace(":", "_").Replace("/", "_").Replace("#", "_").Replace("|", "_").Replace(" ", "_").Replace("__", "_").Replace("__", "_").Replace("__", "_").Replace("__", "_"); + string hKey = _testoPre.Replace(":", "_").Replace("/", "_").Replace("#", "_").Replace("(", "").Replace(")", "").Replace("|", "_").Replace(" ", "_").Replace("__", "_").Replace("__", "_").Replace("__", "_").Replace("__", "_"); //se troppo lunga trimmo... if (hKey.Length > 100) { diff --git a/SteamWareLib/packages.config b/SteamWareLib/packages.config index 012e1db..96a01e3 100644 --- a/SteamWareLib/packages.config +++ b/SteamWareLib/packages.config @@ -4,9 +4,11 @@ + +