Example #1
0
<?php

require_once '../core/autoload.php';
require_once '../core/config.php';
if (!ae_Security::isLoggedIn()) {
    header('Location: index.php?error=not_logged_in');
    exit;
}
$area = 'dashboard';
if (!isset($_GET['area'])) {
    $area = 'dashboard';
} else {
    if (!ae_Security::isValidArea($_GET['area'])) {
        $msg = sprintf('Area "%s" is not a valid area.', htmlspecialchars($_GET['area']));
        ae_Log::warning($msg);
    } else {
        $area = $_GET['area'];
    }
}
$sb = new ae_SiteBuilder();
include_once 'sb_params.php';
?>
<!DOCTYPE html>

<html>
<?php 
$sb->render('templates/head.php', $paramsHead);
?>
<body>

<?php 
Example #2
0
 public function testMisc()
 {
     $this->assertFalse(ae_Security::getCurrentUserId());
     $this->assertNotEquals(trim(ae_Security::getSessionVerify()), '');
     $this->assertFalse(ae_Security::isLoggedIn());
 }