($first_post_time>time()-60*60*24*14)&&// i.e. a recent spammer, not a normal member being punished
(($GLOBALS['DEV_MODE'])||($first_post_time>time()-60*60*24*14))&&// i.e. a recent spammer, not a normal member being punished
((!is_guest($member_id))||($ip_address!==null))
){
$where=array();
@@ -456,11 +456,11 @@ class Module_warnings extends Standard_crud_module
}else{
$where['p_poster']=$member_id;
}
$sup='ORDER BY p_time';
$sup='ORDER BY p_time DESC';
if(!has_privilege(get_member(),'view_other_pt')){
$sup=' AND p_cache_forum_id IS NOT NULL '.$sup;
}
$posts_by_member=$GLOBALS['FORUM_DB']->query_select('f_posts p JOIN '.$GLOBALS['FORUM_DB']->get_table_prefix().'f_topics t ON t.id=p.p_topic_id',array('p.*','t_cache_first_post_id','t_cache_last_post_id','t_cache_num_posts','t_cache_first_title','p_cache_forum_id'),$where,$sup);
$posts_by_member=$GLOBALS['FORUM_DB']->query_select('f_posts p JOIN '.$GLOBALS['FORUM_DB']->get_table_prefix().'f_topics t ON t.id=p.p_topic_id',array('p.*','t_cache_first_post_id','t_cache_last_post_id','t_cache_num_posts','t_cache_first_title','p_cache_forum_id'),$where,$sup,10);