Exemple #1
0
loadApp(ANWPATH_CLASSES . "class_pagegroup.php");
loadApp(ANWPATH_CLASSES . "class_naventry.php");
//require global template
loadApp(ANWPATH_DEFAULT . AnwComponent::getGlobalComponentFullDir() . "global.tpl.php");
loadApp(ANWPATH_OVERRIDE . AnwComponent::getGlobalComponentFullDir() . "global.tpl.php");
//are we in minimal/batch/standard mode?
if (ANWIKI_MODE_BATCH) {
    loadApp(ANWPATH_CLASSES . "session/class_currentsession-batch.php");
} else {
    if (ANWIKI_MODE_MINIMAL) {
        loadApp(ANWPATH_CLASSES . "session/class_currentsession-minimal.php");
    } else {
        loadApp(ANWPATH_CLASSES . "session/class_currentsession.php");
    }
}
AnwDebug::setTraceEnabled(AnwComponent::globalCfgTraceEnabled());
AnwEnv::init();
AnwDebug::stopBench("loading files");
/**
 * We use it for more flexibility.
 * That way, you can previously define some constants for your needs depending on your hosting strategy.
 */
function anwdefine($sConstant, $sValue)
{
    if (!defined($sConstant)) {
        define($sConstant, $sValue);
    }
}
function anwInitErrorReporting()
{
    if (ANWIKI_DEVEL) {