includeurl.php 677 B

1234567891011121314151617
  1. <?php if (!defined('PmWiki')) exit();
  2. /* This script enables markup of the form [*http:path*] to be
  3. substituted with the contents of another web document.
  4. Note that this can introduce some bizarre effects and potentially
  5. introduce some security holes, so be careful! You probably don't
  6. want to enable this if your pages are editable by the world at large.
  7. */
  8. $DoubleBrackets['/\[\*(http:.*?)\*\]/e'] = 'fp("$1");';
  9. $InlineReplacements["/\265(\\d+)\265/e"] =
  10. 'join("",file(str_replace("&amp;","&",$GLOBALS["fpv"][$1])));';
  11. function fp($str) {
  12. global $fpv,$fpcount;
  13. $fpcount++; $fpv[$fpcount] = $str;
  14. return "\265$fpcount\265";
  15. }
  16. ?>