Guest User

Untitled

a guest
Sep 3rd, 2016
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function postcount () {
  2.    
  3.         global $db, $mybb, $posts;
  4.         $date = strtotime("1".date(" M Y"));
  5.             $post_file = $db->simple_select("posts", "pid", "username='Admin' AND dateline > ".$date." AND visible='1'");
  6.             while ($post = $db->fetch_array($post_file))
  7.             {
  8.                 $posts++;
  9.             }
  10. }
RAW Paste Data