Exemple #1
0
     {
         throw new PasswordError(wfMsg('resetpass_forbidden'));
         return false;
     }
     //Hide password change link in user preferences:
     $GLOBALS['wgHooks']['GetPreferences'][] = 'HidePreferenceOptions';
     function HidePreferenceOptions($mw_user, &$preferences)
     {
         global $user;
         $preferences['emailaddress']['default'] = $user->getEmail();
         unset($preferences['emailauthentication']);
         unset($preferences['password']);
         return true;
     }
 }
 $wgGroupPermissions = customizeMediawikiGroupsRights($wgGroupPermissions, $manager, $fusionforgeproject, $forbidden_permissions, $read_permissions, $write_permissions);
 $wgFavicon = '/images/icon.png';
 $wgBreakFrames = false;
 if (forge_get_config('unbreak_frames', 'mediawiki')) {
     $wgEditPageFrameOptions = false;
 }
 ini_set('memory_limit', '100M');
 // LOAD THE SITE-WIDE AND PROJECT-SPECIFIC EXTRA-SETTINGS
 if (is_file(forge_get_config('config_path') . "/plugins/mediawiki/LocalSettings.php")) {
     include forge_get_config('config_path') . "/plugins/mediawiki/LocalSettings.php";
 }
 // debian style system-wide mediawiki extensions
 if (is_file("/etc/mediawiki-extensions/extensions.php")) {
     include '/etc/mediawiki-extensions/extensions.php';
 }
 if (file_exists("{$wgUploadDirectory}/.wgLogo.png")) {
Exemple #2
0
     {
         throw new PasswordError(wfMsg('resetpass_forbidden'));
         return false;
     }
     //Hide password change link in user preferences:
     $GLOBALS['wgHooks']['GetPreferences'][] = 'HidePreferenceOptions';
     function HidePreferenceOptions($mw_user, &$preferences)
     {
         global $user;
         $preferences['emailaddress']['default'] = $user->getEmail();
         unset($preferences['emailauthentication']);
         unset($preferences['password']);
         return true;
     }
 }
 $wgGroupPermissions = customizeMediawikiGroupsRights($wgGroupPermissions);
 $wgFavicon = '/images/icon.png';
 $wgBreakFrames = false;
 if (forge_get_config('unbreak_frames', 'mediawiki')) {
     $wgEditPageFrameOptions = false;
 }
 ini_set('memory_limit', '100M');
 // LOAD THE SITE-WIDE AND PROJECT-SPECIFIC EXTRA-SETTINGS
 if (is_file(forge_get_config('config_path') . "/plugins/mediawiki/LocalSettings.php")) {
     include forge_get_config('config_path') . "/plugins/mediawiki/LocalSettings.php";
 }
 // debian style system-wide mediawiki extensions
 if (is_file("/etc/mediawiki-extensions/extensions.php")) {
     include '/etc/mediawiki-extensions/extensions.php';
 }
 if (file_exists("{$wgUploadDirectory}/.wgLogo.png")) {