<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
defined('MAXIMUS') or die ('Access denied block encyclopedia MAXIMUS directly...');

if ( $content = opencacheb ( 'Encyclopedia', 'html' , "".CACHE_BL_ENCYCLOP."", '1' ) ) {
} else {

$sql = "SELECT `eid`, `title` FROM `".TABLE_ENCYCLOPEDIA."` WHERE `active`='1'";
if ( !($result = $GLOBALS['db']->sql_query($sql)) )
{ query_die(BLOCK_ERROR, 'Could not obtain _encyclopedia', '', __LINE__, __FILE__, $sql);}
while ($row = $GLOBALS['db']->sql_fetchrow($result)) {
$eid   = $GLOBALS['db']->XMFnum($row['eid']);
$title = stripslashes($row['title']);
    $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Encyclopedia&amp;op=list_content&amp;eid=$eid\">$title</a><br />";
}

closecacheb ( "".$content."", 'Encyclopedia', 'html' , "".CACHE_BL_ENCYCLOP."", '1' );
}