Source for file front_content_controller.php
Documentation is available at front_content_controller.php
* Mod Rewrite front_content.php controller. Does some preprocessing jobs, tries
* to set following variables, depending on mod rewrite configuration and if
* @author Murat Purc <muratpurc.de>
* @copyright © Murat Purc 2008
defined('CON_FRAMEWORK') or die('Illegal call');
global $client, $changeclient, $cfgClient, $lang, $changelang, $idart, $idcat, $path;
#$aMrCfg = ModRewrite::getConfig();
$oDebug->addDebug(ModRewrite::getConfig(), 'front_content_controller.php mod rewrite config');
// create an mod rewrite controller instance and execute processing
$oMRController->execute();
if ($oMRController->errorOccured()) {
// an error occured (idcat and or idart couldn't catched by controller)
$iRedirToErrPage =
ModRewrite::getConfig('redirect_invalid_article_to_errorsite', 0);
// try to redirect to errorpage if desired
if ($iRedirToErrPage ==
1 && (int)
$client >
0 && (int)
$lang >
0) {
global $errsite_idcat, $errsite_idart;
if ($cfgClient['set'] !=
'set') {
'client' =>
$client, 'idcat' =>
$errsite_idcat[$client], 'idart' =>
$errsite_idart[$client],
'lang' =>
$lang, 'error'=>
'1'
$errsite =
'Location: ' .
str_replace('&', '&', Contenido_Url::getInstance()->build($aParams, true));
// set some global variables
if ($oMRController->getClient()) {
$client =
$oMRController->getClient();
if ($oMRController->getChangeClient()) {
$changeclient =
$oMRController->getChangeClient();
if ($oMRController->getLang()) {
$lang =
$oMRController->getLang();
if ($oMRController->getChangeLang()) {
$changelang =
$oMRController->getChangeLang();
if ($oMRController->getIdArt()) {
$idart =
$oMRController->getIdArt();
if ($oMRController->getIdCat()) {
$idcat =
$oMRController->getIdCat();
if ($oMRController->getPath()) {
$path =
$oMRController->getPath();
$oDebug->addDebug($mr_preprocessedPageError, 'mr $mr_preprocessedPageError', __FILE__
);
$oDebug->addDebug($idart, 'mr $idart', __FILE__
);
$oDebug->addDebug($idcat, 'mr $idcat', __FILE__
);
$oDebug->addDebug($lang, 'mr $lang', __FILE__
);
$oDebug->addDebug($client, 'mr $client', __FILE__
);
Documentation generated on Sun, 08 Feb 2009 22:00:52 +0100 by phpDocumentor 1.4.1