Added regex-matching functions for date differences in post log upload. Refactored upload.php