X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/31e315169f2d1fa14aedfbe8b737b4e035795f33..7ccd696a9a83b0bd897d0ae770239c2246e201d3:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 74329ed..833fb8a 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -105,6 +105,10 @@ function render($tplname, $vars = array()) $vars['identity'] = $_SESSION['identity']; $vars['name'] = $_SESSION['name']; $vars['email'] = $_SESSION['email']; + } else if (isset($_COOKIE['lastopenid']) + && !isset($_COOKIE['tried-autologin']) + ) { + $vars['autologin'] = true; } $vars['db'] = new Database(); if (!isset($vars['htmlhelper'])) {