<body id="home" style="background-image:url(<?php echo \Runalyze\Configuration::Design()->backgroundImage(); ?> );"> <div id="flot-loader"></div> <div id="headline"> <span id="menu-link" onclick="$('#headline').toggleClass('menu-expanded');"><i class="fa fa-fw fa-bars"></i></span> <a class="tab logo" href="<?php echo System::getFullDomain(); ?> " title="Runalyze">Runalyze</a> <?php if (SessionAccountHandler::isLoggedIn()) { ?> <a class="tab right" href="login.php?out" title="<?php _e('Logout'); ?> "> <i class="fa fa-fw fa-lg fa-sign-out"></i> <?php _e('Logout'); ?> </a> <?php echo Ajax::window('<a class="tab right b" href="' . ConfigTabs::$CONFIG_URL . '?key=config_tab_account"><i class="fa fa-fw fa-lg fa-user"></i>' . NBSP . SessionAccountHandler::getUsername() . '</a>'); ?> <?php } ?>
/** * Get const for START_TIME * @return int */ public static function getStartTime() { if (defined('START_TIME')) { return START_TIME; } if (Configuration::Data()->startTime() == 0 && SessionAccountHandler::isLoggedIn()) { return self::recalculateStartTime(); } return Configuration::Data()->startTime(); }
* @author Hannes Christiansen <*****@*****.**> * @copyright http://www.runalyze.de/ */ if (!file_exists('data/config.php')) { include 'install.php'; exit; } require 'inc/class.Frontend.php'; $Frontend = new Frontend(true); if (isset($_GET['delete'])) { SessionAccountHandler::logout(); } if (isset($_GET['out'])) { SessionAccountHandler::logout(); } if (!USER_CANT_LOGIN && SessionAccountHandler::isLoggedIn()) { header('Location: index.php'); exit; } $title = 'RUNALYZE - ' . __('Please login'); $tpl = 'tpl.loginWindow.php'; if (isset($_GET['chpw'])) { $tpl = 'tpl.loginWindow.setNewPassword.php'; } if (isset($_GET['activate'])) { $tpl = 'tpl.loginWindow.activateAccount.php'; } if (isset($_GET['delete'])) { $tpl = 'tpl.loginWindow.deleteAccount.php'; } include 'inc/tpl/tpl.installerHeader.php';