#61
Мой косяк при подготовке инструкции, шишки кидать в меня.
В инструкции:
найди:
В инструкции:
# ---- [ Найти ] ------------------- if (!IS_AM) bb_die($lang['ONLY_FOR_MOD']); # ---- [ Заменить на ] ------------------- global $template, $attach_config, $bb_cfg, $lang, $return_message, $reg_mode, $tr_cfg, $userdata;Правильно будет так:
# ---- [ Найти ] ------------------- global $template, $attach_config, $bb_cfg, $lang, $return_message, $reg_mode, $tr_cfg; # ---- [ Заменить на ] ------------------- global $template, $attach_config, $bb_cfg, $lang, $return_message, $reg_mode, $tr_cfg, $userdata;
Notice: Undefined variable: userdata in C:\www\includes\functions_torrent.php on line 388 строчка - if ($userdata['user_id'] == $torrent['poster_id'] && bf($userdata['group_opt'], 'group_opt', 'torstatus'))конкретное решение по твоей проблеме:
найди:
global $template, $attach_config, $bb_cfg, $lang, $return_message, $reg_mode, $tr_cfg, $userdata;замени на:
if (!IS_AM) bb_die($lang['ONLY_FOR_MOD']);найди:
global $template, $attach_config, $bb_cfg, $lang, $return_message, $reg_mode, $tr_cfg;замени на:
global $template, $attach_config, $bb_cfg, $lang, $return_message, $reg_mode, $tr_cfg, $userdata;