<?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 reviews MAXIMUS directly...');

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

$sql = "SELECT `id`, `title` FROM `".TABLE_REVIEWS."` ORDER BY `id` DESC LIMIT 0,10";
if ( !($result = $GLOBALS['db']->sql_query($sql)) )
{ query_die(CORE_ERROR, 'Could not obtain _reviews', '', __LINE__, __FILE__, $sql);}
while ($row = $GLOBALS['db']->sql_fetchrow($result)) {
$id    = $GLOBALS['db']->XMFnum($row['id']);
$title = stripslashes($row['title']);
    $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Reviews&amp;rop=showcontent&amp;id=$id\">$title</a><br />";
}

closecacheb ( "".$content."", 'Reviews', 'html' , "".CACHE_BL_REVIEWS."", '1' );
}