root/trunk/includes/formatters/raw.php

Revision 1, 263 bytes (checked in by anonymous, 7 years ago)

initial import

Line 
1<?php
2if ($test=$_REQUEST["text"]) {
3    print "";
4}
5else if ($lines = file($text)) {
6    foreach ($lines as $line) {
7    // To avoid loop:ignore inclusion of other raw link
8        if (!(preg_match("/^\[\[\|(\S*)(\s+(.+))?\]\]$/", $line, $matches)))
9            print $line;
10    }
11}
12?>
Note: See TracBrowser for help on using the browser.