This variable only has an effect if it is set in the script--it does not do anything useful in the config file. Here is the one use of RunCGI:
&DoWikiRequest() if ($RunCGI && ($_ ne 'nocgi')); # Do everything.
Essentially, it is a way to load the wiki without running it. This is useful for PersistentCGI environments like mod_perl. (You can also set $_ to 'nocgi' to get the same effect.) Here is an example script using this load-but-not-running feature:
#!/usr/bin/perl # Demonstration of shared wiki code. $_ = 'nocgi'; # Do not run script immediately when loaded require "/home/usemod/cgi-bin/wiki.pl"; $UseModWiki::LogoLeft = 1; # Other config changes can be done this way &UseModWiki::DoWikiRequest(); # Do the request
[This script uses the 'nocgi' method instead of $RunCGI. I could have changed "um9.pl" to set $RunCGI to 0, and eliminated the $_ = 'nocgi' line in this script.]