Here, this is better:

function BOLTFsumbox($args) {
        global $pageLink;
        if (isset($args['page'])) $page = $args['page'];
        else $page = $pageLink;
        $zone = 'main';
        $content = BOLTloadpage($page);
        preg_match_all('/\!\! (.*)/m', $content, $matches);
        foreach ($matches[1] as $i => $ii) {
                $count = $i + 1;                        
                $out .= "# [[$page#$zone$count|" . $matches[1][$i] . "]]\n";
                }
        return "<div class='sumbox'>\n$out\n</div>";
        }
        
MarkUp('fmt', 'headers', '/(^|>)(!{1,6})(.*)/me',
'BOLTManchorheaders("$2", "$3", "$1", "$zone")');

function BOLTManchorheaders($headers, $label, $start, $zone) {
        if ($zone == 'main') {
                global $BOLTanchorheaders;
                $BOLTanchorheaders[$zone] = $BOLTanchorheaders[$zone] + 1;
                $label = "<a name='$zone$BOLTanchorheaders[$zone]'>$label</a>";
                }
        return BOLTMheaders($headers, $label, $start);
        }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to