setcookie("remember_me", $user_id . "," . $random_password, time() + 60 * 60 * 24 * 14); $messages[] = array("Herzlich willkommen zurück " . $user_data['nickname'] . ".", 1); Message::setMessage($messages); break; } } } } } //load menus if ($GLOBALS['installed']) { $smarty->assign('top_menu', Menus::topMenu()); $smarty->assign('loginOutMenu', Menus::loginOutMenu()); $smarty->assign('normal_menu', Menus::normalMenu()); $smarty->assign('object_menu', Menus::objectMenu()); $smarty->assign('admin_menu', Menus::adminMenu()); $smarty->assign('root_menu', Menus::rootMenu()); $smarty->assign('menu_community_homepage', ConfigLine::configByName('community_homepage')); $smarty->assign('menu_community_homepage_name', ConfigLine::configByName('community_homepage_name')); } else { $smarty->assign('installation_menu', Menus::installationMenu()); } //Give often used variables to smarty $smarty->assign('zeit', date("d.m.Y H:i:s", time()) . " Uhr"); //This is used for redirection after login $current_page = ""; if (isset($_SERVER['REQUEST_URI']) and isset($_SERVER['SERVER_NAME'])) { $current_page = Helper::curPageURL(); } //only take actual site if its not an api site, see http://ticket.freifunk-ol.de/issues/466 if (strpos($current_page, "api") === false) {