Jump to content

Manual:Protect.php

From mediawiki.org
This page is a translated version of the page Manual:Protect.php and the translation is 100% complete.

Detalhes

O arquivo protect.php é um script de manutenção que trata de proteger e desproteger uma página.

Options/Arguments

This script takes the title of the page as the first argument.

Tip: Spaces inside a title must be replaced with underscores ( _ ), or use double quotation marks like "Foo Bar"


This script accepts these options:

Opção Obrigatório Valor predefinido
--unprotect Removes protection Optional
--semiprotect Adds semi-protection Optional
--cascade Add cascading protection Optional
--user Username to protect with Optional
--reason Reason for un/protection Optional

Uso

php maintenance/protect.php title [ --unprotect| --semiprotect| --cascade| --user| --reason ]

Allowing only autoconfirmed users to edit the page

Terminal

Allowing only sysop users to edit the page

Terminal


Removing protection from a page

Terminal

Protecting a page as username "Foo"

If you don't pass the --user option to the script, it will perform the action with user User:Maintenance script.

Terminal

Ver também