Manual:$wgAntivirusSetup/cs

Podrobnosti
Konfigurace pro různé antivirové programy. Toto je asociativní pole asociativních polí: obsahuje jedno pole nastavení na známý typ skeneru. Položka je vybrána pomocí, tj. platné hodnoty pro jsou klíče definované v tomto poli. Antivirové funkce nemusí fungovat na Windows ve verzích MediaWiki před 1.16.0.

Konfigurační pole pro každý skener obsahuje následující klíče:


 * Úplný příkaz pro volání antivirového skeneru - %f bude nahrazen názvem souboru, který se má skenovat. If not present, the filename will be appended to the command.
 * Note that this must be overwritten if the scanner is not in the system path; in that case, you should set  to the desired command with full path. (This line should appear after the line that sets $wgAntivirus.)
 * Note that this must be overwritten if the scanner is not in the system path; in that case, you should set  to the desired command with full path. (This line should appear after the line that sets $wgAntivirus.)


 * A mapping of exit code to return codes of the  function in "SpecialUpload.php".
 * An exit code mapped to  causes the function to consider the scan to be failed. This will pass the file if  is not set.
 * An exit code mapped to  causes the function to consider the file to have an unsupported format, which is probably immune to viruses. This causes the file to pass.
 * An exit code mapped to  will cause the file to pass, meaning no virus was found.
 * All other codes (like ) will cause the function to report a virus.
 * You may use  as a key in the array to catch all exit codes not mapped otherwise.
 * You may use  as a key in the array to catch all exit codes not mapped otherwise.


 * A Perl regular expression to extract the meaningful part of the scanner's output. The relevant part should be matched as group one.
 * If not defined or the pattern does not match, the full message is shown to the user.
 * If not defined or the pattern does not match, the full message is shown to the user.