Page MenuHomeDevCentral

index.php
No OneTemporary

index.php

This document is not UTF8. It was detected as Shift JIS and converted to UTF8 for display.
<?php
/**
* Keruald, core libraries for Pluton and Xen engines.
* (c) 2010, S饕astien Santoro aka Dereckson, some rights reserved
* Released under BSD license
*
* Application entry point
*
* Keruald is mainly a repository for common libraries elements between
* engines like Pluton (content-oriented site) and Xen (MVC).
*
* You should consider to start with one of those.
*
*/
////////////////////////////////////////////////////////////////////////////////
///
/// Initialization
///
define('IN_KERUALD', true);
define('IN_PLUTON', true);
//Keruald libraries
include('includes/core.php');
//Pluton libraries
include('includes/document.php');
//Site libraries
include('includes/core2.php');
////////////////////////////////////////////////////////////////////////////////
///
/// Session
///
//[TODO] If your session contains classes, and you don't implement __autoload,
//you've to require those items before session_start();
//You can implement this here or in _includes/sessions.php
//Starts a new session or recovers current session
$Session = Session::load();
//Handles login or logout
//include("includes/login.php");
//Gets current user information
$CurrentUser = $Session->get_logged_user();
////////////////////////////////////////////////////////////////////////////////
///
/// Your application initialization logic
///
//[TODO] Loads your template engine or prepares the document to print
//[TODO] Loads languages file if you're into L10n
////////////////////////////////////////////////////////////////////////////////
///
/// Serves the requested page
///
/**
* Forces bare display for broken mobiles
*
* @return true if header and footer must be skipped ; otherwise, false.
*/
function force_bare_display () {
if (strpos($_SERVER["HTTP_USER_AGENT"], " NetFront/") !== false) {
return true;
}
return false;
}
$url = get_current_url();
$document = new Document($url);
if (force_bare_display()) {
$document->noheader = true;
$document->nofooter = true;
}
$document->render();

File Metadata

Mime Type
text/x-php
Expires
Tue, May 13, 16:47 (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2572522
Default Alt Text
index.php (1 KB)

Event Timeline