blob: f68808a9a0c178fa707977b505d3b2bb4fd2d5b7 [file] [log] [blame]
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 "||";=]²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 = ² "<b>Address not displayed before approval</b>² <a class='apprlink' href='\$PageUrl?action=approvesites'>² $[(approve sites)]</a>";²=]²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 = "<b>No link allowed</b>";²²----²%trail%<<|[[Documentation Index]]|>>²
agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)