Source for file config.plugin.php
Documentation is available at config.plugin.php
* Plugin Advanced Mod Rewrite settings
* @author Murat Purc <murat@purc.de>
* @copyright © Murat Purc 2008
global $cfg, $client, $load_client, $contenido;
if (isset
($client) && (int)
$client >
0) {
$clientId = (int)
$client;
} elseif (isset
($load_client) && (int)
$load_client >
0) {
$clientId = (int)
$load_client;
// Include necessary sources
cInclude('classes', 'Debug/DebuggerFactory.class.php');
cInclude('classes', 'mp/class.mpdebug.php');
plugin_include('mod_rewrite', 'classes/class.modrewrite.php');
plugin_include('mod_rewrite', 'classes/class.modrewritecontroller.php');
plugin_include('mod_rewrite', 'includes/functions.mod_rewrite.php');
cInclude('classes', 'mp/class.confighandler.php');
// set debug configuration
'enable' =>
true, //{%DEPLOY_DEBUG_ENABLE%}
'ressource_urls' =>
array('/contenido/logs/errorlog.txt'),
'dump_super_globals' =>
array('$_GET', '$_POST', '$_COOKIE', '$_SESSION'),
'ignore_empty_superglobals' =>
true
$GLOBALS['mpDebug']->setConfig($options);
// we are in backend, don't register any cec functions and get out here
////////////////////////////////////////////////////////////////////////////////////////////////
$_cecRegistry =
cApiCECRegistry::getInstance();
// Add new tree function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Action.str_newtree.AfterCall', 'mr_strNewTree');
// Add move subtree function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Action.str_movesubtree.AfterCall', 'mr_strMoveSubtree');
// Add new category function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Action.str_newcat.AfterCall', 'mr_strNewCategory');
// Add rename category function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Action.str_renamecat.AfterCall', 'mr_strRenameCategory');
// Add move up category function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Action.str_moveupcat.AfterCall', 'mr_strMoveUpCategory');
// Add move down category function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Action.str_movedowncat.AfterCall', 'mr_strMovedownCategory');
// Add save article (new and existing category) function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Action.con_saveart.AfterCall', 'mr_conSaveArticle');
// Add mr related function for hook "after plugins loaded" to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Frontend.AfterLoadPlugins', 'mr_runFrontendController');
////////////////////////////////////////////////////////////////////////////////////////////////
// Add move article function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Article.conMoveArticles_Loop', 'mr_conMoveArticles');
// Add duplicate article function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Article.conCopyArtLang_AfterInsert', 'mr_conCopyArtLang');
// Add sync article function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Article.conSyncArticle_AfterInsert', 'mr_conSyncArticle');
// Add url rewriting function to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Frontend.CreateURL', 'mr_build_new_url');
if ($aMrCfg['rewrite_urls_at_congeneratecode'] ==
1) {
// Add url rewriting at code generation to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Content.conGenerateCode', 'mr_build_generated_code');
# $GLOBALS['mpDebug']->addDebug('conGenerateCode()', 'added chain to', __FILE__);
} elseif ($aMrCfg['rewrite_urls_at_front_content_output'] ==
1) {
// Add url rewriting at html output to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Frontend.HTMLCodeOutput', 'mr_build_generated_code');
# $GLOBALS['mpDebug']->addDebug('front_content.php', 'added chain to output at', __FILE__);
// Fallback solution: Add url rewriting at code generation to Contenido Extension Chainer
$_cecRegistry->addChainFunction('Contenido.Content.conGenerateCode', 'mr_build_generated_code');
# $GLOBALS['mpDebug']->addDebug('conGenerateCode()', 'added fallback chain to', __FILE__);
unset
($clientId, $options);
Documentation generated on Mon, 08 Sep 2008 03:08:48 +0200 by phpDocumentor 1.4.0