Location: PHPKode > projects > Cronus > cronus-1.2.0rc2/index.php
<?php

//ob_start("ob_gzhandler");
ob_start();

require_once('includes/common.inc.php');
require_once('includes/config.inc.php');
require_once('includes/debug.inc.php');
require_once('includes/themes.inc.php');

if($GLOBALS['config']['debug'] == TRUE) {
    // get the time before the page is generated
    $startTime = utime(); 
}

if(isset($_GET["do"])) {
    $currentmodule = $_GET["do"];
} else {
    $currentmodule = "home";
}

require_once('includes/session.inc.php');

header ("Pragma: no-cache"); // msie 6 bug fix

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
    <head>
        <title>cronus >> <?=$currentmodule?></title>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
        <style type="text/css" media="all">
            @import "<?php echo( cronusGetThemeCSS() ); ?>";
        </style>
    </head>
    <body>
        <div id="container">
            <div id="banner">
                <h1><a href="<?php echo($GLOBALS['config']['baseurl']); ?>"><span>Temple CIS</span></a></h1>
            </div>
        <div id="navcontainer">
            <ul id="navlist">
                <?php
                // create the menu
                echo("<!-- Begin Menu -->");
                foreach( $GLOBALS['config']['modules'] as $module ) {
                    if ($module['enabled'] == "TRUE") {
                        if ($module['admin'] == "TRUE" && $_SESSION['currentuser']['useradmin'] > 0) {
                            echo("<li><a href='".$GLOBALS['config']['baseurl']."/index.php?do=".$module['name']."'>");
                            echo($module['name']."</a></li>");
                        } else if ($module['admin'] == "TRUE") {
                        } else {
                            echo("<li><a href='".$GLOBALS['config']['baseurl']."/index.php?do=".$module['name']."'>");
                            echo($module['name']."</a></li>");
                        }
                    }
	        }
                echo("<!-- End Menu -->");
                ?>
            </ul>
        </div>
        <div id="content">
            <div class="articletitle">
                <?
                echo("<!-- Begin Welcome -->");
                echo("Logged in as: <b>".$_SESSION['currentuser']['fname']." ".$_SESSION['currentuser']['lname']."</b>");
                echo(' <a href="'.$GLOBALS['config']['baseurl'].'/index.php?do=logout">(logout)</a>');
                echo("<!-- End Welcome -->");
                ?>
            </div>
                <?php
                echo("<!-- Begin Module Display -->");
                if( $module != "logout" ) {
                    require_once('modules/'.$currentmodule.'.module/'.$currentmodule.'.inc.php');
                }
                echo("<!-- End Module Display -->");
                ?>
            </div>
            <div class="footer">
                <?php
                echo("<!-- Begin Footer -->");
                require_once("includes/footer.inc.php");
                echo("<!-- End Footer -->");
                ?>
            </div>
        </div>
    </body> 
</html>

<?php
    ob_end_flush();
?>
Return current item: Cronus