added GD dependency

This commit is contained in:
Roland Gruber 2010-01-01 23:19:16 +00:00
parent edc61df738
commit 4a888654a3
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ if (! function_exists('gettext') || !function_exists('_')) {
if (! function_exists('utf8_decode')) {
$criticalErrors[] = array("ERROR", "Your PHP has no XML support!", "Please install the XML extension for PHP.");
}
// check if PHP has GD support
if (! function_exists('getimagesize')) {
$criticalErrors[] = array("ERROR", "Your PHP has no GD support!", "Please install the GD extension for PHP.");
}
// check file permissions
$writableDirs = array('sess', 'tmp');
for ($i = 0; $i < sizeof($writableDirs); $i++) {