Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
453 ddelon 1
<?php
2
class Text_Wiki_Render_Xhtml_Redirection extends Text_Wiki_Render {
3
 
4
    /**
5
    *
6
    * Renders a token into text matching the requested format.
7
    *
8
    * @access public
9
    *
10
    * @param array $options The "options" portion of the token (second
11
    * element).
12
    *
13
    * @return string The text rendered from the token options.
14
    *
15
    */
16
 
17
    function token($options)
18
    {
19
        // Initialisation des variables
20
        $sortie = '';
21
        $url = $options['url'];
678 ddelon 22
        $url=ereg_replace('&amp;','&',$url);
453 ddelon 23
        header("Location: $url");
24
		exit;
25
    }
26
}
27
?>