version=pmwiki-2.0.beta22
newline=²
time=1109237154
text=A script ''urlapprove.php'' for approval of Internet addresses (URL) is supplied with the standard distribution. To activate it, you have to add to the local/config.php file: ² [=include_once('scripts/urlapprove.php');=]²²You will then approve `URLs while adding them to a "white list" defined in the variable $WhiteUrlPatterns which is set in the local/config.php file.\\²To add multiples `URLs, use the separator | . By example:² [=$WhiteUrlPatterns =² "http://example.com/|http://example.net/|http://example.org/";=]²To add all `URLs from, say New Zealand and Australia, use² [=$WhiteUrlPatterns[] = 'http://[^/]+\\.nz';² $WhiteUrlPatterns[] = 'http://[^/]+\\.au';=]²²This white list is also completed by loading the content of the ''`Main.ApprovedUrls'' page. ²²Following a non-approved link will be displayed a message ''"(Approve sites)"''. A click on this message will approve all sites of the page, if you have writing rights on the ''`Main.ApprovedUrls'' page.\\²If you don't want the links to be approved by everyone, this page must be protected by a [[password(s)]]. Then, the password will be requested after clicking the ''"(approve sites)"'' link.²²If you want to change the name of this page write in local/config.php (after the script inclusion line):² [= $ApprovedUrlPagesFmt = array('OtherGroup.OtherName');=]²Generally, it might be ² [= array('$DefaultGroup.ApprovedUrls');=]²²You can limit the number of unapproved links per page. If the number is exceeded, the page cannot be posted. This is useful because spammers write long link lists. To activate this limit write in the local/config.php file the next line (value 5 is only for example):² $UnapprovedLinkCountMax = 5; #by default 100000²²You can also make `PmWiki display a disapproval message defined in the $UnapprovedLinkFmt variable, by example:² [=$UnapprovedLinkFmt = ² "Address not displayed before approval² ² $[(approve sites)]";²=]²This is not very useful for the person in charge of links approval, so use it only if really required, or if you wish to totally forbid link addition. In that case, the message can simply be:² $UnapprovedLinkFmt = "No link allowed";²²----²%trail%<<|[[Documentation Index]]|>>²
targets=PmWiki.Passwords,PmWiki.AvailableActions,PmWiki.DocumentationIndex,PmWiki.Variables
author=Simon
name=PmWiki.UrlApprovals
host=203.79.91.253
agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
rev=12