usesPlugin("wiki"))) { exit_error("Wiki plugin not activated in project", $project->getPublicName()); } else { $group_name = $project->getUnixName(); $group_public_name = $project->getPublicName(); $is_external = $project->getIsExternal(); define('VIRTUAL_PATH', '/wiki/g/'.$group_name); define('PAGE_PREFIX', '_g'.$group_id.'_'); define('THEME', 'gforge'); // For Gforge, we create some specific pages, located in the theme // except for project "help" if ($group_name == "help") { define('WIKI_PGSRC', 'pgsrc/'); } else { define('WIKI_PGSRC', 'themes/gforge/pgsrc/'); } define('GFORGE', true); define('PATH_INFO_PREFIX', '/'.$group_name . '/'); define('USE_PATH_INFO', true); define('WIKI_NAME', $group_name); define('UPLOAD_FILE_PATH', '/opt/groups/'.WIKI_NAME.'/www/uploads/'); // define('UPLOAD_DATA_PATH', SERVER_URL . '/www/'.WIKI_NAME.'/uploads/'); define('UPLOAD_DATA_PATH', '/www/'.WIKI_NAME.'/uploads/'); // Do not use a directory per user but only one (per project) define('UPLOAD_USERDIR', false); // Use black list of extensions instead of white list define('DISABLE_UPLOAD_ONLY_ALLOWED_EXTENSIONS', true); // GForge is UTF-8, so use the same. define('CHARSET', 'UTF-8'); // Disable access log (already in apache & gforge). define('ACCESS_LOG_SQL', 0); define('DEBUG', ($sys_install_type != 'production')); // define('_DEBUG_LOGIN', true); // Disable VACUUM (they are performed every night) define('DATABASE_OPTIMISE_FREQUENCY', 0); define('ADMIN_USER', 'ACOS Forge Administrator'); define('ADMIN_PASSWD', 'xxx'); // Allow ".jpeg" as extension define('INLINE_IMAGES', 'png|jpg|jpeg|gif'); // Allow template with MediaWiki syntax define('ENABLE_MARKUP_TEMPLATE', true); // Allow tables with MediaWiki syntax define('ENABLE_MARKUP_MEDIAWIKI_TABLE', true); // Allow parsing of headers for CreateToc define('TOC_FULL_SYNTAX', true); // Allow
and in wiki code define('ENABLE_MARKUP_DIVSPAN', true); // Disable ENABLE_ACDROPDOWN, it creates a