$titleSpan = $template->getSection('TitleSpan'); $main = $template->getSection('Main'); $divDecoration = ''; $mainContent = $template->getSection('LoginForm'); $noLeftNav = $template->getSection('NoLeftNav'); $noRightNav = $template->getSection('NoRightNav'); $navHeader = $template->getSection('NavHeader'); $footer = $template->getSection('Footer'); $topNav = ''; $leftNav = ''; $rightNav = ''; $rightNavLinks = ''; $lowerScripts = $template->getSection('LogoLinkScript'); $pageTitleInfo = ''; $topNavLinks = makeLinks('top', makeTopLinks()); $leftNavLinks = makeLinks('left', makeLeftLinks()); $mediaType = ' media="screen"'; $mainTitle = 'Program O Login'; $FooterInfo = '<p>© 2011-2014 My Program-O<br /><a href="http://www.program-o.com">www.program-o.com</a></p>'; $headerTitle = ''; $pageTitle = 'My-Program O - Login'; $upperScripts = ''; $extraCSS = ''; //if we get to the login page and we are still actually logged in //just destroy the session to prevent weirdness if ($curPage == 'login' && !empty($_SESSION['poadmin']['logged_in'])) { $_SESSION = array(); } $_SESSION['poadmin']['curPage'] = $curPage; $curPage != 'logout' || $curPage == 'login' ? include "{$curPage}.php" : false; $bot_format_link = !empty($bot_format) ? "&format={$bot_format}" : '';
$ip = $_SESSION['poadmin']['ip']; $last = $_SESSION['poadmin']['lastlogin']; $lip = $_SESSION['poadmin']['lip']; $llast = $_SESSION['poadmin']['llastlogin']; $bot_name = $_SESSION['poadmin']['bot_name']; $bot_id = $_SESSION['poadmin']['bot_id']; } } //load shared files require_once _LIB_PATH_ . 'db_functions.php'; require_once _LIB_PATH_ . 'error_functions.php'; require_once _LIB_PATH_ . 'template.class.php'; # Load the template file $thisPath = dirname(__FILE__); $template = new Template("{$thisPath}/default.page.htm"); $leftLinks = makeLeftLinks(); $topLinks = makeTopLinks(); $githubVersion = getCurrentVersion(); $version = $githubVersion == VERSION ? 'Program O version ' . VERSION : 'There is a new version of Program O available. <a href="https://github.com/Program-O/Program-O/archive/master.zip">Click here</a> to download it.'; # set template section defaults # Build page sections # ordered here in the order that the page is constructed $logo = $template->getSection('Logo'); $titleSpan = $template->getSection('TitleSpan'); $main = $template->getSection('Main'); $divDecoration = $template->getSection('DivDecoration'); $mainContent = $template->getSection('LoginForm'); $noLeftNav = $template->getSection('NoLeftNav'); $noRightNav = $template->getSection('NoRightNav'); $navHeader = $template->getSection('NavHeader'); $footer = $template->getSection('Footer');