Warning: sprintf(): Too few arguments in /home/leveninh/public_html/album_comment.php on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/leveninh/public_html/album_comment.php:325) in /home/leveninh/public_html/includes/page_header.php on line 557
Warning: Cannot modify header information - headers already sent by (output started at /home/leveninh/public_html/album_comment.php:325) in /home/leveninh/public_html/includes/page_header.php on line 559
Warning: Cannot modify header information - headers already sent by (output started at /home/leveninh/public_html/album_comment.php:325) in /home/leveninh/public_html/includes/page_header.php on line 560
Code: Selecteer alles
$edit_info = '<br /><br />» '. sprintf($edit_info, $lastedit_row['username'], create_date($board_config['default_dateformat'], $commentrow[$i]['comment_edit_time'], $board_config['board_timezone']), $commentrow[$i]['comment_edit_count']) .'<br />';
}
else
{
$edit_info = '';
}
$template->assign_block_vars('commentrow', array(
'ID' => $commentrow[$i]['comment_id'],
'POSTER' => $poster,
'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']),
'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '',
'TEXT' => nl2br($commentrow[$i]['comment_text']),
'EDIT_INFO' => $edit_info,
'EDIT' => ( ( $auth_data['edit'] and ($commentrow[$i]['comment_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_edit_level'] != ALBUM_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. append_sid("album_comment_edit.$phpEx?comment_id=". $commentrow[$i]['comment_id']) .'">'. $lang['Edit_pic'] .'</a>' : '',
'DELETE' => ( ( $auth_data['delete'] and ($commentrow[$i]['comment_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_delete_level'] != ALBUM_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. append_sid("album_comment_delete.$phpEx?comment_id=". $commentrow[$i]['comment_id']) .'">'. $lang['Delete_pic'] .'</a>' : ''
)
);
}
$template->assign_block_vars('switch_comment', array());
$template->assign_vars(array(
'PAGINATION' => generate_pagination(append_sid("album_comment.$phpEx?pic_id=$pic_id&sort_order=$sort_order"), $total_comments, $comments_per_page, $start),
'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $comments_per_page ) + 1 ), ceil( $total_comments / $comments_per_page ))
)
);
}
//
// Start output of page
//
$page_title = $lang['Album'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
