Marius Burkard
2016-04-26 5152e9a75e6e0ed4dc26358e4e608ce684147b32
interface/web/login/index.php
@@ -209,7 +209,8 @@
                  $user = $app->db->toLower($user);
                  
                  if ($loginAs) $oldSession = $_SESSION['s'];
                  if (!$loginAs) session_regenerate_id(true);
                  // Session regenerate causes login problems on some systems, have to find a better way. see Issue #3827
                  //if (!$loginAs) session_regenerate_id(true);
                  $_SESSION = array();
                  if ($loginAs) $_SESSION['s_old'] = $oldSession; // keep the way back!
                  $_SESSION['s']['user'] = $user;
@@ -260,7 +261,7 @@
                     echo 'LOGIN_REDIRECT:'.$_SESSION['s']['module']['startpage'];
                     exit;
                  } else {
                     header('Location: /index.php');
                     header('Location: ../index.php');
                     die();
                  }
               }
@@ -341,7 +342,9 @@
$app->tpl->setVar('base64_logo_txt', $base64_logo_txt);
// Title
$app->tpl->setVar('company_name', $sys_config['company_name']. ' :: ');
if (!empty($sys_config['company_name'])) {
   $app->tpl->setVar('company_name', $sys_config['company_name']. ' :: ');
}
// Custom Login
if ($sys_config['custom_login_text'] != '') {