From 4a888654a3f602dd92466c042257c1e5d1814f76 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 1 Jan 2010 23:19:16 +0000 Subject: [PATCH] added GD dependency --- lam/templates/login.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lam/templates/login.php b/lam/templates/login.php index 8a079ea2..a4a13146 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -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++) {