Probleme mit Attachment MOD
Verfasst: 11.09.2004 11:36
sers...
habs grade installt und nach dem testen ne felhermeldung von sys bekommen von einer der dateien die von programm also vom mod mitgeliefert werden =>
Fatal error: Cannot redeclare attach_faq_include() (previously declared in E:\WWW-Server\board\attach_mod\includes\functions_includes.php:31) in E:\WWW-Server\board\attach_mod\includes\functions_includes.php on line 31
Hier der quelltext:
//
// Include the FAQ-File (faq.php)
//
function attach_faq_include($lang_file) // => line 31!!!
{
global $phpbb_root_path, $board_config, $phpEx, $faq, $attach_config;
if (intval($attach_config['disable_mod']))
{
return;
}
if ($lang_file == 'lang_faq')
{
if (!file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.'.$phpEx))
{
include($phpbb_root_path . 'language/lang_english/lang_faq_attach.'.$phpEx);
}
else
{
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.' . $phpEx);
}
}
}
habs grade installt und nach dem testen ne felhermeldung von sys bekommen von einer der dateien die von programm also vom mod mitgeliefert werden =>
Fatal error: Cannot redeclare attach_faq_include() (previously declared in E:\WWW-Server\board\attach_mod\includes\functions_includes.php:31) in E:\WWW-Server\board\attach_mod\includes\functions_includes.php on line 31
Hier der quelltext:
//
// Include the FAQ-File (faq.php)
//
function attach_faq_include($lang_file) // => line 31!!!
{
global $phpbb_root_path, $board_config, $phpEx, $faq, $attach_config;
if (intval($attach_config['disable_mod']))
{
return;
}
if ($lang_file == 'lang_faq')
{
if (!file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.'.$phpEx))
{
include($phpbb_root_path . 'language/lang_english/lang_faq_attach.'.$phpEx);
}
else
{
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.' . $phpEx);
}
}
}