- Text
- indent
<?php
//require_once("$IP/extensions/SyntaxHighlight_GeSHin/SyntaxHighlight_GeSHi.php");
//function wfProfileIn( $arg) {};
//function wfProfileOut( $arg) {};
wfLoadExtension( "SyntaxHighlight_GeSHi" );
if ( isWindows() ) {
#$wgPygmentizePath = "F:\\user\\python.repo\\pygments\\dist\\__main__.exe";
$wgPygmentizePath = "C:\\Program Files\\Python310\\Scripts\\pygmentize.exe";
#$wgPygmentizePath = "$IP/extensions/SyntaxHighlight_GeSHi/pygments/__main__.exe";
} else {
//$wgPygmentizePath = "/homez.913/jltryoen/www/MediaWiki/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize";
//$wgPygmentizePath = "/usr/bin/python -m pygments";
//$wgPygmentizePath = "/homez.913/jltryoen/.local/bin/pygmentize";
$wgPygmentizePath = "/homez.913/jltryoen/python/pygments/pygmentize";
}
wfLoadExtension( "WikiEditor" );
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-highlight'] = 1;
$wgWikiEditorRealtimePreview = true;
wfLoadExtension( 'CodeEditor' );
$wgDefaultUserOptions['usebetatoolbar'] = 1; // user option provided by WikiEditor extension
#ajout de code HTML
require_once("$IP/extensions/easyaddHTML.php");
wfLoadExtension( 'SecureInclude' );
$wg_include_allowed_features['iframe'] = true;
$wg_include_allowed_features['local'] = true;
$wg_include_allowed_features['remote'] = true;
$wg_include_allowed_features['highlight'] = true;
$wg_include_allowed_parent_paths = array($_SERVER['DOCUMENT_ROOT']);
#fonctions speciales
wfLoadExtension( 'UserFunctions' );
$wgUFAllowedNamespaces[NS_MAIN] = true;
# User Functions enabled in User Mainspace, but not in Main one.
$wgUFAllowedNamespaces = array(
NS_MAIN => false,
NS_USER => true
);
# Enable all User Functions in all NS numbered from 0 to 200
$wgUFAllowedNamespaces = array_fill(0, 200, true);
wfLoadExtension("ParserFunctions");
$wgPFEnableStringFunctions = true;
wfLoadExtension( 'Interwiki' );
// To grant sysops permissions to edit interwiki data
$wgGroupPermissions['sysop']['interwiki'] = true;
#piwik => matomo
wfLoadExtension("Matomo");
$wgMatomoURL = "piwik.jltryoen.fr/";
$wgMatomoIDSite = "1";
wfLoadExtension('WikiSEO');
$wgGoogleSiteVerificationKey = 'CODE';
$wgBingSiteVerificationKey = 'CODE';
#purge
wfLoadExtension( "Purge" );
$wgGroupPermissions['user']['purge'] = false;
$wgGroupPermissions['sysop']['purge'] = true;
#htmltags
wfLoadExtension( "HTMLTags" );
$wgHTMLTagsAttributes['a'] = array( 'href', 'class' , 'data-bs-toggle','aria-expanded', 'aria-controls');
$wgHTMLTagsAttributes['img'] = array( 'src', 'style', 'width' );
$wgHTMLTagsAttributes['i'] = array( 'class' );
$wgHTMLTagsAttributes['div'] = array( 'class' );
$wgHTMLTagsAttributes['option'] = array( 'onClick' );
$wgHTMLTagsAttributes['select'] = array( 'width','style' );
$wgHTMLTagsAttributes['embed'] = array( 'type','src','width','height','flashvars','pluginspage');
$wgHTMLTagsAttributes['iframe'] = array( 'frameborder','allowtransparency','scrolling','height', 'width','src');
$wgHTMLTagsAttributes['button'] = array( 'class' ,'id', 'data-bs-toggle', 'data-bs-target', 'type', 'role', 'aria-controls', 'aria-selected');
#tabs
wfLoadExtension("TabberNeue");
$wgTabberNeueEnableAnimation = false;
#contactpage
wfLoadExtension("ContactPage");
$wgContactConfig['default'] = array(
'RecipientUser' => 'root', // Must be the name of a valid account which also has a verified e-mail-address added to it.
'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated
'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required
'RequireDetails' => false, // Either "true" or "false" as required
'IncludeIP' => true, // Either "true" or "false" as required
'MustBeLoggedIn' => false, // Check if the user is logged in before rendering the form
'AdditionalFields' => array(
'Text' => array(
'label-message' => 'emailmessage',
'type' => 'textarea',
'rows' => 20,
'required' => true, // Either "true" or "false" as required
),
),
// Added in MW 1.26
'DisplayFormat' => 'table', // See HTMLForm documentation for available values.
'RLModules' => array(), // Resource loader modules to add to the form display page.
'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page.
);
#notitle
wfLoadExtension("NoTitle");
#PipeEscape
wfLoadExtension("PipeEscape");
##CSS CSS extension
wfLoadExtension("CSS");
#path relative to root
$wgCSSPath = '';
##slideshow
require_once("$IP/extensions/SlideShow/slideshowparser.php");
##categorycloud
wfLoadExtension("WikiCategoryTagCloud");
##variables
wfLoadExtension( 'Variables' );
##autoincrement dos not wot
//require_once "$IP/extensions/Autoincrement/Autoincrement.php";
##
require_once "$IP/extensions/Hello/helloparser.php";
require_once "$IP/extensions/Meteo/meteoparser.php";
##
#Semanti mediawiki
$GLOBALS['sespSpecialProperties'] = array('_PAGEID', '_REVID', '_NSID');
define('NS_DEMO' , 202);
$wgExtraNamespaces[NS_DEMO] = "Demo";
define('NS_RACE' , 203);
$wgExtraNamespaces[NS_RACE] = "Race";
define('NS_MUSIC' , 204);
$wgExtraNamespaces[NS_MUSIC] = "Music";
define('NS_BOOK' , 205);
$wgExtraNamespaces[NS_BOOK] = "Book";
wfLoadExtension( 'SemanticMediaWiki' );
enableSemantics( $semanticURL, true );
$wgGroupPermissions['user']['smw-admin'] = True;
$smwgNamespacesWithSemanticLinks[NS_MAIN] = True;
$smwgNamespacesWithSemanticLinks[NS_DEMO] = True;
$smwgNamespacesWithSemanticLinks[NS_RACE] = True;
$smwgNamespacesWithSemanticLinks[NS_MUSIC] = True;
$smwgNamespacesWithSemanticLinks[NS_TEMPLATE] = True;
$smwgNamespacesWithSemanticLinks[NS_BOOK] = True;
$smwgPageSpecialProperties = array('_CDAT', '_MDAT');
$wgDisableCounters = False;
#extensions for SemanticMediaWiki
wfLoadExtension( 'SemanticResultFormats' );
$sespgEnabledPropertyList = [
'_EUSER',
'_CUSER',
'_REVID',
'_NSID'
];
wfLoadExtension( 'SemanticExtraSpecialProperties' );
wfLoadExtension( 'ModernTimeline' );
$srfgFormats = array('calendar', 'broadtable','outline', 'tagcloud', 'timeline', 'eventcalendar','table', 'eventline','list', 'icalendar','sparkline');
//require_once( "$IP/extensions/SMWAskAPI/SMWAskAPI.php" );
##
wfLoadExtension("DataTransfer");
##
wfLoadExtension("DeleteBatch");
##fullcalendar
require_once("$IP/extensions/FullCalendar/fullcalendarparser.php");
wfLoadExtension( 'MagicNoCache' );
wfLoadExtension( 'AutoSitemap' );
require_once("$IP/extensions/AutoSitemap/config.php");
wfLoadExtension( 'FontAwesome' );
wfLoadExtension( 'NumerAlpha' );
##Category Viewer JLT
require_once("$IP/extensions/CategoryView/CategoryView.php");
#control categories JLT github
wfLoadExtension( 'CategoryControl2' );
$wgCategoryPermissions['Catégories_cachées']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Catégories_cachées']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
$wgCategoryPermissions['Private']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Private']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
#utilisé pour le plan du site JLT github
wfLoadExtension( 'NiceCategoryList3' );
#categorytree
#wfLoadExtension( 'CategoryTree');
#pour ajouter des favoris JLT
wfLoadExtension("Favorites");
#pour ajouter des galleries JLT
wfLoadExtension("JGallery");
#pour ajouter wikipedia JLT
require_once("$IP/extensions/Wikipedia/wikipedia.php");
require_once("$IP/extensions/Wikipedia/wikipediaparser.php");
//wfLoadExtension('AuthJoomla2023');
wfLoadExtension( 'Description2' );
$wgEnableMetaDescriptionFunctions = true;
?>