1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00
php-e107/index.php
secretr a2c8e9046e Missing legacy constants in some cases;
Featurebox empty tablerender removed when there are hidden items;
Index page (when set Welcome Message) empty tablerender removed;
2011-12-05 15:12:56 +00:00

68 lines
1.3 KiB
PHP

<?php
/*
* e107 website system
*
* Copyright (C) 2008-2011 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* News frontend
*
* $URL$
* $Id$
*/
// BOOTSTRAP START
define('e_SINGLE_ENTRY', TRUE);
$_E107['single_entry'] = true; // TODO - notify class2.php
define('ROOT', dirname(__FILE__));
set_include_path(ROOT.PATH_SEPARATOR.get_include_path());
require_once("class2.php");
$front = eFront::instance();
$front->init()
->run();
$request = $front->getRequest();
// If not already done - define legacy constants
$request->setLegacyQstring();
$request->setLegacyPage();
$inc = $front->isLegacy();
if($inc)
{
// last chance to set legacy env
$request->populateRequestParams();
if(!is_file($inc) || !is_readable($inc))
{
echo 'Bad request - destination unreachable - '.$inc;
}
include($inc);
exit;
}
$response = $front->getResponse();
if(e_AJAX_REQUEST)
{
$response->setParam('meta', false)
->setParam('render', false)
->send('default', false, true);
exit;
}
$response->sendMeta();
include_once(HEADERF);
eFront::instance()->getResponse()->send('default', false, true);
include_once(FOOTERF);
exit;
// BOOTSTRAP END