[Vtigercrm-commits] [vtiger-commits] r4051 - in /vtigercrm/branches/4.2/modules: Emails/ Products/ Settings/ Users/ uploads/
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Mar 4 22:48:45 EST 2006
Author: mfedyk
Date: Sat Mar 4 20:48:41 2006
New Revision: 4051
Log:
Remove hard coded upload limits
Modified:
vtigercrm/branches/4.2/modules/Emails/upload.php
vtigercrm/branches/4.2/modules/Products/EditView.html
vtigercrm/branches/4.2/modules/Products/EditView.php
vtigercrm/branches/4.2/modules/Products/upload.php
vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.html
vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.php
vtigercrm/branches/4.2/modules/Users/upload.php
vtigercrm/branches/4.2/modules/uploads/add.php
vtigercrm/branches/4.2/modules/uploads/upload.php
Modified: vtigercrm/branches/4.2/modules/Emails/upload.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Emails/upload.php (original)
+++ vtigercrm/branches/4.2/modules/Emails/upload.php Sat Mar 4 20:48:41 2006
@@ -24,7 +24,7 @@
</B>
<hr>
<br>
- <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="100000">
+ <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="<?php echo $upload_maxsize ?>">
<INPUT TYPE="hidden" NAME="return_module" VALUE="<?php echo $ret_module ?>">
<INPUT TYPE="hidden" NAME="return_action" VALUE="<?php echo $ret_action ?>">
<INPUT TYPE="hidden" NAME="return_id" VALUE="<?php echo $ret_id ?>">
Modified: vtigercrm/branches/4.2/modules/Products/EditView.html
==============================================================================
--- vtigercrm/branches/4.2/modules/Products/EditView.html (original)
+++ vtigercrm/branches/4.2/modules/Products/EditView.html Sat Mar 4 20:48:41 2006
@@ -31,7 +31,7 @@
<input type="hidden" name="return_module" value="{RETURN_MODULE}">
<input type="hidden" name="return_id" value="{RETURN_ID}">
<input type="hidden" name="return_action" value="{RETURN_ACTION}">
- <INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="800000">
+ <INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="{MAX_FILE_SIZE}">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td vAlign="middle" align="left"><IMG src="{IMAGE_PATH}product.gif" border="0"></td>
Modified: vtigercrm/branches/4.2/modules/Products/EditView.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Products/EditView.php (original)
+++ vtigercrm/branches/4.2/modules/Products/EditView.php Sat Mar 4 20:48:41 2006
@@ -142,6 +142,7 @@
if(isset($_REQUEST['return_module'])) $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']);
if(isset($_REQUEST['return_action'])) $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']);
+if(isset($upload_maxsize)) $xtpl->assign("MAX_FILE_SIZE", $upload_maxsize);
if(isset($_REQUEST['return_id'])) $xtpl->assign("RETURN_ID", $_REQUEST['return_id']);
if(isset($_REQUEST['activity_mode'])) $xtpl->assign("ACTIVITYMODE", $_REQUEST['activity_mode']);
$xtpl->assign("THEME", $theme);
Modified: vtigercrm/branches/4.2/modules/Products/upload.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Products/upload.php (original)
+++ vtigercrm/branches/4.2/modules/Products/upload.php Sat Mar 4 20:48:41 2006
@@ -22,7 +22,7 @@
</B>
<hr>
<br>
- <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="100000">
+ <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="<?php echo $upload_maxsize ?>">
<INPUT TYPE="hidden" NAME="return_module" VALUE="<?php echo $ret_module ?>">
<INPUT TYPE="hidden" NAME="return_id" VALUE="<?php echo $ret_id ?>">
<TABLE BORDER="0" cellspacing="2" cellpadding="2">
Modified: vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.html
==============================================================================
--- vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.html (original)
+++ vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.html Sat Mar 4 20:48:41 2006
@@ -49,7 +49,7 @@
<td align="left"><input class="dataInput" type="text" name="organization_website" value="{ORGANIZATIONWEBSITE}" size="40"></td></tr>
<tr>
<td nowrap class="dataLabel">{MOD.LBL_ORGANIZATION_LOGO}: </td>
- <INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="800000">
+ <INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="{MAX_FILE_SIZE}">
<td><input type="file" name="binFile" value="{FILE_NAME}">[{ORGANIZATIONLOGONAME}] </td>
</tr>
</table>
Modified: vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.php (original)
+++ vtigercrm/branches/4.2/modules/Settings/EditCompanyDetails.php Sat Mar 4 20:48:41 2006
@@ -74,6 +74,8 @@
$xtpl->assign("ORGANIZATIONFAX",$organization_fax);
if (isset($organization_website))
$xtpl->assign("ORGANIZATIONWEBSITE",$organization_website);
+if (isset($upload_maxsize))
+ $xtpl->assign("MAX_FILE_SIZE",$upload_maxsize);
if (isset($organization_logoname))
$xtpl->assign("ORGANIZATIONLOGONAME",$organization_logoname);
Modified: vtigercrm/branches/4.2/modules/Users/upload.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Users/upload.php (original)
+++ vtigercrm/branches/4.2/modules/Users/upload.php Sat Mar 4 20:48:41 2006
@@ -22,7 +22,7 @@
?>
<?php echo get_module_title($mod_strings['LBL_MODULE_NAME'],$mod_strings['LBL_ATTACH_FILE'],false);?>
<br>
- <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="100000">
+ <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="<?php echo $upload_maxsize ?>">
<INPUT TYPE="hidden" NAME="return_module" VALUE="<?php echo $ret_module ?>">
<INPUT TYPE="hidden" NAME="return_id" VALUE="<?php echo $ret_id ?>">
<TABLE width="50%" BORDER="0" cellspacing="0" cellpadding="0" class="formOuterBorder">
Modified: vtigercrm/branches/4.2/modules/uploads/add.php
==============================================================================
--- vtigercrm/branches/4.2/modules/uploads/add.php (original)
+++ vtigercrm/branches/4.2/modules/uploads/add.php Sat Mar 4 20:48:41 2006
@@ -37,7 +37,7 @@
<HTML>
<BODY>
<FORM METHOD="post" ACTION="index.php?module=uploads&action=add" ENCTYPE="multipart/form-data">
- <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="1000000">
+ <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="<?=$upload_maxsize?>">
<INPUT TYPE="hidden" NAME="action" VALUE="upload">
<TABLE BORDER="1">
<TR>
Modified: vtigercrm/branches/4.2/modules/uploads/upload.php
==============================================================================
--- vtigercrm/branches/4.2/modules/uploads/upload.php (original)
+++ vtigercrm/branches/4.2/modules/uploads/upload.php Sat Mar 4 20:48:41 2006
@@ -11,7 +11,7 @@
<HTML>
<BODY>
<FORM METHOD="post" action="index.php?module=uploads&action=add2db&return_module=<?php echo $_REQUEST['return_module']?>" enctype="multipart/form-data">
- <?php
+<?php
$ret_action = $_REQUEST['return_action'];
$ret_module = $_REQUEST['return_module'];
$ret_id = $_REQUEST['return_id'];
@@ -25,7 +25,7 @@
echo get_module_title($ret_module,$ret_module." : ".$mod_strings['LBL_ATTACH_FILE'],true);
?>
<br>
- <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="1000000">
+ <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="<?php echo $upload_maxsize ?>">
<INPUT TYPE="hidden" NAME="return_module" VALUE="<?php echo $ret_module ?>">
<INPUT TYPE="hidden" NAME="return_action" VALUE="<?php echo $ret_action ?>">
<INPUT TYPE="hidden" NAME="return_id" VALUE="<?php echo $ret_id ?>">
More information about the vtigercrm-commits
mailing list