Seite 1 von 1
Fehler beim Deaktivieren des Forums...
Verfasst: 10.02.2003 17:04
von AWSW
Hallo,
wenn ich eines meiner Foren im ACP deaktivieren möchte, erhalte ich nach Aufruf des Indexes dann leider diese Meldung:
Fatal error: Call to undefined function: include_attach_lang() in /homepages/79/d123456789/htdocs/Forum/includes/functions.php on line 260
Hier meine
functions.php
Die Zeile 260 ist diese hier:
include_attach_lang();
Danke für jeden Tipp

Verfasst: 10.02.2003 21:32
von Acyd Burn
Der Fehler ist in der common.php-datei.
Der include für die attachment_mod.php muss über die message_die funktion.
Verfasst: 10.02.2003 21:40
von AWSW
Hallo & Danke für Deine schnelle Hilfe
Meinst Du das so ???
Aus:
//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
//
// select default template mod
//
if ($template)
{
$board_config['default_style'] = $template;
setcookie('default_style',$template , (time()+21600), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
} else if (isset($HTTP_COOKIE_VARS['default_style']) )
$board_config['default_style']=$HTTP_COOKIE_VARS['default_style'];
//
// select default template mod
//
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
?>
So umgestellt:
//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
//
// select default template mod
//
if ($template)
{
$board_config['default_style'] = $template;
setcookie('default_style',$template , (time()+21600), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
} else if (isset($HTTP_COOKIE_VARS['default_style']) )
$board_config['default_style']=$HTTP_COOKIE_VARS['default_style'];
//
// select default template mod
//
?>
Danke !!!
Verfasst: 10.02.2003 21:50
von Acyd Burn
jep.

Verfasst: 10.02.2003 21:51
von AWSW