summaryrefslogtreecommitdiff
path: root/pages/login.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
committerRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
commiteb89b15c0f044673c1206a418a21d0baba1a675e (patch)
tree39ac31a576d8b8392cbd9baf8d67621bf2cefa86 /pages/login.inc
parent5385f0ed8fbb4325203a222a75e6700ffb519349 (diff)
downloadpluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.gz
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.bz2
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.zip
Updated 104 files, added 3 files, deleted 4 files and renamed 36 files (automated)
Diffstat (limited to 'pages/login.inc')
-rw-r--r--pages/login.inc20
1 files changed, 18 insertions, 2 deletions
diff --git a/pages/login.inc b/pages/login.inc
index 8d71574..313be91 100644
--- a/pages/login.inc
+++ b/pages/login.inc
@@ -1,9 +1,25 @@
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages;
-require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $readOnly; global $isNormallyLoggedIn;
+require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; global $readOnly; global $isNormallyLoggedIn;
+if (isset($_GET["return"])) {
+ setcookie("PEH2_RETURN_PAGE", $_GET["return"], 0, "/");
+}
+
+
+if (isset($_GET["mini"])) {
?>
+<style>
+ #navigation-pane, #title-bar, #footer, #titlebar-separator, #mobile-navigation, #global-search-container {
+ display: none !important;
+ }
+
+ body {
+ margin-left: 0 !important;
+ }
+</style>
+<?php } ?>
<br>
<div class="container">
@@ -36,4 +52,4 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $readOnl
</div>
</div>
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.inc'; ?>
+<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/footer.inc'; ?>