芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/shphe-en.com/wp-content/plugins/blog2social/includes/B2S/User/Info.php
' . __('Number of shared posts', 'blog2social') . '
' . ((int) self::getStatsTodayCount()) . '
' . __('Number of scheduled posts', 'blog2social') . '
' . ((int) self::getStatsTodayCount('sched')) . '
'; return $content; } private static function getStatsTodayCount($type = 'publish') { global $wpdb; $addNotAdmin = (B2S_PLUGIN_ADMIN == false) ? ' AND `blog_user_id` = ' . B2S_PLUGIN_BLOG_USER_ID : ''; $where = ($type == 'publish') ? " `sched_date` = '0000-00-00 00:00:00' AND DATE_FORMAT(publish_date,'%Y-%m-%d') = '" . date('Y-m-d', current_time('timestamp')) . "' " : " `publish_date` = '0000-00-00 00:00:00' AND DATE_FORMAT(sched_date,'%Y-%m-%d') = '" . date('Y-m-d', current_time('timestamp')) . "' "; $sqlPostsTotal = "SELECT COUNT(`id`) FROM `b2s_posts` WHERE " . $where . $addNotAdmin . ' AND hide="0"'; return $wpdb->get_var($sqlPostsTotal); } }