if ($daysprune != 1000) { $checkdate = time() - ($daysprune * 86400); $datecut = 'AND lastpost >= ' . $checkdate; }
if ($daysprune != 1000) { $checkdate = time() - ($daysprune * 86400); $datecut = 'AND thread.lastpost >= ' . $checkdate; }