77 Zeilen
Kein EOL
2,4 KiB
PHP
77 Zeilen
Kein EOL
2,4 KiB
PHP
<?php
|
|
/**
|
|
* Project:
|
|
* Contenido Content Management System
|
|
*
|
|
* Description:
|
|
* Contenido main file
|
|
*
|
|
* Requirements:
|
|
* @con_php_req 5.0
|
|
*
|
|
*
|
|
* @package Contenido Backend
|
|
* @version 1.2.2
|
|
* @author Olaf Niemann, Jan Lengowski
|
|
* @copyright four for business AG <www.4fb.de>
|
|
* @license http://www.contenido.org/license/LIZENZ.txt
|
|
* @link http://www.4fb.de
|
|
* @link http://www.contenido.org
|
|
* @since file available since contenido release <= 4.6
|
|
*
|
|
* {@internal
|
|
* created 2003-01-20
|
|
* modified 2008-06-16, Holger Librenz, Hotfix: added check for illegal calling
|
|
* modified 2008-06-25, Timo Trautmann, Contenido Framework Constand added
|
|
* modified 2008-07-02, Frederic Schneider, new code-header and include security_class
|
|
* modified 2009-10-16, Ortwin Pinke, added rewrite of ampersand in frameset url
|
|
* modified 2010-05-20, Murat Purc, standardized Contenido startup and security check invocations, see [#CON-307]
|
|
*
|
|
* $Id$:
|
|
* }}
|
|
*
|
|
*/
|
|
|
|
if (!defined("CON_FRAMEWORK")) {
|
|
define("CON_FRAMEWORK", true);
|
|
}
|
|
|
|
// Contenido startup process
|
|
include_once ('./includes/startup.php');
|
|
|
|
page_open(
|
|
array('sess' => 'Contenido_Session',
|
|
'auth' => 'Contenido_Challenge_Crypt_Auth',
|
|
'perm' => 'Contenido_Perm'));
|
|
|
|
i18nInit($cfg["path"]["contenido"].$cfg["path"]["locale"], $belang);
|
|
|
|
cInclude ("includes", 'cfg_language_de.inc.php');
|
|
cInclude ("includes", 'functions.forms.php');
|
|
|
|
# Create Contenido classes
|
|
$db = new DB_ConLite;
|
|
$tpl = new Template;
|
|
|
|
# Build the Contenido
|
|
# Content area frameset
|
|
$tpl->reset();
|
|
|
|
if (isset($_GET["appendparameters"]))
|
|
{
|
|
$tpl->set('s', 'FRAME[1]', str_replace("&", "&", $sess->url("main.php?area=$area&frame=1&appendparameters=".$_GET["appendparameters"])));
|
|
$tpl->set('s', 'FRAME[2]', str_replace("&", "&", $sess->url("main.php?area=$area&frame=2&appendparameters=".$_GET["appendparameters"])));
|
|
$tpl->set('s', 'FRAME[3]', "templates/standard/template.deco.html");
|
|
} else {
|
|
$tpl->set('s', 'FRAME[1]', str_replace("&", "&", $sess->url("main.php?area=$area&frame=1")));
|
|
$tpl->set('s', 'FRAME[2]', str_replace("&", "&", $sess->url("main.php?area=$area&frame=2")));
|
|
$tpl->set('s', 'FRAME[3]', "templates/standard/template.deco.html");
|
|
}
|
|
|
|
$tpl->set('s', 'VERSION', $cfg['version']);
|
|
$tpl->set('s', 'CONTENIDOPATH', $cfg["path"]["contenido_fullhtml"]."favicon.ico");
|
|
$tpl->generate($cfg['path']['templates'] . $cfg['templates']['frameset_left']);
|
|
|
|
page_close();
|
|
|
|
?>
|