On 09/16/2004 8:39 AM, Matthias Jaekle jaekle@eventax.de wrote:
Your best bet if you don't want to do a lot of work is to set up a second wiki, point it at the same database, disable editing, and strip out the UI bits from the skin template.
Hi Brion, this sounds good. I just did it, but I still have the edit links in the page. How can I disable editing. I did not found, how to configure it.
Removing only the links won't disable editing, as users could just append '&action=edit' to the URL. I removed the relevant bits from index.php to prevent editing:
case "edit": case "submit": if( !$wgCommandLineMode && !$wgRequest->checkSessionCookie() ) { User::SetupSession(); } require_once( "includes/EditPage.php" ); $editor = new EditPage( $wgArticle ); $editor->$action(); break;
Paul