<?
      
//WESTERN STUDIOS POSTS PER DAY HACK
        
if($HTTP_POST_VARS['mode'] != "delete")
        {

        
$numwstime $db->sql_numrows($db->sql_query("SELECT poster_id FROM "POSTS_TABLE " WHERE post_time >= '".(time()-86400)."' AND poster_id='".$userdata['user_id']."'"));


            if (
$numwstime >= "2" AND !$is_auth['auth_mod'])
            {
                    
$error_msg 'You have reached your maximum of <b><font color="#ff0000">10</font></b> posts per day.';
                    
$error true;
            }
        }
//END
      
?>