Ajout des fonctionnalités #2188851 et #2188856

This commit is contained in:
Leblanc Simon 2009-03-01 17:49:26 +00:00
commit e317d96322
7 changed files with 114 additions and 11 deletions

View file

@ -129,13 +129,13 @@ require PUN_ROOT.'include/functions.php';
// Load DB abstraction layer and try to connect
require PUN_ROOT.'include/dblayer/common_db.php';
// Load cached config
@include PUN_ROOT.'cache/cache_config.php';
if (!defined('PUN_CONFIG_LOADED'))
{
require PUN_ROOT.'include/cache.php';
generate_config_cache();
require PUN_ROOT.'cache/cache_config.php';
// Load cached config
@include PUN_ROOT.'cache/cache_config.php';
if (!defined('PUN_CONFIG_LOADED'))
{
require PUN_ROOT.'include/cache.php';
generate_config_cache();
require PUN_ROOT.'cache/cache_config.php';
}
// Make sure we (guests) have permission to read the forums
@ -363,6 +363,10 @@ else if ( $_GET['action'] == 'topic') {
;';
$result = $db->query($sql) or error('Unable to fetch posts list', __FILE__, __LINE__, $db->error());
if (isset($_GET['max_subject_length']) && is_numeric($_GET['max_subject_length']) && !empty($_GET['max_subject_length'])) {
$max_subject_length = $_GET['max_subject_length'];
}
while ($cur_post = $db->fetch_assoc($result))
{