tom322I would avoid using straight NOW() as mySQL command. From my experience, mySQL database and PHP could be set up in different time zones ('cause placed on different servers). If we deal with PHP, then I'd prefer to use PHP commands only, and your code would be improved to that (I didn't check it):
$secFromReg=84000; //how many seconds the newly registered user must wait before he can make a post
$canPost=FALSE;
if(($action=='pthread' or $action=='ptopic' or action=='vthread' or action=='vforum') and $user_id>1 and !$isMod){
if($row=db_simpleSelect(0, $Tu, "{$dbUserSheme['user_regdate'][1]}", "{$dbUserId}", '=', $user_id)) {
if(time()>strtotime($row[0])+$secFromReg) $canPost=TRUE;
}
}
if(!$canPost) $roForums[]=$forum;