Witam
Moderatorzy mojego forum od kilku dni na nim błąd, przez co nie mają dostępu do forum.
Kod:
sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not query
forums.', '', __LINE__, __FILE__, $sql); } while( $row =
$db->sql_fetchrow($result) ) {
$forums_id[$row['user_id']][$row['forum_id']] = $row['forum_id']; } if
(empty($forum_id)) { $forums = (!empty($forums_id[$user_id])) ?
implode(', ', $forums_id[$user_id]) : ''; } else { $forums =
in_array($forum_id, $forums_id[$user_id]); } return $forums; }
function email_to_mods($forum_id, $username, $post_raport) { global
$emailer, $board_config, $phpEx, $db; static $header, $email_headers,
$server_url; include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1",
trim($board_config['script_path'])); $script_name = ( $script_name !=
'' ) ? $script_name . '/' : ''; $server_url = (
$board_config['cookie_secure'] ? 'https://' : 'http://' ) .
trim($board_config['server_name']) . ( $board_config['server_port'] <>
80 ? ':' . trim($board_config['server_port']) . '/' : '/' ) .
$script_name; $sql = "SELECT aa.forum_id, u.user_id, u.username,
u.user_email FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE .
" ug, " . USERS_TABLE . " u WHERE aa.auth_mod = " . TRUE . " AND
aa.forum_id = ".$forum_id." AND ug.group_id = aa.group_id AND
u.user_id = ug.user_id GROUP BY u.user_id, aa.forum_id ORDER BY
aa.forum_id, u.user_id"; if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, 'Could not query forum moderator
information', '', __LINE__, __FILE__, $sql); } while( $row =
$db->sql_fetchrow($result) ) { $emailer = new
emailer($board_config['smtp_delivery']);
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->use_template('raport_post', stripslashes($user_lang));
$emailer->email_address($row['user_email']);
$emailer->set_subject($lang['raport_email']);
$emailer->assign_vars(array( 'SITENAME' => $board_config['sitename'],
'USERNAME' => $username, 'POST_URL' => $server_url .
"viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_raport . '#' .
$post_raport, 'EMAIL_SIG' =>
(!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', ) );
$emailer->send(); $emailer->reset(); } } function skr($tekst,
$il_znakow) { if (strlen($tekst) > $il_znakow) return substr($tekst,
0, strrpos(substr($tekst, 0, $il_znakow), " ")).'...'; else return
$tekst; } ?>
Fatal error: Call to undefined function forum_moderator() in
/var/www/virtual/xxxl/www/forum/includes/page_header.php on line
178
Proszę o pomoc... forum jest o wersji 2.0.17
Uwagi moderatora jackie (dodane 28 Kwi 2008, 13:39):
Ostatnio edytowany przez jackie, 28 Kwi 2008, 13:39, edytowano w sumie 1 raz