Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki WOX xoops XoopsEngine ZendFramework

New Users

Registering user

# 133948

guilhermeans

Welcome to XOOPS!
[Main Page]

Lock the database

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: MediaWiki

Template:MoveToMediaWiki Set $wgReadOnlyFile in LocalSettings.php to the name of a file, then put the reason for the lock inside the file. The contents of the file will be displayed to anyone trying to edit the wiki.

Since mediawiki 1.5 you can add $wgReadOnly to your localsettings.php and set this to a string describing the reason for read-only mode, instead of creating a file. (Usual wiki markup is allowed in this string).

$wgReadOnly="We are upgrading mediawiki, please be patient. This wiki will be back in a few hours.";

Note that readonlyfile is not guaranteed to be absolutely safe; if you need to guarantee that MediaWiki will never write to the data, you need to do this on the database itself (e.g. revoke UPDATE,INSERT,DELETE from the wiki user, or put MySQL into read-only mode).

Retrieved from "http://xoops.org/modules/mediawiki/index.php/Lock_the_database"

This page has been accessed 1,647 times. This page was last modified 06:53, 20 November 2007. Content is available under XOOPS Web Application System.