<?php 
enqueue_styles();
?>

    <title><?php 
echo $setup['title'];
?>
</title>
</head>
<body class="fs-default">
<div class="content">

    <?php 
//Retrieves Header
$getCont->get_section('header');
//Sets the Content to retrieve
if ($_SESSION['authorized']) {
    if (isset($_POST['theContent'])) {
        //Retrieves general or article
        $getCont->get_section($_POST['theContent']);
    } else {
        $getCont->get_section('cwiki-general');
    }
    //Retrieves Navigation
    $getCont->get_section('cwiki-navi');
} else {
    /*If user is un-authorized they are prompted to log in*/
    $getCont->get_section('login');
    /*Put a cap on login attempts*/
}
예제 #2
0
</head>
<body class="fs-default">
<div class="content">
    <?php 
// if statement allows website home page to be toggled on and off.
if ($siteLive) {
    //checks to see if the splash setup to load
    if (($_POST['getStarted'] || $_COOKIE['getStarted']) == true) {
        //each page load without a splash starts a new cookie for 1hour without a splash
        setcookie("getStarted", true, time() + 3600);
        $doNotSplash = true;
    }
    //Retrieves Splash OR the Content
    if (!$doNotSplash) {
        $getCont->get_splash();
        $getCont->get_section('naviSplash');
    } else {
        //Retrieves Header
        $getCont->get_section('header');
        //Sets the Content to retrieve
        if (isset($_POST['theContent'])) {
            $theContent = $_POST['theContent'];
        } else {
            $theContent = 'default';
        }
        //Retrieves Showcase/Gallery/Contact
        $getCont->get_section($theContent);
        //Retrieves Navigation
        $getCont->get_section('navi');
    }
} else {