Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <meta name="description" content="">
- <meta name="author" content="">
- <title>Dashboard</title>
- <!-- Bootstrap core CSS -->
- <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
- <!-- Custom fonts for this template -->
- <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
- <!-- Plugin CSS -->
- <link href="vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">
- <!-- Custom styles for this template -->
- <link href="css/sb-admin.css" rel="stylesheet">
- </head>
- <body class="fixed-nav" id="page-top">
- <%
- //add header to not cache the page as well as revalidate eveytime before providing access
- response.setHeader("Cache-Control", "no-cache,no-store,must-revalidate");
- //check if logged in, else redirect to login page
- if (session.getAttribute("username") == null) {
- out.print("lil");
- response.sendRedirect("index.jsp?login=false");
- return;
- }
- %>
- <jsp:include page="/WEB-INF/partials/header.jsp" />
- <jsp:include page="/WEB-INF/partials/navigation.jsp" />
- //body content here
- <jsp:include page="/WEB-INF/partials/footer.jsp" />
- <%
- //add header to not cache the page as well as revalidate eveytime before providing access
- response.setHeader("Cache-Control", "no-cache,no-store,must-revalidate");
- //check if logged in, else redirect to login page
- if (session.getAttribute("username") == null) {
- out.print("lil");
- response.sendRedirect("index.jsp?login=false");
- return;
- }
- %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement