Template:PodV

From wiki.zmanda.com
Revision as of 13:33, 26 November 2010 by Martineau (talk | contribs)
Jump to navigation Jump to search

Use this template like this:

{{podv|3.2|Amanda::Changer}} -> Amanda::Changer
{{podv|3.2}} -> {{{2}}}

{{{2}}} Note that the contents of redirect.php are:

<?php
if ($_GET['pod'] and $_GET['version']) {
        header("Location: /pod/" . $_GET['version'] . "/" . str_replace("::", "/", $_GET['pod']) . ".html");
} else if ($_GET['version']) {
        header("Location: /pod/" . $_GET['version'] . "/");
} else if ($_GET['pod']) {
        header("Location: /pod/" . str_replace("::", "/", $_GET['pod']) . ".html");
} else {
        header("Location: /pod/");
}