Ignore:
Timestamp:
10/02/07 22:27:18 (5 years ago)
Author:
hverton
Message:

Added an image upload function to the Wiki module
Optimized the speed of the download panels
Fixed a crash due to "attachment to big" in M2F

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php

    r844 r862  
    388388                                                break; 
    389389                                            case 1: 
    390                                                 // attach the attachments to the email 
    391                                                 $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 
    392                                                 break; 
     390                                                // check the size of the attachments, don't send it out if it's to big 
     391                                                if (filesize(PATH_ATTACHMENTS.$attachment['attach_name']) < M2F_MAX_ATTACH_SIZE) { 
     392                                                    // attach the attachments to the email 
     393                                                    $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 
     394                                                    break; 
     395                                                } 
    393396                                            case 2: 
    394397                                                // add a link pointing to the attachment 
     
    405408                                            break; 
    406409                                        case 1: 
    407                                             // attach the attachments to the email 
    408                                             $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 
    409                                             break; 
     410                                            // check the size of the attachments, don't send it out if it's to big 
     411                                            if (filesize(PATH_ATTACHMENTS.$attachment['attach_name']) < M2F_MAX_ATTACH_SIZE) { 
     412                                                // attach the attachments to the email 
     413                                                $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 
     414                                                break; 
     415                                            } 
    410416                                        case 2: 
    411417                                            // add a link pointing to the attachment 
Note: See TracChangeset for help on using the changeset viewer.