Location: PHPKode > projects > Content*Builder > modules/forum/prepend.inc.php
<?php

/**
 * Prepend File
 * enthält wichtige Einstellungen für alle relevanten Forum 
 * Aktivitäten
 *
 * @version $Id: prepend.inc.php,v 1.3 2004/05/26 20:30:01 cb_fog Exp $
 * @copyright 2003 C*B Development Team
**/

/*
* Category Options Konstanten
*/
define("FORUM_CATEGORY_WRITEABLE", 1 << 0);

require_once($path['cb'].$cbDirLib."CB_Forum.class.php");
require_once($path['cb'].$cbDirLib."CB_pageSplit.class.php");
require_once($path['cb'].$cbDirLib."CB_media.class.php");
require_once($path['cb'].$cbDirLib."CB_NestedSet.class.php");
require_once("Text/Highlighter.php");
require_once("HTML/BBCodeParser.php");

$forum_option = new CBOption();
$forum_option->setModule("forum");
$forum_option->getOptionList();

/*
* Option auslesen, wie Threads gezeigt werden sollen
*/
$forum_display_method = $forum_option->getSingleOption("display_method");
if(!is_dir($actualModuleDir."plugins/views/".$forum_display_method)) {
	$forum_display_method = "default";
}

/*
* Forum Standard Link
*/
$forum_link = $PHP_SELF."?load=forum&openfolder=$openfolder";

/* 
* Initialisierung der NeSet Array's für das 
* Message Nested Set Objekt 
*/
$messageParams = array (
	'table'  => TABLE.'_forum_message',
	'id'     => 'messageID',
	'parent' => 'parentID',
	'root'   => 'rootID',
	'l'      => 'leftID',
	'r'      => 'rightID',
	'level'  => 'level',
	'norder' => 'order_num'
);

$messageAdditional = array (
	'title'      => 'title',
	'message'    => 'message',
	'original'   => 'originalMessage',
	'userID'     => 'userID',
	'insertDate' => 'insertDate',
	'editDate'   => 'editDate'
);
	
$nestedSet_message = CB_NestedSet::factory($messageParams, $messageAdditional);

$categoryParams = array (
	'table'  => TABLE.'_forum_category',
	'id'     => 'categoryID',
	'parent' => 'parentID',
	'root'   => 'rootID',
	'l'      => 'leftID',
	'r'      => 'rightID',
	'level'  => 'level',
	'norder' => 'order_num'
);

$categoryAdditional = array (
	'name'        => 'name',
	'description' => 'description',
	'datetime'    => 'datetime',
	'options'     => 'options'
);
	
$nestedSet_category = CB_NestedSet::factory($categoryParams, $categoryAdditional);

?>
Return current item: Content*Builder