Changeset 1246 for trunk/expressoMail1_2


Ignore:
Timestamp:
08/03/09 09:54:23 (15 years ago)
Author:
fpcorrea
Message:

Ticket #573 - Importação de mensagens é limitado pelo tamanho máximo de anexos

Location:
trunk/expressoMail1_2
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/controller.php

    r1061 r1246  
    77        ); 
    88} 
    9 require_once '../header.session.inc.php'; 
     9require_once '../header.inc.php'; 
    1010 
    1111        //      Explode action from cExecuteForm function 
  • trunk/expressoMail1_2/inc/class.exporteml.inc.php

    r1066 r1246  
    7575                                $file = $subject."_".$i.".eml"; 
    7676                        } else{ 
    77                                 $file = "email_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".eml"; 
     77                                $file = "email_".$GLOBALS['phpgw']->session->sessionid.".eml"; 
    7878        }     
    7979        } 
     
    9090 
    9191        function createFileZip($files, $tempDir){                
    92                 $tmp_zip_filename = "email_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".zip"; 
     92                $tmp_zip_filename = "email_".$GLOBALS['phpgw']->session->sessionid.".zip"; 
    9393                $command = "cd " . escapeshellarg($tempDir) . " && nice zip -m9 " . escapeshellarg($tmp_zip_filename) . " " .  escapeshellcmd($files); 
    9494                if(!exec($command)) { 
     
    235235                $body           = $this-> getBody($id_number); 
    236236                 
    237                 $file = "source_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".txt"; 
     237                $file = "source_".$GLOBALS['phpgw']->session->sessionid.".txt"; 
    238238                $f = fopen($tempDir.'/'.$file,"w"); 
    239239                fputs($f,$header ."\r\n\r\n". $body); 
     
    273273                $body           = $this-> getBody($id_msg); 
    274274                 
    275                 $file = "source_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".php"; 
     275                $file = "source_".$GLOBALS['phpgw']->session->sessionid.".php"; 
    276276                $f = fopen($tempDir.'/'.$file,"w"); 
    277277                fputs($f,$phpheader.$header ."\r\n\r\n". $body); 
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r1233 r1246  
    6060                // This error is returned from Postfix. 
    6161                elseif(strstr($error,'message file too big')) { 
    62                         return str_replace("%1", ini_get('upload_max_filesize'),$this->functions->getLang('The size of this message has exceeded  the limit (%1B).'));                   
     62                        return str_replace("%1", $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['max_attachment_size']."M",$this->functions->getLang('The size of this message has exceeded  the limit (%1B).')); 
    6363                } 
    6464                elseif(strstr($error,'virus')) { 
     
    210210                        return $this->htmlspecialchars_encode($string); 
    211211        } 
     212 
    212213        /** 
    213214        * Função que importa arquivos .eml exportados pelo expresso para a caixa do usuário. Testado apenas 
     
    16291630            $body = $params['body']; 
    16301631        } 
    1631                 //echo "<script language=\"javascript\">javascript:alert('".$body."');</script>"; 
    16321632                $attachments = $params['FILES']; 
    16331633                $forwarding_attachments = $params['forwarding_attachments']; 
     
    18031803                                } 
    18041804                                $tempDir = ini_get("session.save_path"); 
    1805                                 $file = "cidimage_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].$cid_imgs[6][$j].".dat";        
     1805                                $file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat";                                        
    18061806                                $f = fopen($tempDir.'/'.$file,"w"); 
    18071807                                fputs($f,$fileContent); 
     
    18181818                { 
    18191819                        $total_uploaded_size = 0; 
    1820                         $upload_max_filesize = str_replace("M","",ini_get('upload_max_filesize')) * 1024 * 1024; 
     1820                        $upload_max_filesize = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['max_attachment_size']; 
    18211821                        foreach ($attachments as $attach) 
    18221822                        { 
     
    18241824                                $total_uploaded_size = $total_uploaded_size + $attach['size']; 
    18251825                        } 
    1826                         if( $total_uploaded_size > $upload_max_filesize) 
     1826                        if( $total_uploaded_size > $upload_max_filesize)  
    18271827                                return $this->parse_error("message file too big");                       
    18281828                } 
     
    23152315                                } 
    23162316                                $tempDir = ini_get("session.save_path"); 
    2317                                 $file = "cidimage_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].$cid_imgs[6][$j].".dat";                                        
     2317                                $file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat";                                        
    23182318                                $f = fopen($tempDir.'/'.$file,"w"); 
    23192319                                fputs($f,$fileContent); 
     
    23662366                                        case 3: $image_big = imagecreatefrompng($attach['tmp_name']); break; 
    23672367                                        case 6: 
    2368                                                 require_once("gd_functions.php"); 
     2368                                                include_once("gd_functions.php"); 
    23692369                                                $image_big = imagecreatefrombmp($attach['tmp_name']); break; 
    23702370                                        default: 
     
    23902390                                        imagecopyresampled($image_new, $image_big, 0, 0, 0, 0, $new_width, $new_height, $width, $height); 
    23912391                                        $tmpDir = ini_get("session.save_path"); 
    2392                                         $_file = "cidimage_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".dat";  
     2392                                        $_file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat";  
    23932393                                        imagejpeg($image_new,$tmpDir.$_file, 85); 
    23942394                                        $mail->AddAttachment($tmpDir.$_file, $attach['name'], "base64", $this->get_file_type($tmpDir.$_file)); 
     
    32633263        if($timestamp){ 
    32643264            $tempDir = ini_get("session.save_path"); 
    3265             $file = $tempDir."imap_".$_SESSION[ 'phpgw_session' ][ 'session_id' ]; 
     3265            $file = $tempDir."imap_".$GLOBALS['phpgw']->session->sessionid; 
    32663266                $f = fopen($file,"w"); 
    32673267                fputs($f,base64_encode($source)); 
  • trunk/expressoMail1_2/inc/class.phpmailer.php

    r1174 r1246  
    626626            if($pos_MIME_Version >= $pos_content_type) 
    627627            { 
    628                 // nao deve enviar a msg..... O header MIME-Version com posicao invalida ...... 
     628                // nao deve enviar a msg..... O header MIME-Version com posicao invalida ...... 
    629629                $this->SetError('Formato dos headers da msg estao invalidos.(CD-17) - A'); 
    630630                $this->smtp->Reset(); 
     
    670670        } 
    671671        else 
    672                 { 
    673                         $smtpSent = $this->smtp->Data($header . $body); 
    674                 } 
     672        { 
     673                $smtpSent = $this->smtp->Data($header . $body); 
     674        } 
    675675 
    676676        if(!$smtpSent) 
    677         { 
     677        { 
    678678            $this->SetError($this->Lang("data_not_accepted") .' '. $this->smtp->error['error'] .','. $this->smtp->error['smtp_code'].','. $this->smtp->error['smtp_msg']); 
    679679            $this->smtp->Reset(); 
    680680            return false; 
    681         } 
     681        } 
    682682        if($this->SMTPKeepAlive == true) 
    683683            $this->smtp->Reset(); 
  • trunk/expressoMail1_2/inc/gotodownload.php

    r1065 r1246  
    167167                } 
    168168                else 
    169                         if (preg_match("#^".ini_get('session.save_path')."/[A-z]+_".$GLOBALS['phpgw']->session->sessionid."[A-z0-9]*(\.[A-z]{3,4})?$#",$strFileName)) 
     169                        if (preg_match("#^".ini_get('session.save_path')."/[A-z]+_".$GLOBALS['phpgw']->session->sessionid."(\.[A-z]{3,4})?$#",$strFileName)) 
    170170                        { 
    171171                                readfile($strFileName); 
  • trunk/expressoMail1_2/index.php

    r1243 r1246  
    7878    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['num_max_certs_to_cipher'] = $GLOBALS['phpgw_info']['server']['num_max_certs_to_cipher'] ?  $GLOBALS['phpgw_info']['server']['num_max_certs_to_cipher'] : "10"; 
    7979    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_signature_cripto'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_cripto'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_cripto'] : "0"; 
     80    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['max_attachment_size'] = $current_config['expressoMail_Max_attachment_size'] ? $current_config['expressoMail_Max_attachment_size'] : ini_get('upload_max_filesize'); 
    8081 
    8182        $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
  • trunk/expressoMail1_2/js/abas.js

    r1092 r1246  
    121121        td.onclick = function(){alternate_border(ID);}; 
    122122        td.setAttribute("noWrap","true"); 
    123         td.alt = borderTitle; 
    124         td.title = borderTitle; 
     123 
    125124        borderTitle = borderTitle ?  borderTitle : id_value ? get_lang("No Subject") : "&nbsp;" ; 
    126125        td.value = borderTitle; 
     126        td.alt = borderTitle; 
     127        td.title = borderTitle; 
    127128        if (borderTitle.length > 21) 
    128129                borderTitle = borderTitle.substring(0,21) + "..."; 
  • trunk/expressoMail1_2/js/connector.js

    r802 r1246  
    620620                divUpload.innerHTML= "<iframe onload=\"cExecute('$this.functions.getReturnExecuteForm',"+handler+");\"  style='display:"+(debug_controller ? "" : "none")+";width:"+(debug_controller ? 400 : 0)+";height:"+(debug_controller ? 400 : 0)+";' name='uploadFile'></iframe>"; 
    621621                form.action ="controller.php"; 
    622                 form.target ="uploadFile";               
     622                form.target ="uploadFile";       
    623623                form.submit(); 
    624624        }        
  • trunk/expressoMail1_2/js/draw_api.js

    r1208 r1246  
    408408                span_paging = document.createElement("DIV"); 
    409409                span_paging.id = "span_paging"; 
    410                 span_paging.className = "boxHeaderText"; 
    411410                span_paging.align="right"; 
    412411                document.getElementById("div_menu_c3").appendChild(span_paging);         
     
    868867                } 
    869868                else{ 
     869                        td_element3.onmouseover = function (event) {try {InfoContact.begin(this,headers_msgs.from.email)} catch(e){};}; 
     870                        td_element3.onmouseout = function (){ try {clearTimeout(InfoContact.timeout);} catch(e){}}; 
    870871                        if (headers_msgs.Draft == 'X'){ 
    871872                                td_element3.innerHTML = "<span style=\"color:red\">("+get_lang("Draft")+") </span>"; 
    872873                        } 
    873                         else{                            
    874                                 var spanSender = document.createElement("SPAN"); 
    875                                 spanSender.onmouseover = function (event) {this.style.textDecoration = "underline";try {InfoContact.begin(this,headers_msgs.from.email)} catch(e){};}; 
    876                                 spanSender.onmouseout = function (){ try {this.style.textDecoration = "none"; clearTimeout(InfoContact.timeout);} catch(e){}}; 
    877                                 spanSender.innerHTML =  headers_msgs.from.name != null ? headers_msgs.from.name : headers_msgs.from.email; 
    878                                 if (spanSender.innerHTML.indexOf(" ") == '-1' && spanSender.innerHTML.length > 25){ 
    879                                         spanSender.innerHTML = spanSender.innerHTML.substring(0,25) + "..."; 
    880                                 } 
    881                                 else if (spanSender.innerHTML.length > 40 ){ 
    882                                         spanSender.innerHTML = spanSender.innerHTML.substring(0,40) + "..."; 
    883                                 }                                
    884                                 td_element3.appendChild(spanSender);                             
    885                         } 
    886                 }                        
     874                        else{ 
     875                                if (headers_msgs.from.name != null) 
     876                                        td_element3.innerHTML += headers_msgs.from.name; 
     877                                else 
     878                                        td_element3.innerHTML += headers_msgs.from.email; 
     879                        } 
     880                }        
     881                if (td_element3.innerHTML.indexOf(" ") == '-1' && td_element3.innerHTML.length > 25){ 
     882                        td_element3.innerHTML = td_element3.innerHTML.substring(0,25) + "..."; 
     883                } 
     884                else if (td_element3.innerHTML.length > 40 ){ 
     885                        td_element3.innerHTML = td_element3.innerHTML.substring(0,40) + "..."; 
     886                } 
     887                 
    887888                td_element4 = document.createElement("TD"); 
    888889                td_element4.className = "td_msg"; 
     
    25192520        td11.align="center"; 
    25202521        td11.setAttribute("noWrap","true"); 
    2521         td11.innerHTML += '&nbsp;<span class="boxHeaderText">' + value+"% ("+q_used+"M/"+q_limit+"M)</span>"; 
     2522        td11.innerHTML += '&nbsp;' + value+"% ("+q_used+"M/"+q_limit+"M)"; 
    25222523        //tr1.appendChild(td11); 
    25232524         
  • trunk/expressoMail1_2/js/main.js

    r1226 r1246  
    15671567                return; 
    15681568        } 
    1569          
    15701569        if (expresso_offline) {          
    15711570                stringEmail = Element("to_"+ID).value; 
     
    22132212        document.form_import.appendChild(folder); 
    22142213        write_msg(get_lang('You must wait while the messages will be imported...')); 
    2215          
     2214 
    22162215        cExecuteForm('$this.imap_functions.import_msgs', document.form_import, handler); 
    22172216} 
     
    22542253        //Begin: Verify if the file extension is allowed. 
    22552254        var imgExtensions = new Array("eml","zip"); 
    2256         var inputFile = document.form_import.file_1;     
     2255        var inputFile = document.form_import.file_1; 
    22572256        if(!inputFile.value){ 
    22582257                alert(get_lang('File extension forbidden or invalid file') + '.'); 
  • trunk/expressoMail1_2/setup/setup.inc.php

    r1068 r1246  
    3737        $setup_info['expressoMail1_2']['depends'][] = array( 
    3838                'appname' => 'phpgwapi', 
    39                 'versions' => Array('0.9.14','0.9.15','2.0.0') 
     39                'versions' => Array('0.9.14','0.9.15','1.0.0') 
    4040        ); 
    4141?> 
  • trunk/expressoMail1_2/setup/tables_update.inc.php

    r1087 r1246  
    99        * option) any later version.                                               * 
    1010        \**************************************************************************/ 
    11         $test[] = '1.2031'; 
    12         function expressoMail1_2_upgrade1_2031() { 
    13                 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.2201'; 
    14                 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     11        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.234'){ 
     12                $test[] = '1.234'; 
     13                function expressoMail1_2_upgrade1_234() { 
     14            $oProc = $GLOBALS['phpgw_setup']->oProc;             
     15            $oProc->CreateTable('phpgw_certificados',array( 
     16                                'fd' => array( 
     17                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     18                                        'chave_publica' => array( 'type' => 'text'), 
     19                                        'expirado' => array('type' => 'bool', 'default' => 'false'), 
     20                                        'revogado' => array('type' => 'bool', 'default' => 'false'), 
     21                                        'serialnumber' => array('type' => 'int', 'precision' => 8, 'nullable' => false), 
     22                                        'authoritykeyidentifier' => array( 'type' => 'text', 'nullable' => false), 
     23                                ), 
     24                                'pk' => array('email','serialnumber','authoritykeyidentifier'), 
     25                                'fk' => array(), 
     26                                'ix' => array(), 
     27                                'uc' => array() 
     28                                ) 
     29                        ); 
     30 
     31            $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.235'; 
     32            return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     33                } 
     34        } 
     35        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.233'){ 
     36                $test[] = '1.233';                                                                                                       
     37                function expressoMail1_2_upgrade1_233() { 
     38                        $setup_info['expressoMail1_2']['currentver'] = '1.234'; 
     39                        return $setup_info['expressoMail1_2']['currentver']; 
     40                } 
     41        }        
     42        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.232'){ 
     43                $test[] = '1.232';                                                                                                       
     44                function expressoMail1_2_upgrade1_232() { 
     45                        $setup_info['expressoMail1_2']['currentver'] = '1.233'; 
     46                        return $setup_info['expressoMail1_2']['currentver']; 
     47                } 
     48        }        
     49        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.231'){ 
     50                $test[] = '1.231';                                                                                                       
     51                function expressoMail1_2_upgrade1_231() { 
     52                        $setup_info['expressoMail1_2']['currentver'] = '1.232'; 
     53                        return $setup_info['expressoMail1_2']['currentver']; 
     54                } 
    1555        } 
    1656         
    17         $test[] = '1.2201'; 
    18         function expressoMail1_2_upgrade1_2201() { 
    19                 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.2211'; 
    20                 return $GLOBALS['setup_info']['expressoMail1_2']['currentver'];          
    21         } 
    22          
    23         $test[] = '1.2211'; 
    24         function expressoMail1_2_upgrade1_2211() { 
    25                 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.222'; 
    26                 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
    27         } 
    28  
    29         $test[] = '1.222'; 
    30         function expressoMail1_2_upgrade1_222() { 
    31                 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.230'; 
    32                 return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
    33         } 
    34          
    35         $test[] = '1.230'; 
    3657        function expressoMail1_2_upgrade1_230() { 
    3758                $oProc = $GLOBALS['phpgw_setup']->oProc; 
     
    4970                return $setup_info['expressoMail1_2']['currentver']; 
    5071        }                
    51         $test[] = '1.231';                                                                                                       
    52         function expressoMail1_2_upgrade1_231() { 
    53                 $setup_info['expressoMail1_2']['currentver'] = '1.232'; 
    54                 return $setup_info['expressoMail1_2']['currentver']; 
     72                                 
     73        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.230'){ 
     74                $test[] = '1.230';                                                                                                       
     75                return expressoMail1_2_upgrade1_230(); 
     76        } 
     77        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.222'){ 
     78                $test[] = '1.222'; 
     79                function expressoMail1_2_upgrade1_222() { 
     80                        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     81                        $oProc->CreateTable('phpgw_expressomail_contacts',array( 
     82                                'fd' => array( 
     83                                        'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 
     84                                        'data' => array( 'type' => 'text') 
     85                                ), 
     86                                'pk' => array('id_owner'), 
     87                                'fk' => array(), 
     88                                'ix' => array(), 
     89                                'uc' => array() 
     90                                ) 
     91                        ); 
     92                        $oProc->CreateTable('phpgw_certificados',array( 
     93                                'fd' => array( 
     94                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     95                                        'chave_publica' => array( 'type' => 'text'), 
     96                                        'expirado' => array('type' => 'bool', 'default' => 'false') 
     97                                ), 
     98                                'pk' => array('email'), 
     99                                'fk' => array(), 
     100                                'ix' => array(), 
     101                                'uc' => array() 
     102                                ) 
     103                        ); 
     104                        $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 
     105                        return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     106        } 
     107        } 
     108        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2211'){ 
     109                $test[] = '1.2211'; 
     110                function expressoMail1_2_upgrade1_2211() { 
     111                        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     112                        $oProc->CreateTable('phpgw_expressomail_contacts',array( 
     113                                'fd' => array( 
     114                                        'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 
     115                                        'data' => array( 'type' => 'text') 
     116                                ), 
     117                                'pk' => array('id_owner'), 
     118                                'fk' => array(), 
     119                                'ix' => array(), 
     120                                'uc' => array() 
     121                                ) 
     122                        ); 
     123                        $oProc->CreateTable('phpgw_certificados',array( 
     124                                'fd' => array( 
     125                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     126                                        'chave_publica' => array( 'type' => 'text'), 
     127                                        'expirado' => array('type' => 'bool', 'default' => 'false') 
     128                                ), 
     129                                'pk' => array('email'), 
     130                                'fk' => array(), 
     131                                'ix' => array(), 
     132                                'uc' => array() 
     133                                ) 
     134                        ); 
     135                        $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 
     136                        return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     137        } 
     138        } 
     139        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2201'){ 
     140                $test[] = '1.2201'; 
     141                function expressoMail1_2_upgrade1_2201() {return expressoMail1_2_upgrade1_230();} 
    55142        } 
    56143         
    57         $test[] = '1.232'; 
    58         function expressoMail1_2_upgrade1_232() { 
    59                 $setup_info['expressoMail1_2']['currentver'] = '1.233'; 
    60                 return $setup_info['expressoMail1_2']['currentver']; 
    61         } 
    62          
    63         $test[] = '1.233'; 
    64         function expressoMail1_2_upgrade1_233() { 
    65                 $setup_info['expressoMail1_2']['currentver'] = '1.234'; 
    66                 return $setup_info['expressoMail1_2']['currentver']; 
    67         } 
    68          
    69         $test[] = '1.234'; 
    70         function expressoMail1_2_upgrade1_234() { 
    71         $oProc = $GLOBALS['phpgw_setup']->oProc;             
    72             $oProc->CreateTable('phpgw_certificados',array( 
    73                         'fd' => array( 
    74                                 'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
    75                                 'chave_publica' => array( 'type' => 'text'), 
    76                                 'expirado' => array('type' => 'bool', 'default' => 'false'), 
    77                                 'revogado' => array('type' => 'bool', 'default' => 'false'), 
    78                                 'serialnumber' => array('type' => 'int', 'precision' => 8, 'nullable' => false), 
    79                                 'authoritykeyidentifier' => array( 'type' => 'text', 'nullable' => false), 
    80                         ), 
    81                         'pk' => array('email','serialnumber','authoritykeyidentifier'), 
    82                         'fk' => array(), 
    83                         'ix' => array(), 
    84                         'uc' => array() 
    85                         ) 
    86                 ); 
    87                 $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.235'; 
    88         return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     144        if ($GLOBALS['setup_info']['expressoMail1_2']['currentver'] == '1.2031'){ 
     145                $test[] = '1.2031'; 
     146                function expressoMail1_2_upgrade1_2031() { 
     147                        $oProc = $GLOBALS['phpgw_setup']->oProc; 
     148                        $oProc->CreateTable('phpgw_expressomail_contacts',array( 
     149                                'fd' => array( 
     150                                        'id_owner' => array( 'type' => 'int', 'precision' => 8, 'nullable' => false), 
     151                                        'data' => array( 'type' => 'text') 
     152                                ), 
     153                                'pk' => array('id_owner'), 
     154                                'fk' => array(), 
     155                                'ix' => array(), 
     156                                'uc' => array() 
     157                                ) 
     158                        ); 
     159                        $oProc->CreateTable('phpgw_certificados',array( 
     160                                'fd' => array( 
     161                                        'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false), 
     162                                        'chave_publica' => array( 'type' => 'text'), 
     163                                        'expirado' => array('type' => 'bool', 'default' => 'false') 
     164                                ), 
     165                                'pk' => array('email'), 
     166                                'fk' => array(), 
     167                                'ix' => array(), 
     168                                'uc' => array() 
     169                                ) 
     170                        ); 
     171                        $GLOBALS['setup_info']['expressoMail1_2']['currentver'] = '1.223'; 
     172                        return $GLOBALS['setup_info']['expressoMail1_2']['currentver']; 
     173        } 
    89174        }        
    90175?> 
  • trunk/expressoMail1_2/templates/default/config.tpl

    r1231 r1246  
    9999    </td> 
    100100    </tr> 
     101    <tr bgcolor="{row_off}"> 
     102    <td>{lang_Max_attachment_size}</td> 
     103    <td> 
     104    <input size="1" name="newsettings[expressoMail_Max_attachment_size]" value="{value_expressoMail_Max_attachment_size}"> 
     105    </td> 
     106    </tr> 
    101107<!-- END body --> 
    102108<!-- BEGIN footer --> 
Note: See TracChangeset for help on using the changeset viewer.