Exemplo n.º 1
0
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
require_once "{$IP}/skins/MonoBook/MonoBook.php";
require_once "{$IP}/skins/Vector/Vector.php";
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once "{$IP}/extensions/AdminLinks/AdminLinks.php";
require_once "{$IP}/extensions/Cite/Cite.php";
require_once "{$IP}/extensions/Gadgets/Gadgets.php";
require_once "{$IP}/extensions/HeaderTabs/HeaderTabs.php";
require_once "{$IP}/extensions/ImageMap/ImageMap.php";
require_once "{$IP}/extensions/Interwiki/Interwiki.php";
require_once "{$IP}/extensions/LocalisationUpdate/LocalisationUpdate.php";
require_once "{$IP}/extensions/ParserFunctions/ParserFunctions.php";
require_once "{$IP}/extensions/Renameuser/Renameuser.php";
require_once "{$IP}/extensions/ReplaceText/ReplaceText.php";
require_once "{$IP}/extensions/Widgets/Widgets.php";
require_once "{$IP}/extensions/WikiEditor/WikiEditor.php";
# End of automatically generated settings.
# Add more configuration options below.
enableSemantics('kmwiki.fabiosasseron.com');
include_once "{$IP}/extensions/SemanticForms/SemanticForms.php";
# Semantic Image Annotator
include_once "{$IP}/extensions/SemanticImageAnnotator/SemanticImageAnnotator.php";
Exemplo n.º 2
0
<?php

# this is just for regular semantic stuff
include_once "{$IP}/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
enableSemantics('wiki.barrycarter.info');
$smwgShowFactbox = SMW_FACTBOX_NONEMPTY;
$smwgBrowseShowInverse = true;
# this file is included into mediawiki's LocalSettings.php for meta wiki purposes
require '/sites/LIB/bclib.php';
# just test hooks for now
$wgHooks['ArticleDeleteComplete'][] = array('perlnotify', 'delete');
$wgHooks['ArticleSaveComplete'][] = array('perlnotify', 'save');
$wgHooks['ArticleInsertComplete'][] = array('perlnotify', 'delete');
# just a test function for now
function perlnotify($type)
{
    # ignore changes except in wiki namespace
    # TODO: generalize this
    if (!preg_match("/^Sample:/", $_REQUEST[title])) {
        return true;
    }
    # using tmpfile to reduce code injection
    $file = tempnam("/tmp/", "metamedia");
    file_put_contents($file, $_REQUEST[title]);
    system("/usr/local/bin/meta-mediawiki.pl --debug {$file} 1> /tmp/stdout.txt 2> /tmp/stderr.txt");
    return true;
}
Exemplo n.º 3
0
// Make default the user option to prompt for an edit summary if none is provided
// does not affect users who have already set this option
// bug 1080898
$wgDefaultUserOptions['forceeditsummary'] = true;
#require_once("$IP/../extensions/Urchin/Urchin.php");
require_once "{$IP}/../extensions/LabeledSectionTransclusion/lst.php";
require_once "{$IP}/../extensions/LabeledSectionTransclusion/lsth.php";
require_once "{$IP}/../extensions/Renameuser/SpecialRenameuser.php";
require_once "{$IP}/../extensions/ParserFunctions/ParserFunctions.php";
require_once "{$IP}/../extensions/ImageMap/ImageMap.php";
$wgFFmpegLocation = '/usr/bin/ffmpeg';
require "{$IP}/../extensions/OggHandler/OggHandler.php";
$smwgNamespaceIndex = 132;
$smwgQMaxSize = 40;
$smwgQMaxDepth = 20;
enableSemantics('wiki-dev.allizom.org');
$smwgEnabledEditPageHelp = false;
include_once "{$IP}/../extensions/SemanticForms/SemanticForms.php";
##
# ask API feature will be available at api.php?action=<$wgSMWAskAPI_ActionName>
# Default it 'ask'
##
global $wgSMWAskAPI_ActionName;
$wgSMWAskAPI_ActionName = 'ask';
require_once "{$IP}/../extensions/SMWAskAPI/SMWAskAPI.php";
# Bug 638134
require_once "{$IP}/../extensions/UrlGetParameters/UrlGetParameters.php";
# Bug 674544
require_once "{$IP}/../extensions/NoTitle/NoTitle.php";
# Bug 677659
require_once "{$IP}/../extensions/CreateBox/CreateBox.php";
Exemplo n.º 4
0
<?php

