From 7507d9ed4e1983baa3f24410eba055850c2caa11 Mon Sep 17 00:00:00 2001 From: ja Date: Fri, 27 Aug 2021 16:10:54 +0200 Subject: [PATCH] Login System wurde eingebaut. Dazu wurden das neue Icon erstellt und eingebunden --- Customers/CustomerIndex.aspx.vb | 11 ++++ Customers/Customers.master | 14 ++--- images/Icons/main/back_arrow_.png | Bin 0 -> 510 bytes login/LogOut.aspx | 90 ++++++++++++++++++++++++++++++ login/LogOut.aspx.vb | 12 ++++ login/Loggedin.aspx | 29 ++++------ login/login_FLEX.aspx | 6 +- newpageJulius_Sidebar.aspx | 2 +- 8 files changed, 134 insertions(+), 30 deletions(-) create mode 100644 images/Icons/main/back_arrow_.png create mode 100644 login/LogOut.aspx create mode 100644 login/LogOut.aspx.vb diff --git a/Customers/CustomerIndex.aspx.vb b/Customers/CustomerIndex.aspx.vb index 55ce019..cb1a8e9 100644 --- a/Customers/CustomerIndex.aspx.vb +++ b/Customers/CustomerIndex.aspx.vb @@ -1,5 +1,16 @@  Partial Class Kundenbereich_Default Inherits System.Web.UI.Page + Protected Sub LogOutBtn1_Click(sender As Object, e As EventArgs) + FormsAuthentication.SignOut() + Session.Abandon() + Response.Redirect("../newpageJulius_Sidebar.aspx", True) + End Sub + Protected Sub LogOutBtn2_Click(sender As Object, e As EventArgs) + + FormsAuthentication.SignOut() + Session.Abandon() + Response.Redirect("../newpageJulius_Sidebar.aspx", True) + End Sub End Class diff --git a/Customers/Customers.master b/Customers/Customers.master index fea0d2b..11ede6b 100644 --- a/Customers/Customers.master +++ b/Customers/Customers.master @@ -335,8 +335,8 @@ -
  • - +
  • Logout
  • + @@ -380,7 +380,7 @@
  • - /><%=strENlang %> + /><%=strENlang%> ' If laenderkuerzel = "yu" %>
  • @@ -441,7 +441,7 @@ -
  • +
  • Logout
  • @@ -460,10 +460,10 @@ /><%=stringDE%> /><%=stringTR%> - /><%=stringEN%> + /><%=stringEN%> /><%=stringBIH%> /><%=stringSRB%> - /><%=stringBG%> + /><%=strBGlang %> @@ -509,6 +509,6 @@ $('#sidebar').toggleClass('active'); }); }); - + diff --git a/images/Icons/main/back_arrow_.png b/images/Icons/main/back_arrow_.png new file mode 100644 index 0000000000000000000000000000000000000000..b9e7401c99a9635365d2f4542b5d089562bd267c GIT binary patch literal 510 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=EX7WqAsj$Z!;#Vf&U>cv7h@-A}f&3S>O>_%)r2R1cVuluf$ubU4D<(0mkn=ZUkbUgQv>@AND|1QT^00 + + + + + + + VERAG LogOut + + + + + + + + + + + + + + + + + <%@ import Namespace="MySql.Data.MySqlClient" %> + + + + + + + + + + + + +
    +
    + + Zurück zum Start +
    +
    + + + + + + + + + + + + + + + diff --git a/login/LogOut.aspx.vb b/login/LogOut.aspx.vb new file mode 100644 index 0000000..39a47ca --- /dev/null +++ b/login/LogOut.aspx.vb @@ -0,0 +1,12 @@ + +Partial Class login_LogOut + Inherits System.Web.UI.Page + Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load + Session.Abandon() + FormsAuthentication.SignOut() + Response.Cache.SetCacheability(HttpCacheability.NoCache) + Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1)) + Response.Cache.SetNoStore() + End Sub + +End Class diff --git a/login/Loggedin.aspx b/login/Loggedin.aspx index 8458719..c55d791 100644 --- a/login/Loggedin.aspx +++ b/login/Loggedin.aspx @@ -85,6 +85,10 @@ if (top != self) setInterval("top.location.replace('../admin/admin.aspx')", 1); } + function bust3() { + if (top != self) + setInterval("top.location.replace('../login/LogOut.aspx')", 1); + } @@ -121,27 +125,14 @@ - - - Benutzername: - - - - * - - - - - Kennwort: - - - - * - - + + +
    + + -
    +
    diff --git a/login/login_FLEX.aspx b/login/login_FLEX.aspx index 928074c..cbd69e5 100644 --- a/login/login_FLEX.aspx +++ b/login/login_FLEX.aspx @@ -15,8 +15,8 @@ - - + + + \ No newline at end of file