Esempio n. 1
0
* @version  $Revision$
* @package  pdf
*/
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See below for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
/**
* required setup
*/
require_once '../kernel/setup_inc.php';
include_once STRUCTURES_PKG_PATH . 'struct_lib.php';
include_once WIKI_PKG_PATH . 'BitPage.php';
$gContent = new BitPage();
// Create the HomePage if it doesn't exist
if (!$gContent->pageExists($wiki_home_page)) {
    $gContent->create_page($wiki_home_page, 0, '', $gBitSystem->getUTCTime(), 'bitweaver initialization');
}
if (!isset($_SESSION["thedate"])) {
    $thedate = $gBitSystem->getUTCTime();
} else {
    $thedate = $_SESSION["thedate"];
}
// Get the page from the request var or default it to HomePage
if (!isset($_REQUEST["page"])) {
    $page = $wiki_home_page;
    $gBitSmarty->assign('page', $wiki_home_page);
} else {
    $page = $_REQUEST["page"];
    $gBitSmarty->assignByRef('page', $_REQUEST["page"]);
}
require_once WIKI_PKG_PATH . 'page_setup_inc.php';