- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
switch ( ! empty($rules['last_online']) )
{
case '3days':
$where .= " AND last_online > NOW() - INTERVAL '3 DAYS' ";
break;
case 'week':
$where .= " AND last_online > NOW() - INTERVAL '7 DAYS' ";
break;
case 'month':
$where .= " AND last_online > NOW() - INTERVAL '1 MONTH' ";
break;
}