", $end_wrap="") { global $wpdb; global $table_prefix; $counter = 0; //首先通过判断是否显示时间区间来分别使用不同的sql语句 if ($how_long > 0) { $blogs = $wpdb->get_col("select blog_id from $wpdb->blogs where public = '1' and archived = '0' and mature = '0' and spam = '0' and deleted = '0' and last_updated >= date_sub(current_date(), interval $how_long day) order by last_updated desc"); } else { $blogs = $wpdb->get_col("select blog_id from $wpdb->blogs where public = '1' and archived = '0' and mature = '0' and spam = '0' and deleted = '0' order by last_updated desc"); } //如果存在多站点id if ($blogs) { echo "
网站地图