wieder prune.php
Verfasst: 08.02.2006 22:19
Es ist zum verzweifeln... ich hab die Datei mittlerweile 3mal neu drauf gepackt und die Mods wieder installiert. Diesmal gibt es diesen Fehler beim betreten des Forums:
und hier ist der Abschnitt in der prune.php, bitte helft mir!!!
(mit ###### ###### ist line 32 gekennzeichnet)
Code: Alles auswählen
Parse error: parse error, unexpected T_VARIABLE, expecting '{' in /usr/export/www/hosting/valenterry/forum/phpBB2/includes/prune.php on line 32
Code: Alles auswählen
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
require($phpbb_root_path . 'includes/functions_search.'.$phpEx);
function prune($forum_id, $prune_date, $prune_all = false)
###### $sql = "SELECT * ######
FROM " . PRUNE_TABLE . "
WHERE forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not read auto_prune table', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$prune_type = ( $prune_all ) ? PRUNE_DELETE : $row['prune_type'];
$move_to = $row['move_to'];
{
global $db, $lang;
$prune_all = ($prune_all) ? '' : 'AND t.topic_vote = 0 AND t.topic_type <> ' . POST_ANNOUNCE;
//
// Those without polls and announcements ... unless told otherwise!
//
$sql = "SELECT t.topic_id
FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE t.forum_id = $forum_id
$prune_all
AND ( p.post_id = t.topic_last_post_id
OR t.topic_last_post_id = 0 )";
if ( $prune_date != '' )