Update 1.5.0.10
This commit is contained in:
@@ -16,11 +16,19 @@ namespace QW2021C.Menu
|
||||
{
|
||||
try
|
||||
{
|
||||
String Admintest = ConfigurationSettings.AppSettings["Admintest"];
|
||||
if (Admintest=="True")
|
||||
string AutoLogin = ConfigurationSettings.AppSettings["AutoLogin"];
|
||||
if (AutoLogin == "True")
|
||||
{
|
||||
//login("usertest", "usertest");
|
||||
login(ConfigurationSettings.AppSettings["User"], ConfigurationSettings.AppSettings["Password"]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//String Admintest = ConfigurationSettings.AppSettings["Admintest"];
|
||||
//if (Admintest=="True")
|
||||
//{
|
||||
// login(ConfigurationSettings.AppSettings["User"], ConfigurationSettings.AppSettings["Password"]);
|
||||
//}
|
||||
}
|
||||
catch { }
|
||||
|
||||
@@ -41,8 +49,20 @@ namespace QW2021C.Menu
|
||||
Session["Username"] = "";
|
||||
}
|
||||
//if (Session["LoggedIn"].ToString() == "true")
|
||||
//login("a", "a");
|
||||
//login("a", "a");
|
||||
try
|
||||
{
|
||||
if ((Session["LoggedIn"].ToString() == "True") && (Session["Admin"] != "True"))
|
||||
{
|
||||
clsDB xdb = new clsDB();
|
||||
if (xdb.zusammenlegung(Session["Username"].ToString()) > 0)
|
||||
{
|
||||
this.lblHeader3.Text = "Bitte prüfen Sie, ob allfällige Zusammenlegungen von 'Nicht lizenzierten Teilnehmenr' und lizenzierten Teilnehmern möglich sind";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
// If Page.IsPostBack Then Exit Sub
|
||||
@@ -80,6 +100,7 @@ namespace QW2021C.Menu
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void get_menu(string menutype)
|
||||
@@ -157,6 +178,22 @@ namespace QW2021C.Menu
|
||||
protected void Button1_Click(object Sender, Syncfusion.JavaScript.Web.ButtonEventArgs e)
|
||||
{
|
||||
login(this.TxtUsername.Text, this.txtpassword.Text);
|
||||
try
|
||||
{
|
||||
this.lblHeader3.Visible = false;
|
||||
this.HyperLink1.Visible = false;
|
||||
if ((Session["LoggedIn"].ToString() == "True") && (Session["Admin"] != "True"))
|
||||
{
|
||||
clsDB xdb = new clsDB();
|
||||
if (xdb.zusammenlegung(Session["Username"].ToString()) > 0)
|
||||
{
|
||||
this.lblHeader3.Visible = true;
|
||||
this.HyperLink1.Visible = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
public void login(string username, string password)
|
||||
@@ -168,7 +205,7 @@ namespace QW2021C.Menu
|
||||
Session["UserMail"] = "info@shub.ch.ch";
|
||||
Session["UserNachname"] = "Hutter";
|
||||
Session["LoggedIn"] = "True";
|
||||
Session["Admin"] = "True";
|
||||
Session["Admin"] = "True";
|
||||
Session["Menuhandler"] = 11;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user