store( $_REQUEST ); header( "Location:".USERS_PKG_URL."index.php?home=".$gBitUser->mUsername ); die; } if ($gBitSystem->getConfig('package_quicktags','n') == 'y') { include_once( QUICKTAGS_PKG_PATH.'quicktags_inc.php' ); } // see if we should show the attachments tab at all foreach( $gLibertySystem->mPlugins as $plugin ) { if( ( $plugin['plugin_type'] == 'storage' ) && ( $plugin['is_active'] == 'y' ) ) { $gBitSmarty->assign( 'show_attachments','y' ); } } $gBitSmarty->assign('preview',0); // If we are in preview mode then preview it! if(isset($_REQUEST["preview"])) { $gBitSmarty->assign('preview',1); $gBitUser->mInfo['title'] = $_REQUEST["title"]; if(isset($_REQUEST["description"])) { $gBitUser->mInfo['description'] = $_REQUEST["description"]; } $gBitUser->mInfo['data'] = $_REQUEST["edit"]; $parsed = $gBitUser->parseData($_REQUEST["edit"], (!empty( $_REQUEST['format_guid'] ) ? $_REQUEST['format_guid'] : ( isset($gBitUser->mInfo['format_guid']) ? $gBitUser->mInfo['format_guid'] : 'tikiwiki' ) ) ); /* SPELLCHECKING INITIAL ATTEMPT */ //This nice function does all the job! if ($gBitSystem->isFeatureActive( 'wiki_spellcheck' )) { if (isset($_REQUEST["spellcheck"]) && $_REQUEST["spellcheck"] == 'on') { $parsed = $gBitSystem->spellcheckreplace($edit_data, $parsed, $gBitLanguage->mLanguage, 'editwiki'); $gBitSmarty->assign('spellcheck', 'y'); } else { $gBitSmarty->assign('spellcheck', 'n'); } } $gBitSmarty->assign( 'parsed', $parsed ); } $gBitSmarty->assign_by_ref( 'pageInfo', $gBitUser->mInfo ); $gBitSmarty->assign_by_ref( 'gContent', $gBitUser ); $gBitSmarty->assign('show_page_bar', 'y'); $gBitSystem->setPreference( 'wiki_description', 'n' ); $gBitSystem->display( 'bitpackage:wiki/edit_page.tpl'); ?>