From 084bd8a30436a99362a1c75d8d2c3429afe7e5e8 Mon Sep 17 00:00:00 2001 From: preecej Date: Mon, 23 May 2011 22:06:27 +0000 Subject: [PATCH] Refreshed versions of LocalSettings.php and NCBI_eDocSummary.php svn path=/; revision=94 --- preecej/semantic_wiki/LocalSettings.php | 70 +++++++++++++++---------- 1 file changed, 41 insertions(+), 29 deletions(-) diff --git a/preecej/semantic_wiki/LocalSettings.php b/preecej/semantic_wiki/LocalSettings.php index 7da811b..3c02af7 100644 --- a/preecej/semantic_wiki/LocalSettings.php +++ b/preecej/semantic_wiki/LocalSettings.php @@ -29,25 +29,26 @@ if ( $wgCommandLineMode ) { die( "This script must be run from the command line\n" ); } } - ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; -$wgSitename = "AnnoWiki"; +$wgSitename = "PlantSemantics"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL -$wgScriptPath = "/AnnoWiki"; -$wgScriptExtension = ".php"; +$wgScriptPath = "/w"; +$wgArticlePath = "/wiki/$1"; +$wgUsePathInfo = true; +$wgScriptExtension = ".php5"; ## The relative URL path to the skins directory $wgStylePath = "$wgScriptPath/skins"; ## The relative URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! -$wgLogo = "$wgStylePath/common/images/A1_sterileflowers_wiki_icon.jpg"; +$wgLogo = "$wgStylePath/common/images/wiki_logo_proto.png"; ## UPO means: this is also a user preference option @@ -63,10 +64,11 @@ $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; -$wgDBserver = "floret.cgrb.oregonstate.local"; -$wgDBname = "annowiki"; -$wgDBuser = "annowikiuser"; -$wgDBpassword = "annowikiuser-pw"; +$wgDBserver = "localhost"; +$wgDBname = "PlantSemantics"; +$wgDBuser = "ps_wiki_db"; +$wgDBpassword = "1yCoP3r5icuM"; +$wgJobRunRate = 1; # MySQL specific settings $wgDBprefix = ""; @@ -111,7 +113,7 @@ $wgLocalInterwiki = strtolower( $wgSitename ); $wgLanguageCode = "en"; -$wgSecretKey = "469aad58c7cc5ab0ec223dbf1316d16a6ded21cfa01f9e23d6ef22dee92a3224"; +$wgSecretKey = "2030c0cc408640a1809ec82a9fb16e660d9988a63aeb77871a94c94a5f2d2c56"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': @@ -120,36 +122,46 @@ $wgDefaultSkin = 'monobook'; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. -# $wgEnableCreativeCommonsRdf = true; +$wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright -$wgRightsUrl = ""; -$wgRightsText = ""; -$wgRightsIcon = ""; -# $wgRightsCode = ""; # Not yet used +$wgRightsUrl = "http://creativecommons.org/licenses/by-nc-sa/3.0/"; +$wgRightsText = "Attribution-NonCommercial-ShareAlike 3.0 Unported"; +$wgRightsIcon = "http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png"; +# $wgRightsCode = "[license_code]"; # Not yet used $wgDiff3 = "/usr/bin/diff3"; -# BEGIN 10/26/10: Justin Preece - Semantic MediaWiki and related extensions -# (moved from top of file to address premature reference to $wgScriptPath) -# added for Semantic public notification value recommended by Semantic MediaWiki -$wgServerName = "palea.cgrb.oregonstate.edu"; +# BEGIN 04/04/11: Justin Preece - Add'l Extensions +$wgUseAjax = true; +include("$IP/extensions/SimpleForms/SimpleForms.php"); +require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); +$wgPFEnableStringFunctions = true; + +# END 04/04/11: Justin Preece - Add'l Extensions + +# BEGIN 02/22/11: Justin Preece - Semantic Bundle (SMW and other extensions) +# (moved from top of file to address premature reference to $wgScriptPath) -# Semantic MediaWiki extension -include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); -enableSemantics($wgServerName); +require_once( "$IP/extensions/semantic-bundle/SemanticBundleSettings.php" ); +require_once( "$IP/extensions/semantic-bundle/SemanticBundle.php" ); -# Semantic Forms extension -include_once("$IP/extensions/SemanticForms/SemanticForms.php"); $sfgAutocompletionURLs['remote_species'] = 'http://palea.cgrb.oregonstate.edu/AnnoWiki/prototyping/remote_autocomplete.php?q='; +$sfgAutocompleteOnAllChars = false; -# Data Transfer extension -include_once("$IP/extensions/DataTransfer/DataTransfer.php"); +# END 02/22/11: Justin Preece - Semantic Bundle (SMW and other extensions) -# External Data extension -include_once("$IP/extensions/ExternalData/ExternalData.php"); +/** Allow client-side caching of pages */ +$wgCachePages = false; + +/** + * * Set this to current time to invalidate all prior cached pages. Affects both + * * client- and server-side caching. + * * You can get the current date on your server by using the command: + * * date +%Y%m%d%H%M%S + * */ +$wgCacheEpoch = 'date +%Y%m%d%H%M%S'; -# END 10/26/10: Justin Preece - Semantic MediaWiki and related extensions # When you make changes to this configuration file, this will make # sure that cached pages are cleared. -- 2.34.1