} } else { $content = ''; } } else { if (!get_magic_quotes_gpc()) { $content = isset($_REQUEST['wiki_content']) ? $_REQUEST['wiki_content'] : ''; } else { $content = isset($_REQUEST['wiki_content']) ? $_REQUEST['wiki_content'] : ''; } } // use __MainPage__ if empty title if ($wiki_title === '') { // create wiki main page in a localisation compatible way $wiki_title = '__MainPage__'; if ($wikiStore->pageExists($wikiId, $wiki_title)) { // do nothing } else { // something weird's happened die("{$langWrongWikiPageTitle}"); draw($tool_content, 2, null, $head_content); } } // --------- Start of wiki command processing ---------- // init message $message = ''; switch ($action) { case 'rqSearch': break; case 'exSearch': $pattern = isset($_REQUEST['searchPattern']) ? trim($_REQUEST['searchPattern']) : null;
} // get content if ('edit' == $action) { if (isset($_REQUEST['content'])) { $content = $_REQUEST['content'] == '' ? "__CONTENT__EMPTY__" : $_REQUEST['content']; } else { $content = ''; } } else { $content = isset($_REQUEST['content']) ? $_REQUEST['content'] : ''; } // use __MainPage__ if empty title if ('' === $title) { // create wiki main page in a localisation compatible way $title = '__MainPage__'; if ($wikiStore->pageExists($wikiId, $title)) { // do nothing } elseif (!$wikiStore->pageExists($wikiId, $title) && (defined('DEVEL_MODE') && DEVEL_MODE == true)) { init_wiki_main_page($con, $wikiId, $creatorId); } else { // something weird's happened claro_die(get_lang("Wrong page title")); } } // --------- Start of wiki command processing ---------- // init message $message = ''; switch ($action) { case 'rqSearch': break; case 'exSearch':