Matthew M tweaked by Brendan Borlaise.
Author: Matthew Maber & Brendan Borlase
Version: 1.4.1
Author URI: http://www.somefoolwitha.com/
*/
/* Made into a plugin by http://www.smackfoo.com/ */
/* iphone detection from iWPhone http://iwphone.contentrobot.com */
/* UTW IS NOW SUPPORTED - IF TAG COUNT IS *NOT* DISPLAYED, SCROLL DOWN AND UPDATE THE $tags VARIABLE */
function admin_strip_css() {
echo '';
}
// and so it begins
function admin_strip() {
// PLEASE EDIT THE TAGS VARIABLE BELOW TO MATCH YOUR WORDPRESS DATABASE PREFIX (default is wp_)
$tags = 'wp_tags';
// PLEASE DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
global $user_level, $wpdb;
if ($user_level > 8) {
$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
$akismet_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = 'spam'");
$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
if (0 < $numposts) $numposts = number_format($numposts);
$numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
if (0 < $numcomms) $numcomms = number_format($numcomms);
$numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories");
if (0 < $numcats) $numcats = number_format($numcats);
if (function_exists('UTW_ShowCurrentTagSet')) {
$numtags = $wpdb->get_var("SELECT COUNT(*) FROM $tags");
if (0 < $numtags) $numtags = number_format($numtags); }
?>
---!!!!!!!!!!You are on an iPhone or iPod touch - Lucky you!
");
}else{ ?>