function group_sub_by_date($fields = "*", $date = '', $col_by = 'hits', $order = 'desc', $num = 10) { $fields = filt_fields($fields); if ($col_by != 'hits') { $col_by = "comments"; } $order = filt_order($order); $condition = str_replace("{date}", "add_time", date_filter($date)); return group_sub_read_base($fields, $condition, '', $num, $col_by, $order); }
function poll_self_by_date($fields = "*", $date = "", $by_col = 'voternum', $order = "desc", $num = 10) { if ($by_col != 'voternum') { $by_col = 'comments'; } $num = intval($num); $order = filt_order($order); $condition = str_replace("{date}", "dateline", date_filter($date)); return poll_read_base($fields, $condition, "", $num, $by_col, $order, 1, "poll_" . $by_col . "_"); }
function blog_self_by_date($fields = "*", $date = '', $by_col = 'hits', $order = "desc", $num = 10) { $num = intval($num); $fields = filt_fields($fields); $order = filt_order($order); if ($by_col != 'hits') { $by_col = 'comments'; } $condition = str_replace("{date}", "add_time", date_filter($date)); return blog_read_base("*", $condition, "", $by_col, $order, $num); }