'._("Your server configuration").'

'; if (php_uname('s')!= NULL) { $PG_mainbody .= '

'._("Operating System:").' '.php_uname('s'); } $PG_mainbody .= '

'._("PHP Version:").' '.phpversion().'

display_errors = ' . ini_get('display_errors').''; //IF GETTEXT EXTENSION INSTALLED IN THE SERVER OR NOT //note that $gettextInstalled is created in language.php if ($gettextInstalled == 0) $PG_mainbody .= '
'._("GETTEXT extension: not installed (php-gettext will be used)"); else $PG_mainbody .= '
'._("GETTEXT extension: installed"); if (ini_get('register_globals')!= NULL) { //if value not null $PG_mainbody .= '
register_globals = ' . ini_get('register_globals').''; } else { $PG_mainbody .= '
register_globals = OFF '._("(this is good)"); } $PG_mainbody .= '

upload_max_filesize (php.ini) = ' . ini_get('upload_max_filesize') . '
post_max_size (php.ini) = ' . ini_get('post_max_size') . '
'; if (ini_get('memory_limit')!= NULL) { //if value not null $PG_mainbody .= 'memory_limit (php.ini) = ' . ini_get('memory_limit') . '
'; } $PG_mainbody .= '
'._("Max upload size set in the script (config.php):").' '.$max_upload_form_size_MB.'M

'; ########### Determine max upload file size through php script reading the server parameters (and the form parameter specified in config.php. We find the minimum value: it should be the max file size allowed... $showmin = min($max_upload_form_size_MB, ini_get('upload_max_filesize')+0, ini_get('post_max_size')+0); // min function // Note: if I add +0 it eliminates the "M" (e.g. 8M,9M) and this solves some issues with the "min" function ############################# if ($showmin!=NULL and $showmin!="0") { $PG_mainbody .= '

'._("Your server configuration allows you to upload files up to").' '.$showmin._("MB").'

'; } $PG_mainbody .= ''; } ?>