Example #1
0
File: events.php Project: qb90/www
<?php

require_once 'lib/page.php';
$page = new Page();
$page->setTitle('Events');
$page->setImage('cr-m.jpg');
$page->startBody();
?>

<blockquote>
Eleven events are included on the provisional calendar although it is the intention to increase to 12 once all agreements for a new season-opening round have been reached. 
Providing it goes ahead, that would mean 24 races, 12 DHL pole position shootouts and 12 MAC3 contests.
</blockquote>

François Ribeiro, Head of Eurosport Events, the WTCC promoter, said: 
<blockquote>
“The intention is for the calendar to have 12 events but the agreement with the potential new venue is not there yet. Providing all elements of the deal fall into place we hope to announce the final calendar with 12 weekends prior to the Christmas break. Otherwise, we have kept the same venues in a number of key markets that provide the challenge and prestige we crave, plus the variety.”
</blockquote>

<?php 
$page->endBody();
echo $page->render('templ/template.php');
Example #2
0
$Page = new Page();
$FOGCore->getClass('ProcessLogin')->processMainLogin();
if (!in_array($node, array('schemaupdater', 'client')) && !in_array($sub, array('configure', 'authorize')) && ($node == 'logout' || $currentUser == null || !method_exists($currentUser, 'isLoggedIn') || !$currentUser->isLoggedIn())) {
    @session_regenerate_id(true);
    // Hook
    $HookManager->processEvent('LOGOUT', array('user' => &$currentUser));
    // Logout
    if (method_exists($currentUser, 'logout')) {
        $currentUser->logout();
    }
    // Unset session variables
    unset($currentUser, $_SESSION['FOG_USERNAME'], $_SESSION['FOG_USER'], $_SESSION['AllowAJAXTasks']);
    // Show login form
    $Page->setTitle($foglang['Login']);
    $Page->setSecTitle($foglang['ManagementLogin']);
    $Page->startBody();
    $FOGCore->getClass('ProcessLogin')->mainLoginForm();
    $Page->endBody();
    $Page->render();
}
$_SESSION['AllowAJAXTasks'] = true;
$content = $FOGPageManager->render();
$sectionTitle = $FOGPageManager->getFOGPageName();
$pageTitle = $FOGPageManager->getFOGPageTitle();
if ($FOGCore->isAJAXRequest()) {
    print $content;
    exit;
}
$Page->setTitle($pageTitle);
$Page->setSecTitle($sectionTitle);
$Page->startBody();