Run("cmd /C " . $command, 0, true); } else { if ($use_shell_exec) { shell_exec($command); } else { exec($command . " > /dev/null"); } } } ob_end_clean(); } function get_php_setting($val) { $r = (ini_get($val) == '1' ? 1 : 0); return $r ? 'ON' : 'OFF'; } function get_php_setting_val($val) { $r = ini_get($val); return $r; } function return_bytes($val) { if ($val) { $val = trim($val); $last = strtolower($val{strlen($val)-1}); switch($last) { case 'm': $val *= 1024; case 'k': $val *= 1; } } return $val; } function writableTree( $folder ) { global $xmldir; echo '
';
echo "";
echo '';
echo '
';
echo phpinfo();
echo '
| PHP version >= 4.3.0 | No' : 'Yes'; echo " (" . phpversion() . ")"; ?> |
| - XML support | Available' : 'Unavailable';?> |
| - GD lib support | Available' : 'Unavailable';?> |
| - GD lib >= 2.0 | No' : 'Yes'; echo " (" . gd_version() . ")"; ?> |
| - imagecreatetruecolor | GDlib is not installed properly - TWG does not work!' : 'Available'; ?> |
| - Memory limit | Memory limit not detected'; } else { if ($limit > 48000) { echo 'Very Good'; } else if($limit > 30000) { echo 'O.k. but don\'t use large images'; } else { echo 'Only use small images'; } echo " (" . ini_get('memory_limit') . ")"; } ?> |
| - Max resolution | No limit'; } else { // internal memory is subtracted 3 MB for normal use. 6 MB if automatic folder image creation is used $intmem = $autocreate_folder_image ? 3000 : 6000; $xy = ($limit-$intmem) * 1024 / 6; $x = floor( sqrt ($xy / 0.75)); $y = floor( sqrt($xy / 1.33)); if ($limit > 48000) { echo "~ " . $x . " x " . $y . ""; } else if($limit > 30000) { echo "~ " . $x . " x " . $y . ""; } else { echo "~ " . $x . " x " . $y . ""; } } ?> |
| - Rotate available | Available' : 'Unavailable'; }else { echo 'Test failed - Check cache dir'; } ?> |
| - Text watermark | Available' : 'Unavailable (imagettftext not found)';?> |
| - Remote jpg support | Available' : 'Unavailable (allow_url_fopen = off)';?> |
| - File uploads | Available' : 'Unavailable';?> |
| - Upload max filesize | Upload max filesize not detected'; } else { if ($limit > 2500) { echo '' . ini_get('upload_max_filesize') . ''; } else { echo '' . ini_get('upload_max_filesize') . ' - Resize images > ' . ini_get('upload_max_filesize') . ''; } } ?> |
| Session | Available' : 'Not available';?> |
| Javascript | |
| Image Magick Support | Available' : 'Not available';?> |
| ffmpeg Support | Available' : 'Not available';?> |
| ffmpeg video convert | Available' : 'Not available';?> |
| A couple of changing smilies have to be shown on the right if the auto conversion to flv works. | "; show_ffmpeg_video(); echo " |
| An image has to be shown below. If not, images cannot be loaded properly! Please check the debug file for more details! | ';
echo '';
echo '|
| '; echo ' |
| Directive | Recommended | Actual | |
| : | : |