aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorMichaela Brückner <brueckner@data-quest.de>2024-01-02 08:32:34 +0000
committerMichaela Brückner <brueckner@data-quest.de>2024-01-02 08:32:34 +0000
commitb6bdba58a8e090cb144bae382457c2e439d8a72a (patch)
tree39cf8613a72a27eef0caafce856e6ff6e9a7f474 /public
parent89170f146eaab82fa59069a310e25355399e7b7d (diff)
Step 2660 closes #2660
Closes #2660 Merge request studip/studip!2124
Diffstat (limited to 'public')
-rw-r--r--public/index.php44
1 files changed, 1 insertions, 43 deletions
diff --git a/public/index.php b/public/index.php
index c32fe49..2a38355 100644
--- a/public/index.php
+++ b/public/index.php
@@ -59,51 +59,9 @@ if ($auth->is_authenticated() && $user->id != 'nobody') {
closeObject();
include 'lib/seminar_open.php'; // initialise Stud.IP-Session
+$auth->login_if($user->id === 'nobody');
// if new start page is in use, redirect there (if logged in)
if ($auth->is_authenticated() && $user->id != 'nobody') {
header('Location: ' . URLHelper::getURL('dispatch.php/start'));
- die;
}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * * L O G I N - P A G E ( N O B O D Y - U S E R ) * *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-PageLayout::setHelpKeyword("Basis.Startseite"); // set keyword for new help
-PageLayout::setTitle(_("Startseite"));
-Navigation::activateItem('/start');
-PageLayout::setTabNavigation(NULL); // disable display of tabs
-
-// Start of Output
-include 'lib/include/html_head.inc.php'; // Output of html head
-include 'lib/include/header.php';
-
-// Prüfen, ob PortalPlugins vorhanden sind.
-// TODO: Remove for Stud.IP 6.0
-/** @deprecated */
-$portalplugins = PluginEngine::getPlugins('PortalPlugin');
-$layout = $GLOBALS['template_factory']->open('shared/index_box');
-
-$plugin_contents = [];
-foreach ($portalplugins as $portalplugin) {
- $template = $portalplugin->getPortalTemplate();
-
- if ($template) {
- $plugin_contents[] = $template->render(NULL, $layout);
- $layout->clear_attributes();
- }
-}
-
-
-$index_nobody_template = $GLOBALS['template_factory']->open('index_nobody');
-$index_nobody_template->set_attributes([
- 'plugin_contents' => $plugin_contents,
- 'logout' => Request::bool('logout'),
-]);
-
-echo $index_nobody_template->render();
-
-page_close();
-
-include 'lib/include/html_end.inc.php';