- =') && @ini_get('max_file_uploads') && @ini_get('max_file_uploads') < $hesk_settings['attachments']['max_number'] )
- {
- hesk_show_notice($hesklang['fatte1']);
- }
-
- // Check max attachment size
- $tmp = @ini_get('upload_max_filesize');
- if ($tmp)
- {
- $last = strtoupper(substr($tmp,-1));
-
- switch ($last)
- {
- case 'K':
- $tmp = $tmp * 1024;
- break;
- case 'M':
- $tmp = $tmp * 1048576;
- break;
- case 'G':
- $tmp = $tmp * 1073741824;
- break;
- default:
- $tmp = $tmp;
- }
-
- if ($tmp < $hesk_settings['attachments']['max_size'])
- {
- hesk_show_notice($hesklang['fatte2']);
- }
- }
-
- // Check max post size
- $tmp = @ini_get('post_max_size');
- if ($tmp)
- {
- $last = strtoupper(substr($tmp,-1));
-
- switch ($last)
- {
- case 'K':
- $tmp = $tmp * 1024;
- break;
- case 'M':
- $tmp = $tmp * 1048576;
- break;
- case 'G':
- $tmp = $tmp * 1073741824;
- break;
- default:
- $tmp = $tmp;
- }
-
- if ($tmp < ( $hesk_settings['attachments']['max_size'] * $hesk_settings['attachments']['max_number'] + 524288 ) )
- {
- hesk_show_notice($hesklang['fatte3']);
- }
- }
- }
-
-
- $hesklang['err_custname'] = addslashes($hesklang['err_custname']);
+
+
+
+
+
+
+
+ :
+ |
+
+
+
-
-
-
-
-
- |