modifiche x completare gestione con DOPPIO auth con rimbalzo

This commit is contained in:
samuele
2012-12-19 19:11:32 +01:00
parent a32e9418a1
commit 6f61359334
17 changed files with 245 additions and 216 deletions
+4 -1
View File
@@ -36,4 +36,7 @@
/project/PrintLocalReport/obj/Release/*
# Equa_Auth
# Equa_Auth
/project/Equa_Auth/obj/Debug/*
/project/Equa_Auth/obj/Release/*
/project/Equa_Auth/obj/EQUA/Package/PackageTmp/*
@@ -75,7 +75,7 @@ namespace Equa_Auth.WebUserControls
if (memLayer.ML.confReadBool("enableCookie"))
{
// elimino eventuali altri cookie x dominio/user/devName
DataWrap.DW.taAnagDev.delByDominioUserDeviceName(dom_user[0], dom_user[1], DeviceName);
//DataWrap.DW.taAnagDev.delByDominioUserDeviceName(dom_user[0], dom_user[1], DeviceName);
// creo nuovo cookie
authProxy.createNewCookie(dom_user[0], dom_user[1], DeviceName, userAgent, IPv4, Page.Request.QueryString["AuthCookie"].ToString(), DateTime.Now.AddDays(memLayer.ML.confReadInt("cookieDayExp")));
}
@@ -218,11 +218,6 @@ namespace Equa_Auth.WebUserControls
bool cookieLogin = false;
if (memLayer.ML.confReadBool("enableCookie"))
{
//string cookieName = memLayer.ML.StringSessionObj("AuthCookie");
//if (cookieName == "")
//{
// cookieName = memLayer.ML.confReadString("AuthCookie");
//}
string cookieName = Page.Request.QueryString["AuthCookie"].ToString();
cookieLogin = authProxy.tryAuthByCookie(cookieName);
}
Binary file not shown.
+2 -1
View File
@@ -15,7 +15,8 @@
</connectionStrings>
-->
<appSettings>
<add key="dominio" value="equa" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="authSite" value="http://10.74.82.218/Equa_Auth/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="currSite" value="http://10.74.82.218/XPS/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_logLevel" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_smtpCli" value="localhost" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=EQUA_XPS;Persist Security Info=True;User id=equa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
+157 -160
View File
@@ -1,36 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!--Area ottimizzazioni FLESK-->
<sectionGroup name="Flesk.NET">
<section name="HttpCompression" type="Flesk.Accelerator.HttpCompression.ConfigHandler, Flesk.Accelerator" />
<section name="ViewStateOptimizer" type="Flesk.Accelerator.Viewstate.ConfigHandler, Flesk.ViewState" />
</sectionGroup>
</configSections>
<Flesk.NET>
<!--Area Compressione-->
<HttpCompression Algorithm="Deflate" CompressionLevel="high" ExcludeContentType="application/x-zip-compressed;image/jpeg;image/png">
<UserAgent Required="false">
<Exclude Match="Google" />
</UserAgent>
<RequestPath>
<Exclude Match="\.axd" />
<Exclude Match="WebResource\.axd" />
<Exclude Match="WebUserControls\WebResource\.axd" />
<Exclude Match="WebResource\.axd" />
<Exclude Match="WebUserControls\WebResource\.axd" />
<Exclude Match="\.asbx" />
<!-- Exclude Microsoft Ajax -->
<Exclude Match="ajax/.+\.ashx" />
</RequestPath>
<ContentType>
<IsText Match="text/.*" />
<IsText Match="application/xml" />
<IsText Match="image/(vnd\.\w+\.)?svg[\-|\+]xml" />
</ContentType>
</HttpCompression>
<!--Area ViewState-->
<!--
<configSections>
<!--Area ottimizzazioni FLESK-->
<sectionGroup name="Flesk.NET">
<section name="HttpCompression" type="Flesk.Accelerator.HttpCompression.ConfigHandler, Flesk.Accelerator" />
<section name="ViewStateOptimizer" type="Flesk.Accelerator.Viewstate.ConfigHandler, Flesk.ViewState" />
</sectionGroup>
</configSections>
<Flesk.NET>
<!--Area Compressione-->
<HttpCompression Algorithm="Deflate" CompressionLevel="high" ExcludeContentType="application/x-zip-compressed;image/jpeg;image/png">
<UserAgent Required="false">
<Exclude Match="Google" />
</UserAgent>
<RequestPath>
<Exclude Match="\.axd" />
<Exclude Match="WebResource\.axd" />
<Exclude Match="WebUserControls\WebResource\.axd" />
<Exclude Match="WebResource\.axd" />
<Exclude Match="WebUserControls\WebResource\.axd" />
<Exclude Match="\.asbx" />
<!-- Exclude Microsoft Ajax -->
<Exclude Match="ajax/.+\.ashx" />
</RequestPath>
<ContentType>
<IsText Match="text/.*" />
<IsText Match="application/xml" />
<IsText Match="image/(vnd\.\w+\.)?svg[\-|\+]xml" />
</ContentType>
</HttpCompression>
<!--Area ViewState-->
<!--
The StorageMethod parameter sets the ViewState's storage type.
Possible values are :
@@ -55,47 +55,41 @@
Compression method is not suported by StorageMethod="Session"
-->
<ViewStateOptimizer PersistenceHandler="MyNamespace.MyViewstatePersister, MyAssembly" StorageMethod="File" StoragePath="~/Logs/ViewStates" ConnectionString="Data Source=t110-win2008r2\sql2008r2;Initial Catalog=GTD_Brembo;Persist Security Info=True;User ID=sa;Password=sa" TableName="app_ViewState" Compressed="true" RequestBehavior="EachLoad" ViewStateCleanupInterval="00:01:00" ViewStateFilesMaxAge="00:01:00" />
</Flesk.NET>
<system.web>
<identity />
<authentication mode="Windows" />
<globalization uiCulture="auto" enableClientBasedCulture="true" />
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<httpHandlers>
<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<httpModules>
<!--Area FLESK-->
<add name="CompressionModule" type="Flesk.Accelerator.Module, Flesk.Accelerator" />
<!--
<ViewStateOptimizer PersistenceHandler="MyNamespace.MyViewstatePersister, MyAssembly" StorageMethod="File" StoragePath="~/Logs/ViewStates" ConnectionString="Data Source=localhost;Initial Catalog=EQUA_XPS;Persist Security Info=True;User ID=sa;Password=sa" TableName="app_ViewState" Compressed="true" RequestBehavior="EachLoad" ViewStateCleanupInterval="00:30:00" ViewStateFilesMaxAge="00:30:00"/>
</Flesk.NET>
<system.web>
<globalization uiCulture="auto" enableClientBasedCulture="true" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
<buildProviders/>
</compilation>
<httpHandlers>
<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<httpModules>
<!--Area FLESK-->
<add name="CompressionModule" type="Flesk.Accelerator.Module, Flesk.Accelerator" />
<!--
This HttpModule provides automatic cleanup of viewstate files
on the start of each session, thus requiring
the SessionStateModule to be installed as well.
-->
<add name="ViewstateCleanupModule" type="Flesk.Accelerator.Viewstate.CleanupModule, Flesk.ViewState" />
</httpModules>
<customErrors mode="Off" />
<!--<customErrors mode="RemoteOnly" defaultRedirect="unauthorized.aspx" />-->
<httpRuntime maxRequestLength="102400" />
<!-- qui sopra configurato x gestire allegati fino a 100 mb...
<add name="ViewstateCleanupModule" type="Flesk.Accelerator.Viewstate.CleanupModule, Flesk.ViewState" />
</httpModules>
<customErrors mode="Off" />
<!--<customErrors mode="RemoteOnly" defaultRedirect="unauthorized.aspx" />-->
<httpRuntime maxRequestLength="102400" />
<!-- qui sopra configurato x gestire allegati fino a 100 mb...
<httpRuntime
maxRequestLength="102400"
executionTimeout="1200"
@@ -104,99 +98,102 @@
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />
-->
</system.web>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true" />
</scripting>
</system.web.extensions>
<appSettings>
<add key="CodModulo" value="XPS" />
<add key="dominio" value="STEAMWAREWIN" />
<add key="_navMaxChar" value="20" />
<!--gestione cookie-->
<add key="enableCookie" value="true" />
<add key="cookieDayExp" value="365" />
<add key="intUpdatePagina_ms" value="120000" />
<add key="_righeDataGrid" value="30" />
<add key="_righeDataGridAnagr" value="20" />
<add key="_righeDataGridLong" value="20" />
<add key="_righeDataGridMed" value="15" />
<add key="_righeDataGridShort" value="10" />
<add key="_fromEmail" value="xps@steamware.net" />
<add key="_logLevel" value="6" />
<add key="_logMaxMb" value="30" />
<add key="_allowForceUser" value="true" />
<add key="_safePages" value="chLang.aspx#jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx" />
<add key="_commonPages" value="menu.aspx" />
<add key="_titoloPagina" value="XPS" />
<add key="titleApp" value="XPS_titleApp" />
<add key="welcomeApp" value="XPS_welcomeApp" />
<add key="appName" value="XPS" />
<add key="mainRev" value="1.3" />
<add key="minRev" value="163" />
<add key="copyRight" value="SteamWare © 2008-2012" />
<add key="defaultApp" value="XPS_Appl" />
<add key="defaultTitle" value="XPS_ShortWelcome" />
<add key="defaultBody" value="XPS_LongWelcome" />
<add key="_treeMaxChar" value="45" />
<add key="_showAllTree" value="false" />
<add key="_jumpStart" value="10" />
<add key="defDayLeadTime" value="3" />
<add key="_adminEmail" value="info@steamware.net" />
<add key="_logDir" value="./logs/" />
<add key="_smtpCli" value="10.74.82.217\SQL2008R2" />
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_XPS_prod;Persist Security Info=True;User id=sa;Password=keyhammer" />
<add key="XPSConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_XPS_prod;Persist Security Info=True;User id=sa;Password=keyhammer" />
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer" />
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer" />
<!--Area barcode-->
<add key="bCodeRetMain" value="bcex" />
<!-- Setup link a reporting -->
<add key="urlReporting" value="http://{0}/ReportServer?/{1}/{2}&amp;rs:Command=Render&amp;rc:Parameters=false&amp;rc:Toolbar=true&amp;IdxObj={3}{4}" />
<!-- NB: "/" == "%2f" -->
<add key="reportingServerAddress" value="10.74.82.217\SQL2008R2" />
<add key="reportDir" value="ReportEqua" />
<add key="reportName_mod" value="ReportSchedaIdentificazione" />
<add key="reportName_lbl" value="LabelEqua" />
<add key="reportOpzPdf" value="&amp;rs:Format=PDF" />
<!--Setup stampa-->
<!--<add key="printerSchedaIdentificazione" value="Brother HL-4050CDN" />-->
<add key="printerSchedaIdentificazione" value="\\Vostro410\PDFCreator" />
<add key="PageWidthSchedaIdentificazione" value="26.5cm" />
<add key="PageHeightSchedaIdentificazione" value="18.6cm" />
<add key="MarginSchedaIdentificazione" value="0.3cm" />
<!--<add key="printerBarcode" value="\\10.74.82.72\Brother QL-560" />-->
<add key="printerBarcode" value="\\Vostro410\PDFCreator" />
<add key="PageWidthBarcode" value="5.4cm" />
<add key="PageHeightBarcode" value="1.7cm" />
<add key="MarginBarcode" value="0.0cm" />
</appSettings>
<connectionStrings>
<add name="XPS_data.Properties.Settings.si_dt30ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS_data\MDB_Data\si_dt30.mdb;Persist Security Info=True" providerName="System.Data.OleDb" />
<add name="XPS_data.Properties.Settings.Equa_AnagraficaConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
<add name="XPS_data.Properties.Settings.Equa_XPSConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_XPS_prod;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="ASBXHandler" verb="GET,HEAD,POST" path="*.asbx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Enterprise.ASPNetHelper" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<codeBase version="8.0.0.0" href="file:///C:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Enterprise.ASPNetHelper.DLL" />
</dependentAssembly>
<!--<dependentAssembly>
</system.web>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true" />
</scripting>
</system.web.extensions>
<appSettings>
<add key="CodModulo" value="XPS" />
<add key="_navMaxChar" value="20" />
<!--gestione cookie-->
<add key="AuthCookie" value="XPS"/>
<add key="enableCookie" value="true" />
<add key="cookieDayExp" value="365" />
<add key ="authSite" value="http://10.74.82.218/Equa_Auth/"/>
<add key ="currSite" value="http://10.74.82.218/XPS/"/>
<!--gestione pagina-->
<add key="intUpdatePagina_ms" value="120000" />
<add key="_righeDataGrid" value="30" />
<add key="_righeDataGridAnagr" value="20" />
<add key="_righeDataGridLong" value="20" />
<add key="_righeDataGridMed" value="15" />
<add key="_righeDataGridShort" value="10" />
<add key="_fromEmail" value="xps@steamware.net" />
<add key="_logDir" value="./logs/"/>
<add key="_logLevel" value="6" />
<add key="_logMaxMb" value="30" />
<add key="_allowForceUser" value="true" />
<add key="_safePages" value="chLang.aspx#jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx" />
<add key="_commonPages" value="menu.aspx" />
<add key="_titoloPagina" value="XPS" />
<add key="titleApp" value="XPS_titleApp" />
<add key="welcomeApp" value="XPS_welcomeApp" />
<add key="appName" value="XPS" />
<add key="mainRev" value="1.3" />
<add key="minRev" value="163" />
<add key="copyRight" value="SteamWare © 2008-2012" />
<add key="defaultApp" value="XPS_Appl" />
<add key="defaultTitle" value="XPS_ShortWelcome" />
<add key="defaultBody" value="XPS_LongWelcome" />
<add key="_treeMaxChar" value="45" />
<add key="_showAllTree" value="false" />
<add key="_jumpStart" value="10" />
<add key="defDayLeadTime" value="3" />
<add key="_adminEmail" value="equa@steamware.net"/>
<add key="_smtpCli" value="keyhammer.ath.cx"/>
<add key="XPSConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_XPS_prod;Persist Security Info=True;User id=sa;Password=keyhammer" />
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_XPS_prod;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer" />
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer" />
<!--Area barcode-->
<add key="bCodeRetMain" value="bcex" />
<!-- Setup link a reporting -->
<add key="urlReporting" value="http://{0}/ReportServer?/{1}/{2}&amp;rs:Command=Render&amp;rc:Parameters=false&amp;rc:Toolbar=true&amp;IdxObj={3}{4}" />
<!-- NB: "/" == "%2f" -->
<add key="reportingServerAddress" value="10.74.82.217\SQL2008R2" />
<add key="reportDir" value="ReportEqua" />
<add key="reportName_mod" value="ReportSchedaIdentificazione" />
<add key="reportName_lbl" value="LabelEqua" />
<add key="reportOpzPdf" value="&amp;rs:Format=PDF" />
<!--Setup stampa-->
<!--<add key="printerSchedaIdentificazione" value="Brother HL-4050CDN" />-->
<add key="printerSchedaIdentificazione" value="\\Vostro410\PDFCreator" />
<add key="PageWidthSchedaIdentificazione" value="26.5cm" />
<add key="PageHeightSchedaIdentificazione" value="18.6cm" />
<add key="MarginSchedaIdentificazione" value="0.3cm" />
<!--<add key="printerBarcode" value="\\10.74.82.72\Brother QL-560" />-->
<add key="printerBarcode" value="\\Vostro410\PDFCreator" />
<add key="PageWidthBarcode" value="5.4cm" />
<add key="PageHeightBarcode" value="1.7cm" />
<add key="MarginBarcode" value="0.0cm" />
</appSettings>
<connectionStrings>
<add name="XPS_data.Properties.Settings.si_dt30ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS_data\MDB_Data\si_dt30.mdb;Persist Security Info=True" providerName="System.Data.OleDb" />
<add name="XPS_data.Properties.Settings.Equa_AnagraficaConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
<add name="XPS_data.Properties.Settings.Equa_XPSConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_XPS_prod;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="ASBXHandler" verb="GET,HEAD,POST" path="*.asbx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Enterprise.ASPNetHelper" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<codeBase version="8.0.0.0" href="file:///C:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Enterprise.ASPNetHelper.DLL" />
</dependentAssembly>
<!--<dependentAssembly>
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
</dependentAssembly>-->
<dependentAssembly>
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<dependentAssembly>
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
+1 -1
View File
@@ -3,7 +3,7 @@
<asp:Panel ID="pnlForceUser" runat="server">
<table width="100%">
<tr>
<td colspan="2" class="chPwdTitle">
<td class="chPwdTitle">
<asp:Label runat="server" ID="lblTitolo" />
</td>
</tr>
@@ -250,7 +250,7 @@ namespace XPS.WebUserControls
bool cookieLogin = false;
if (memLayer.ML.confReadBool("enableCookie"))
{
cookieLogin = authProxy.tryAuthByCookie(memLayer.ML.confReadString("CodModulo"));
cookieLogin = authProxy.tryAuthByCookie(memLayer.ML.confReadString("AuthCookie"));
}
if (!cookieLogin)
{
Binary file not shown.
+14 -6
View File
@@ -1,8 +1,16 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MasterAjax.master" AutoEventWireup="true"
Inherits="login" Title="Login" Codebehind="login.aspx.cs" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="XPS.login" %>
<%@ Register Src="WebUserControls/mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="centerAll">
<uc1:mod_login ID="Mod_login1" runat="server" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<uc1:mod_login ID="mod_login1" runat="server" />
</div>
</asp:Content>
</form>
</body>
</html>
+31 -12
View File
@@ -1,14 +1,13 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SteamWare;
namespace XPS
{
public partial class login : Flesk.Accelerator.Page //System.Web.UI.Page
{
protected string _nextPage
@@ -28,15 +27,34 @@ public partial class login : Flesk.Accelerator.Page //System.Web.UI.Page
{
// pulisco i record di viewstate vecchi...
RemoveViewStateFiles();
// setto modalità login
Mod_login1.modoLogin = SteamWare.loginMode.normale;
// controllo cookie...
bool cookieLogin = false;
if (memLayer.ML.confReadBool("enableCookie"))
{
cookieLogin = authProxy.tryAuthByCookie(memLayer.ML.confReadString("AuthCookie"));
}
if (!cookieLogin)
{
// compongo stringa x sito auth
string authPage = "./unauthorized.aspx";
try
{
authPage = string.Format("{0}login.aspx?AuthCookie={1}&jumpPage={2}", memLayer.ML.confReadString("authSite"), memLayer.ML.confReadString("AuthCookie"), memLayer.ML.confReadString("currSite"));
}
catch
{ }
Response.Redirect(authPage);
}
// setto modalità login
mod_login1.modoLogin = SteamWare.loginMode.normale;
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
Mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok);
Mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error);
mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok);
mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error);
}
void Mod_login1_Login_Error(object sender, EventArgs e)
@@ -51,7 +69,8 @@ public partial class login : Flesk.Accelerator.Page //System.Web.UI.Page
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
Mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok);
Mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error);
mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok);
mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error);
}
}
}
+23 -13
View File
@@ -1,23 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4963
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class login {
namespace XPS {
/// <summary>
/// Mod_login1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_login Mod_login1;
public partial class login {
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// mod_login1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_login mod_login1;
}
}
Binary file not shown.
+2 -1
View File
@@ -15,7 +15,8 @@
</connectionStrings>
-->
<appSettings>
<add key="dominio" value="equa" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="authSite" value="http://10.74.82.218/Equa_Auth/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="currSite" value="http://10.74.82.218/XPST/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_logLevel" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_smtpCli" value="localhost" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=EQUA_XPS;Persist Security Info=True;User id=equa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
+9 -14
View File
@@ -1,13 +1,4 @@
<?xml version="1.0"?>
<!-- FILE DI CONFIGURAZIONE PER APPLICAZIONI STEAMWARE BREMBO IN LOCALE -->
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!--Area ottimizzazioni FLESK-->
@@ -70,7 +61,7 @@
<globalization uiCulture="auto" enableClientBasedCulture="true"/>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
@@ -105,8 +96,12 @@
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />
-->
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
</system.web>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true" />
</scripting>
</system.web.extensions>
<appSettings>
<add key="CodModulo" value="XPS"/>
<add key="_navMaxChar" value="20"/>
@@ -125,7 +120,7 @@
<add key="_righeDataGridShort" value="10"/>
<add key="_fromEmail" value="xps@steamware.net"/>
<add key="_logDir" value="./logs/"/>
<add key="_logLevel" value="5"/>
<add key="_logLevel" value="6" />
<add key="_logMaxMb" value="30"/>
<add key="_allowForceUser" value="true"/>
<add key="_safePages" value="chLang.aspx#jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx"/>
@@ -162,7 +157,7 @@
<add key="printerBarcode" value="PDFCreator"/>
</appSettings>
<connectionStrings>
<add name="XPS_data.Properties.Settings.si_dt30ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MDB_Data\si_dt30.mdb;Persist Security Info=True" providerName="System.Data.OleDb"/>
<add name="XPS_data.Properties.Settings.si_dt30ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS_data\MDB_Data\si_dt30.mdb;Persist Security Info=True" providerName="System.Data.OleDb" />
<add name="XPS_data.Properties.Settings.Equa_AnagraficaConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>
<add name="XPS_data.Properties.Settings.Equa_XPSConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_XPS_prod;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>
</connectionStrings>
Binary file not shown.
Binary file not shown.
Binary file not shown.