05 |
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')); |
06 |
$limitday = $ntime - ($subday * 24 * 3600); |
07 |
$orwheres[] = " arc.senddate > $limitday "; |
09 |
else if ($subday == 2) |
11 |
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')); |
12 |
$limitday = $ntime - ($subday * 24 * 3600); |
14 |
$orwheres[] = " arc.senddate > $lomitday && arc.senddate < $limitday"; |
16 |
else if ($subday == 3) |
18 |
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')); |
19 |
$limitday = $ntime -($subday * 24 * 3600)+(1*24 * 3600); |
20 |
$orwheres[] = " arc.senddate < $limitday "; |
22 |
else if ($subday == 7) |
24 |
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')); |
25 |
$limitday = $ntime - ($subday * 24 * 3600); |
26 |
$orwheres[] = " arc.senddate > $limitday "; |
|