id="post-">
Benutze doch', FB_BASIS_TEXTDOMAIN); ?>
get_var("SELECT COUNT($ID)
FROM $wpdb->posts
WHERE post_status = 'publish'
");
return $totalposts;
}
// Get Total Comments
function get_totalcomments() {
global $wpdb;
$comment_ID = (int) 'comment_ID';
$totalcomments = $wpdb->get_var("SELECT COUNT($comment_ID)
FROM $wpdb->comments
WHERE comment_approved = '1'
");
return $totalcomments;
} ?>
Deine Daten:
';
echo 'User Agent: ' . $HTTP_USER_AGENT . '
';
echo 'Adresse: ' . $REMOTE_ADDR . '
';
echo 'URL: ' . $SERVER_NAME . $REQUEST_URI;
$count = 0;
if (($HTTP_REFERER == '') || (strpos($HTTP_REFERER, 'wp-admin') !== false) || (strpos($HTTP_REFERER, 'wp-content') !== false) || (strpos($HTTP_REFERER, 'images') !== false)) {
$count++;
}
if ($count == 0) {
$today = date("j F Y, G:i:s");
$message = __('Datum und Zeit: ', FB_BASIS_TEXTDOMAIN) . $today . "\n";
$message .= 'Request URL: http://' . $SERVER_NAME . $REQUEST_URI . "\n";
$message .= 'Referring page: ' . $HTTP_REFERER . "\n\n";
$message .= 'Client: ' . $HTTP_USER_AGENT . "\n";
$message .= 'Remote IP: ' . $REMOTE_ADDR . "\n\n";
$message .= __('Das ist eine automatische Mitteilung, eine Antwort ist vergeblich. Diese Mitteilung wird jedesmal gesendet, wenn ein nicht existierendes Dokument verlangt wird. Damit können wir das Problem eventuell beheben.', FB_BASIS_TEXTDOMAIN) . "\n\n";
$message .= 'Einen schönen Tag noch.';
// Deaktivate
//mail("info@$SERVER_NAME", "Error 404", $message, "From: info@$SERVER_NAME");
}
?>