Location: PHPKode > projects > ProNuke. Postnuke To Oracle > postnuke/html/modules/NS-Addon_Sample/f2.php
<?php

if (!defined("LOADED_AS_MODULE")) {
         die ("You can't access this file directly...");
     }

$index = 0;

function f2one() {
    include("header.php");
    OpenTable();
    echo "<font class=\"pn-normal\">Addon Sample File (f2.php) function \"f2one\"</font><br><br>";
    echo "<ul>";
    echo "<li><a class=\"pn-normal\" href=\"modules.php?op=modload&amp;name=NS-Addon_Sample&amp;file=f2&amp;func=f2go\">f2.php Main</a>";
    echo "<li><a class=\"pn-normal\" href=\"modules.php?op=modload&amp;name=NS-Addon_Sample&amp;file=index\">Go to index.php</a>";
    echo "</ul>";    
    CloseTable();
    include("footer.php");
}

function f2go() {
    include("header.php");
    OpenTable();
    echo "<font class=\"pn-normal\">Addon Sample File (f2.php)</font><br>";
    echo "<ul>";
    echo "<li><a class=\"pn-normal\" href=\"modules.php?op=modload&amp;name=NS-Addon_Sample&amp;file=f2&amp;func=f2one\">Function f2one</a>";
    echo "<li><a class=\"pn-normal\" href=\"modules.php?op=modload&amp;name=NS-Addon_Sample&amp;file=index&amp;func=dos\">Go to index.php</a>";
    echo "</ul>";
    echo "<font class=\"pn-normal\">As you can see now, this page doesn't show the Right Blocks, this is because at the begining "
         ."of this file we set \$index variable to \"0\"</font>";
    CloseTable();
    include("footer.php");
}

switch($func) {

    default:
    f2go();
    break;
    
    case "f2one":
    f2one();
    break;
}

?>
Return current item: ProNuke. Postnuke To Oracle