public function produceComments()
 {
     $this->template->comments = $this->template->getTemplate('comments', 'comments');
     $this->template->formAction = $this->url->getActionParamURL('comment', array($this->url->getParameter(0)));
     if (($comments = $this->values->comments) != null) {
         foreach ($comments as $comment) {
             $this->template->commentItems .= $this->makeComment($comment);
         }
         $index = PageIndex::make($this->values->commentPageNumbers);
         $this->template->commentIndex = DOMFactory::getDiv($index)->addId('comment');
     }
 }
示例#2
0
 function logiksRequestBoot()
 {
     if (LogiksSingleton::funcCheckout("logiksRequestBoot")) {
         _envData("SESSION", 'QUERY', $_GET);
         _envData("SERVER", 'REQUEST_PATH', SiteProtocol . "://" . _server('HTTP_HOST') . _server('REQUEST_URI'));
         $page = PageIndex::findPageFromURL(SITENAME);
         _envData("SERVER", "PAGE", $page);
         define("PAGE", $page);
         if (!isset($_SESSION['SESS_USER_ID'])) {
             $_SESSION['SESS_USER_ID'] = "guest";
         }
         if (!isset($_SESSION['SESS_USER_NAME'])) {
             $_SESSION['SESS_USER_NAME'] = "Guest";
         }
     }
 }
示例#3
0
<?php

// init pageindex cache
define('INC_MONIWIKI', 1);
include_once "wiki.php";
# Start Main
$Config = getConfig("config.php");
require_once "wikilib.php";
require_once "lib/win32fix.php";
require_once "lib/wikiconfig.php";
require_once "lib/cache.text.php";
require_once "lib/PageIndex.php";
$Config = wikiConfig($Config);
$DBInfo = new WikiDB($Config);
$options = array();
if (class_exists('Timer')) {
    $timing = new Timer();
    $options['timer'] =& $timing;
    $options['timer']->Check("load");
}
$indexer = new PageIndex();
$indexer->init();
// vim:et:sts=4:sw=4: