Changeset 2866
- Timestamp:
- 05/26/10 17:39:06 (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.uiconfig.inc.php
r2802 r2866 208 208 $t->set_var('row_on', $GLOBALS['phpgw_info']['theme']['row_on']); 209 209 $t->set_var('row_off', $GLOBALS['phpgw_info']['theme']['row_off']); 210 $t->set_var('php_upload_limit',str_replace('M','',ini_get('upload_max_filesize'))); 210 211 $t->pparse('out','header'); 211 212 -
trunk/expressoMail1_2/js/jscode/main.js
r2801 r2866 1545 1545 else{ 1546 1546 if(data == 'Post-Content-Length') 1547 write_msg(get_lang('The size of this message has exceeded the limit (%1B).', Element('upload_max_filesize').value));1547 write_msg(get_lang('The size of this message has exceeded the limit (%1B).',preferences.max_attachment_size ? preferences.max_attachment_size : Element('upload_max_filesize').value)); 1548 1548 else if(data) 1549 1549 write_msg(data); -
trunk/expressoMail1_2/templates/default/config.tpl
r2802 r2866 1 1 <!-- BEGIN header --> 2 <form method="POST" action="{action_url}" onsubmit="return ExpressoLivre.form( this );"> 2 <script> 3 function valida(pForm) 4 { 5 if (document.getElementsByName('newsettings[expressoMail_Max_attachment_size]').item(0).value > pForm.php_upload_limit.value) 6 { 7 alert(pForm.valida_alert.value); 8 return false; 9 } 10 else 11 return ExpressoLivre.form(pForm); 12 } 13 </script> 14 <form method="POST" action="{action_url}" onsubmit="return valida( this );"> 15 <input type="hidden" name="php_upload_limit" value="{php_upload_limit}" /> 3 16 <table border="0" align="center"> 4 17 <tr bgcolor="{th_bg}"> … … 66 79 <td>{lang_Max_attachment_size}</td> 67 80 <td> 68 <input size="1" name="newsettings[expressoMail_Max_attachment_size]" value="{value_expressoMail_Max_attachment_size}"> Mb 81 <input size="1" name="newsettings[expressoMail_Max_attachment_size]" value="{value_expressoMail_Max_attachment_size}"> Mb<span style='position:relative; left:20px;'>Max: {php_upload_limit}Mb.</span> 82 <input type="hidden" name="valida_alert" value="{lang_Value_exceeds_the_PHP_upload_limit_for_this_server}" /> 69 83 </td> 70 84 </tr>
Note: See TracChangeset
for help on using the changeset viewer.