Ich habe eine Frage zum Download Mod
Verfasst: 06.09.2008 23:24
Wenn ich diesen
Befehl in functions.php eingebe dann bekomme ich folgene Fehlermeldung
[ externes Bild ]
Was mache ich falsch??? Wie schon gesagt ist es der Download Mod
Code: Alles auswählen
// Download MOD 6
if ( $user->data['user_new_download'] )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_new_download = 0
WHERE user_id = " . $user->data['user_id'];
$db->sql_query($sql);
if ($user->data['user_dl_note_type'])
{
$template->assign_var('S_NEW_DL_POPUP', true);
$template->assign_vars(array(
'U_NEW_DOWNLOAD_POPUP' => append_sid("{$phpbb_root_path}downloads.{$phpEx}?view=popup"))
);
}
else
{
$template->assign_var('S_NEW_DL_MESSAGE', true);
$template->assign_vars(array(
'NEW_DOWNLOAD_MESSAGE' => sprintf($user->lang['NEW_DOWNLOAD'], '<a href="'.append_sid("{$phpbb_root_path}downloads.$phpEx").'">', '</a>'))
);
}
}
$sql = "SELECT config_value FROM " . DL_CONFIG_TABLE . "
WHERE config_name = 'use_hacklist'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$use_hacklist = intval($row['config_value']);
$db->sql_freeresult($result);
if ($use_hacklist)
{
$sql = "SELECT count(id) as total FROM " . DOWNLOADS_TABLE . "
WHERE hacklist = 1";
$result = $db->sql_query($sql);
if ($result)
{
$row = $db->sql_fetchrow($result);
$total = $row['total'];
if ($total)
{
$u_hacks_list = append_sid("{$phpbb_root_path}hacks_list.$phpEx");
$l_hacks_list = $user->lang['DL_HACKS_LIST'];
$img_hacklist = $user->img('menu_hacklist');
$template->assign_var('S_HACKLIST_ON', true);
}
else
{
$u_hacks_list = $img_hacklist = $l_hacks_list = '';
}
}
$db->sql_freeresult($result);
}
else
{
$u_hacks_list = $img_hacklist = $l_hacks_list = '';
}
if ($user->data['is_registered'])
{
$sql = "SELECT count(id) as total FROM " . DL_CAT_TABLE . "
WHERE bug_tracker = 1";
$result = $db->sql_query($sql);
if ($result)
{
$row = $db->sql_fetchrow($result);
}
$db->sql_freeresult($result);
if ($row['total'] != 0)
{
$template->assign_var('S_BUGTRACKER_ON', true);
$template->assign_vars(array(
'L_BUG_TRACKER' => $user->lang['DL_BUG_TRACKER'],
'U_BUG_TRACKER' => append_sid("{$phpbb_root_path}downloads.{$phpEx}?view=bug_tracker"))
);
}
}
// End Download MOD 6
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 2723: debug_backtrace() has been disabled for security reasons
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 2726: Invalid argument supplied for foreach()
Zurück zur Foren-Übersicht
Allgemeiner Fehler
SQL ERROR [ mysql4 ]
Table 'allphpbb_01.DL_CONFIG_TABLE' doesn't exist [1146]
SQL
SELECT config_value FROM DL_CONFIG_TABLE WHERE config_name = 'use_hacklist'
BACKTRACE
Bitte informiere die Board-Administration oder den Webmaster: schloesser-jsn@online.de
Was mache ich falsch??? Wie schon gesagt ist es der Download Mod