| @@ 1610-1611 (lines=2) @@ | ||
| 1607 | if (strpos($file, 'post_tmp_') !== false) |
|
| 1608 | { |
|
| 1609 | // Temp file is more than 5 hours old! |
|
| 1610 | if (filemtime($attach_dir . '/' . $file) < time() - 18000) |
|
| 1611 | @unlink($attach_dir . '/' . $file); |
|
| 1612 | } |
|
| 1613 | // That should be an attachment, let's check if we have it in the database |
|
| 1614 | elseif (strpos($file, '_') !== false) |
|
| @@ 1641-1642 (lines=2) @@ | ||
| 1638 | if (strpos($file, 'post_tmp_') !== false) |
|
| 1639 | { |
|
| 1640 | // Temp file is more than 5 hours old! |
|
| 1641 | if (filemtime($attach_dir . '/' . $file) < time() - 18000) |
|
| 1642 | @unlink($attach_dir . '/' . $file); |
|
| 1643 | } |
|
| 1644 | } |
|
| 1645 | closedir($dir); |
|