# set permissions for registered users and anonymous
$wgGroupPermissions['*']['wysiwyg'] = true;
$wgGroupPermissions['user']['wysiwyg'] = true;
#Import SMW, SMWHalo
include_once 'extensions/SemanticMediaWiki/includes/SMW_Settings.php';
enableSemantics('http://wiki', true);
include_once 'extensions/SMWHalo/includes/SMW_Initialize.php';
enableSMWHalo('SMWHaloStore2');
# the FCK Editor itself
require_once 'extensions/WYSIWYG/WYSIWYG.php';
<?php

# WARNING: This file is publically viewable on the web.
#          Do not put private data here.
require_once "{$IP}/extensions/Validator/Validator.php";
require_once "{$IP}/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
require_once "{$IP}/extensions/SemanticForms/SemanticForms.php";
require_once "{$IP}/extensions/SemanticResultFormats/SemanticResultFormats.php";
enableSemantics('wikitech');
unset($wgSpecialPages['SMWAdmin']);
require_once "{$IP}/extensions/LdapAuthentication/LdapAuthentication.php";
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array('labs');
$wgLDAPServerNames = array('labs' => 'ldap-labs.eqiad.wikimedia.org');
$wgLDAPSearchAttributes = array('labs' => 'cn');
$wgLDAPBaseDNs = array('labs' => 'dc=wikimedia,dc=org');
$wgLDAPUserBaseDNs = array('labs' => 'ou=people,dc=wikimedia,dc=org');
$wgLDAPEncryptionType = array('labs' => 'tls');
$wgLDAPWriteLocation = array('labs' => 'ou=people,dc=wikimedia,dc=org');
$wgLDAPAddLDAPUsers = array('labs' => true);
$wgLDAPUpdateLDAP = array('labs' => true);
$wgLDAPPasswordHash = array('labs' => 'clear');
// 'invaliddomain' is set to true so that mail password options
// will be available on user creation and password mailing
$wgLDAPMailPassword = array('labs' => true, 'invaliddomain' => true);
$wgLDAPPreferences = array('labs' => array("email" => "mail"));
$wgLDAPUseFetchedUsername = array('labs' => true);
$wgLDAPLowerCaseUsernameScheme = array('labs' => false, 'invaliddomain' => false);
$wgLDAPLowerCaseUsername = array('labs' => false, 'invaliddomain' => false);
// Only enable UseLocal if you need to promote an LDAP user
#$wgLDAPUseLocal = true;
<?php

/**
 *  Settings for extensions managed by Composer
 *
 * @todo: make the enable semantics thing pull from the wiki name
 */
enableSemantics('MissionSystems.MOD.JSC.NASA.GOV');
//$smwgShowFactbox = SMW_FACTBOX_NONEMPTY;
// SMW Settings Overrides:
$smwgQMaxSize = 5000;
// removed for composer
// require_once("$IP/extensions/SemanticResultFormats/SemanticResultFormats.php");
$srfgFormats = array('calendar', 'timeline', 'eventline', 'tree', 'oltree', 'ultree', 'tagcloud', 'outline', 'valuerank', 'excel');
Exemplo n.º 7
0
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# Query string length limit for ResourceLoader. You should only set this if
# your web server has a query string length limit (then set it to that limit),
# or if you have suhosin.get.max_value_length set in php.ini (then set it to
# that value)
$wgResourceLoaderMaxQueryLength = -1;
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once "{$IP}/extensions/ConfirmEdit/ConfirmEdit.php";
require_once "{$IP}/extensions/Gadgets/Gadgets.php";
require_once "{$IP}/extensions/Validator/Validator.php";
# Validator must be included *before* Maps.
include_once "{$IP}/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
# Semantic Mediawiki must be included *before* Maps.
enableSemantics('example.org');
include_once "{$IP}/extensions/SemanticForms/SemanticForms.php";
# Semantic Forms must be included *before* Maps.
require_once "{$IP}/extensions/Maps/Maps.php";
# Maps must be included *before* Semantic Maps
require_once "{$IP}/extensions/SemanticMaps/SemanticMaps.php";
require_once $IP . '/extensions/W4gRatingBar/w4g_rb.php';
$wgW4GRB_Path = '/extensions/W4gRatingBar';
require_once "{$IP}/extensions/RSS/RSS.php";
require_once "{$IP}/extensions/Comments/Comment.php";
require_once "{$IP}/extensions/Widgets/Widgets.php";
$wgGroupPermissions['sysop']['editwidgets'] = true;
require_once "{$IP}/extensions/SemanticResultFormats/SemanticResultFormats.php";
# End of automatically generated settings.
# Add more configuration options below.