root > WikiSense-trunk > common > WSDefaults.php

WSDefaults.php

application/x-php, 4822 bytes (load raw)
<?php
if (!defined('WS_WEB')) die('bad entry point');

$wsgLangVars= array(
  'wgNamespaceNames',
  'wgQuickbarSettings',
  'wgSkinNames',
  'wgUserToggles',
  'wgBookstoreList',
  'wgAllMessages',
  'wgMagicWords',
);

# language files to use if different from wiki's content language
$wsgLangAliases = array(
    'zh' => 'zh-cn', #HACK: zh-wiki uses zh-cn language file
    #'zh-cfr' => 'min-nan',
    #'zh-min-nan' => 'min-nan', #FIXME: or what?!
    #'zh-yue' => 'zh-cn',  #FIXME: or what?!
    'als' => 'de',
);

#per-wiki overrides
$wsgWikis= array();

#Site names that differ from the project's family name (incomplete list)
$wsgSitenames = array(
    'ar.wikipedia.org' => 'ويكيبيديا',
    'cs.wikipedia.org' => 'Wikipedie',
    'el.wikipedia.org' => 'Βικιπαίδεια',
    'eo.wikipedia.org' => 'Vikipedio',
    'es.wikibooks.org' => 'Wikilibros',
    'et.wikipedia.org' => 'Vikipeedia',
    'fr.wikipedia.org' => 'Wikipédia',
    'he.wikipedia.org' => 'ויקיפדיה',
    'he.wikisource.org' => 'ויקיטקסט',
    'kk.wikipedia.org' => 'Уикипедия',
    'la.wikipedia.org' => 'Vicipaedia',
    'ru.wikipedia.org' => 'Википедия',
    'ru.wiktionary.org' => 'Викисловарь',
    'sk.wikipedia.org' => 'Wikipédia',
    'sr.wikipedia.org' => 'Википедија',
    'it.wikinews.org' => 'Wikinotizie',
    'hu.wikipedia.org' => 'Wikipédia',
    'tr.wikipedia.org' => 'Vikipedi',
    '' => '',
);

#namespace overrides
// $wsgWikis['cs.wikipedia.org']['namespaces'][ 2 /*NS_USER*/ ] =  'Wikipedista';
// $wsgWikis['cs.wikipedia.org']['namespaces'][ 3 /*NS_USER_TALK*/ ] =  'Wikipedista_diskuse';
//
// $wsgWikis['pl.wikipedia.org']['namespaces'][ 5 /*NS_PROJECT_TALK*/ ] =  'Dyskusja_Wikipedii';
// $wsgWikis['ru.wiktionary.org']['namespaces'][ 5 /*NS_PROJECT_TALK*/ ] =  'Обсуждение_Викисловаря';
// $wsgWikis['ru.wikipedia.org']['namespaces'][ 5 /*NS_PROJECT_TALK*/ ] =  'Обсуждение_Википедии';

#symbolic database names
$wsgDatabases= array();

#files in this list will prevent any tool from running if they
#exist and contain anything but "OK", "UP" or "GOOD".
$wsgBlockerFiles= array();

$wsgWikiDB= NULL;
$wsgWikiClusterDBs= NULL;
$wsgWikiClusterNames= NULL;
$wsgAuxWikiDB= NULL;
$wsgWikiListDB= NULL;
$wsgWikiListTable= 'wiki';
$wsgCustomNamespaceTable= 'namespace';
$wsgNamespaceNameTable= 'namespacename';
$wsgMimeOverwrite= array();

#may be a single db url, or an array of arrays like this:
#   array( 'label' => 's2 (de and 18 more)',  'db' => $wsgWikiClusterDBs[2].'/dewiki_p', 'status-file' => $statusPath . 's2', 'abort' => 'BROKEN!' )
$wsgReplagDB= NULL;

$wsgPersistentStateDir= '/tmp';

$wsgDelinkerUser = 'CommonsDelinker';
$wsgDelinkerLogTable = 'delinker';
$wsgDelinkerLogDB = NULL;

$wsgBrokenWikis= array();
$wsgLiveUsageFallback= true; #use query.php for checkusage if db is broken

$wsgWikiListDBConnection= NULL;
$wsgAllowExternalStorage= false;
$wsgExternalStorageDbExpression = false;

$wsgLogLevel= 0;
$wsgLogHashCounter= 0;
$wsgLogSuffix= NULL;
$wsgLogTag= NULL;

$wsgWorldDatabase= NULL;

$wsgTransactionMode= false; //turn off transactions!

$wsgWikiBlacklist= NULL;

$wsgCacheDir= 'cache';

$wsgTableNames= array();
$wsgFilterCatDB = NULL;

$wsgFileNamespace= "File";
$wsgDatabaseIncludePath = "includes/db";

$wsgReplagFile= NULL;
$wsgReplagPattern= NULL;

$wsgWikiProxy= NULL;
$wsgDirectAccessHost= NULL; #NOTE: this is for bypassing squids. only use this if you are caching data locally!

$wsgLicenseTagTables= NULL;
$wsgMediaIndexTables= NULL;
$wsgLanguageLinkTables= NULL;
$wsgTextCacheTables= NULL;
$wsgTextCacheDB= NULL;
$wsgQCacheDB= NULL;

$wsgStopwords= NULL;
$wsgStopwordDB= NULL;

$wsgLogDB= NULL;
$wsgLogTable= 'log';

$wsgFooter= "footer.php";
$wsgHeader= "header.php";

$wsgThrottleDir= '/tmp'; #TODO: windows...
$wsgWebThrottleInterval= 1;
$wsgToolThrottleInterval= 1;
$wsgWebThrottle= NULL;   #total requests allowed per throttle interval
$wsgToolThrottle= NULL#requests allowed per tool per throttle interval

$wsgDisable= array(); #tools to disable (triggers a 403)
$wsgQueryLimit= array(); #per-tool limit for wiki size. used by WikiQuery

$wsgCookieFile= false;
$wsgWikiPasswordFile= false;

$wsgTimeZone= 'UTC';
$wsgConsoleMemoryLimit= false; #use '64M' etc to allow shell entry points to use that much memory. False means "use default", -1 means "unlimited".

$wsgBugTrackerURL= 'https://jira.toolserver.org/browse/WIKISENSE/';
$wsgToolHelpBase= 'http://meta.wikimedia.org/wiki/User:Duesentrieb/';
$wsgToolTalkBase= 'http://meta.wikimedia.org/wiki/User_talk:Duesentrieb/';

$wsgClientHostBlacklist= array();

$wsgWebMemoryLimit = false; //use default

$wsgThumbnailRedirector = NULL;
#$wsgThumbnailRedirector = 'http://toolserver.org/tsthumb/tsthumb';
?>