$value ) {
if ( !in_array( $option, array( '_wpnonce', '_wp_http_referer', 'action', 'submit' ) ) ) {
$option = trim( $option );
$value = is_array( $value ) ? $value : trim( $value );
$value = stripslashes_deep( $value );
if ( $option == 'uri' && !empty( $value ) ) {
$value = rtrim( $value, " \t\n\r\0\x0B/" ) . '/';
}
if ( $value ) {
bb_update_option( $option, $value );
$msg = '
';
} else {
bb_delete_option( $option );
}
}
}
}
?>
get_var("SELECT COUNT(DISTINCT postID) FROM `{$bbdb->prefix}custom_reports` WHERE `status` = 1");
$pages = ceil($total_records / $limit);
$reported_posts = $bbdb->get_results( "SELECT DISTINCT postID FROM `{$bbdb->prefix}custom_reports` WHERE `status` = 1 LIMIT $limit OFFSET $offset" );
?>
1) {
?>
get_var("SELECT COUNT(*) FROM `{$bbdb->prefix}custom_reports` WHERE `postId` = '{$post_id}' AND `status` = 1");
$pages = ceil($total_records / $limit);
$reports = $bbdb->get_results( "SELECT * FROM `{$bbdb->prefix}custom_reports` WHERE `postId` = '{$post_id}' AND `status` = 1 ORDER BY `reported_date` DESC LIMIT $limit OFFSET $offset" );
?>
Reports
| Report Type |
Reporter's Comment |
Date Reported |
Reporter's IP |
# Reports |
id="report-id; ?>">
| report_option; ?> |
- reporter_comment)) { echo nl2br($report->reporter_comment); } else { echo 'NIL'; } ?>
|
reported_date; ?> |
reporter_ip; ?> |
Delete |
| Report Type |
Reporter's Comment |
Date Reported |
Reporter's IP |
# Reports |
1) {
?>
prepare(
"DELETE FROM `{$bbdb->prefix}custom_reports` WHERE `id` = %d;",
(int) $id
);
$bbdb->query( $prepared_query );
$reportCount = $bbdb->get_var( "SELECT COUNT(*) FROM `{$bbdb->prefix}custom_reports` WHERE `postId` = '{$post_id}' AND `status` = 1" );
if ($reportCount > 0) {
?>
< Back to Reports for the post
< Back to Reports
The report has been deleted.