From 1a3061e88fd98fa64ef2e1f7d0a22b68d02ab09a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 8 May 2005 18:08:46 +0000 Subject: [PATCH] * Deprecated. --- includes/SpecialSitesettings.php | 188 ------------------------------- 1 file changed, 188 deletions(-) delete mode 100644 includes/SpecialSitesettings.php diff --git a/includes/SpecialSitesettings.php b/includes/SpecialSitesettings.php deleted file mode 100644 index 6c07915434..0000000000 --- a/includes/SpecialSitesettings.php +++ /dev/null @@ -1,188 +0,0 @@ -execute(); -} - -class SiteSettingsForm extends HTMLForm { - var $mPosted, $mRequest, $mReset, $mSaveprefs; - - function SiteSettingsForm ( &$request ) { - $this->mPosted = $request->wasPosted(); - $this->mRequest = $request; - $this->mName = 'sitesettings'; - } - - function execute() { - if ( wfReadOnly() ) { - $wgOut->readOnlyPage(); - return; - } - if ( $this->mReset ) { - $this->resetPrefs(); - $this->mainPrefsForm( wfMsg( "prefsreset" ) ); - } else if ( $this->mSaveprefs ) { - $this->savePreferences(); - } else { - $this->resetPrefs(); - $this->mainPrefsForm( "" ); - } - } - - /* private */ function resetPrefs() { - return; - } - - /* private */ function mainPrefsForm( $err ) { - global $wgOut; - - $wgOut->setPageTitle( wfMsg( "sitesettings" ) ); - $wgOut->setArticleRelated( false ); - $wgOut->setRobotpolicy( "noindex,nofollow" ); - - if ( "" != $err ) { - $wgOut->addHTML( "

" . htmlspecialchars( $err ) . "

\n" ); - } - - $titleObj = Title::makeTitle( NS_SPECIAL, "SiteSettings" ); - $action = $titleObj->escapeLocalURL(); - - $wgOut->addHTML( "
" ); - $wgOut->addHTML( $this->fieldset( "sitesettings-features", - $this->checkbox( 'wgShowIPinHeader' ) . - $this->checkbox( 'wgUseDatabaseMessages' ) . - $this->checkbox( 'wgUseCategoryMagic' ) . - $this->checkbox( 'wgUseCategoryBrowser' ) . - $this->checkbox( 'wgDisableLangConversion' ). - $this->textbox( 'wgHitcounterUpdateFreq' ) . - $this->textbox( 'wgExtraSubtitle' ). - $this->textbox( 'wgSiteSupportPage' ) . - $this->textbox( 'wgSiteNotice' ) . - $this->checkbox( 'wgDisableAnonTalk' ). - $this->checkbox( 'wgCapitalLinks' ). - $this->checkbox( 'wgShowCreditsIfMax' ) . - $this->textbox( 'wgMaxCredits' ). - $this->checkbox( 'wgGoToEdit' ). - $this->checkbox( 'wgAllowRealName' ) . - $this->checkbox( 'wgAllowUserJs' ) . - $this->checkbox( 'wgAllowUserCss' ). - $this->checkbox( 'wgAllowPageInfo' ). - $this->textbox( 'wgMaxTocLevel' ) . - $this->checkbox( 'wgUseGeoMode' ) . - $this->checkbox( 'wgUseValidation' ) . - $this->checkbox( 'wgUseExternalDiffEngine' ) . - $this->checkbox( 'wgUseRCPatrol' ) - ) ); - $wgOut->addHTML( $this->fieldset( "sitesettings-permissions", - $this->fieldset( 'sitesettings-permissions-readonly' , - $this->checkbox( 'wgReadOnly' ) . - $this->textbox( 'wgReadOnlyFile','',50 ) - ) . - $this->fieldset( 'sitesettings-permissions-whitelist' , - $this->checkbox( 'wgWhitelistEdit' ) . - $this->arraybox( 'wgWhitelistRead' ) . - $this->checkbox( 'wgWhitelistAccount-user' ) . - $this->checkbox( 'wgWhitelistAccount-sysop' ) . - $this->checkbox( 'wgWhitelistAccount-developer' ) - ) . - $this->fieldset( 'sitesettings-permissions-banning' , - $this->checkbox( 'wgSysopUserBans' ) . - $this->checkbox( 'wgSysopRangeBans' ) . - $this->textbox( 'wgDefaultBlockExpiry', "24 hours" ) - ) . - $this->checkbox( 'wgAllowAnonymousMinor' ). - $this->checkbox( 'wgPutIPinRC' ) . - $this->textbox( 'wgSpamRegex' ). - $this->checkbox( 'wgUserHtml' ). - $this->checkbox( 'wgRawHtml' ) - ) ); - $wgOut->addHTML( $this->fieldset( "sitesettings-images" , - $this->checkbox( 'wgAllowExternalImages' ) . - $this->fieldset( 'sitesettings-images-upload' , - $this->checkbox( 'wgEnableUploads' ) . - $this->checkbox( 'wgRemoteUploads' ) . - $this->arraybox( 'wgFileExtensions' ) . - $this->arraybox( 'wgFileBlacklist' ) . - $this->checkbox( 'wgCheckFileExtensions' ) . - $this->checkbox( 'wgStrictFileExtensions' ) . - $this->textbox( 'wgUploadSizeWarning' ) . - $this->checkbox( 'wgUseCopyrightUpload' ) . - $this->checkbox( 'wgCheckCopyrightUpload' ) - ) . - $this->fieldset( 'sitesettings-images-resize' , - $this->checkbox( 'wgUseImageResize' ) . - $this->checkbox( 'wgUseImageMagick' ) . - $this->textbox( 'wgImageMagickConvertCommand' ) - ) - ) ); - $wgOut->addHTML( $this->fieldset( "sitesettings-performance", - $this->fieldset( 'sitesettings-permissions-miser' , - $this->checkbox( 'wgMiserMode' ) . - $this->checkbox( 'wgDisableQueryPages' ) . - $this->checkbox( 'wgUseWatchlistCache' ) . - $this->textbox( 'wgWLCacheTimeout', '3600' ) - ) . - $this->checkbox( 'wgDisableCounters' ) . - $this->checkbox( 'wgDisableTextSearch' ) . - $this->checkbox( 'wgDisableFuzzySearch' ) . - $this->checkbox( 'wgDisableSearchUpdate' ) - ) ); - $wgOut->addHTML( $this->fieldset( "sitesettings-memcached", - $this->checkbox( 'wgMemCachedDebug' ) . - $this->checkbox( 'wgUseMemCached' ) . - $this->textbox( 'wgMemCachedServers' ) . - $this->checkbox( 'wgSessionsInMemcached' ). - $this->checkbox( 'wgLinkCacheMemcached' ) . - $this->textbox( 'wgAccountCreationThrottle' ) - ) ); - $wgOut->addHTML( $this->fieldset( "sitesettings-caching", - $this->checkbox( 'wgCachePages' ). - $this->checkbox( 'wgUseFileCache' ). - $this->textbox( 'wgFileCacheDirectory' ) . - $this->textbox( 'wgCookieExpiration' ) . - $this->fieldset( 'sitesettings-caching-squid' , - $this->checkbox( 'wgUseSquid' ) . - $this->checkbox( 'wgUseESI' ) . - $this->textbox( 'wgInternalServer' ) . - $this->textbox( 'wgSquidMaxage' ) . - $this->textbox( 'wgMaxSquidPurgeTitles' ) - ) - ) ); - $wgOut->addHTML( $this->fieldset( "sitesettings-cookies", - $this->textbox( 'wgCookieDomain' ) . - $this->textbox( 'wgCookiePath' ) . - $this->checkbox( 'wgDisableCookieCheck' ) - ) ); - $wgOut->addHTML( $this->fieldset( "sitesettings-debugging", - $this->textbox( 'wgDebugLogFile','',50 ) . - $this->checkbox( 'wgDebugRedirects' ) . - $this->checkbox( 'wgDebugRawPage' ) . - $this->checkbox( 'wgDebugComments' ) . - $this->checkbox( 'wgLogQueries' ) . - $this->checkbox( 'wgDebugDumpSql' ) . - $this->fieldset( 'sitesettings-debugging-profiling', - $this->checkbox( 'wgProfiling' ) . - $this->textbox( 'wgProfileLimit' ) . - $this->checkbox( 'wgProfileOnly' ) . - $this->checkbox( 'wgProfileToDatabase' ) . - $this->textbox( 'wgProfileSampleRate' ) . - $this->checkbox( 'wgDebugProfiling' ) . - $this->checkbox( 'wgDebugFunctionEntry') - ) . - $this->checkbox( 'wgDebugSquid' ) - ) ); - $wgOut->addHTML( "
" ); - } - -} - -?> -- 2.20.1