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(); $wc = new WikiConfig($group_id); 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('DISABLE_MARKUP_WIKIWORD', $wc->getWikiConfig('DISABLE_MARKUP_WIKIWORD')); define('NUM_SPAM_LINKS', 20 * ($wc->getWikiConfig('NUM_SPAM_LINKS'))); 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); // Get the maximum upload filesize from PHP config define('MAX_UPLOAD_SIZE', octets(ini_get('upload_max_filesize'))); // 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); // Postgresql define('DATABASE_TYPE', 'SQL'); // Dummy value (to avoid warning in SystemInfo plugin) define('DATABASE_DSN', 'pgsql://localhost/user_phpwiki'); // Disable VACUUM (they are performed every night) define('DATABASE_OPTIMISE_FREQUENCY', 0); // TBD: the name should be taken from Gforge // define('ADMIN_USER', 'ACOS Forge Administrator'); define('ADMIN_USER', 'The PhpWiki programming team'); // Dummy value define('ADMIN_PASSWD', 'xxx'); // Allow ".svg" as extension define('INLINE_IMAGES', 'png|jpg|jpeg|gif|svg'); // 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