blob: 384ba933b6d69b9e87d1122e6b5bbd459a1967d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* @version $Header$
*
* settings that are useful to know about at upload time
*
* @package liberty
* @subpackage functions
*/
$postMax = str_replace( 'M', '', ini_get( 'post_max_size' ));
$uploadMax = str_replace( 'M', '', ini_get( 'upload_max_filesize' ) );
if( $postMax < $uploadMax ) {
$uploadMax = $postMax;
}
/**
* calculate user quota
*/
if( $gBitSystem->isPackageActive( 'quota' ) ) {
require_once( QUOTA_PKG_INCLUDE_PATH.'calculate_quota_inc.php' );
}
$gBitSmarty->assign( 'uploadMax', $uploadMax );
?>
|