From d2a51b4bcaf5272fcc07332359403f1fa349e318 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 23 Jan 2014 14:10:42 +0100 Subject: [PATCH] enhance error-display on missing php-extension in webftp.php - thx to boonkerz Signed-off-by: Michael Kaufmann (d00p) --- webftp.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webftp.php b/webftp.php index ccc119db..0596fb9d 100644 --- a/webftp.php +++ b/webftp.php @@ -43,7 +43,11 @@ $MAX_FILE_SIZE = 1907300; $marked_color = '#FFC2CA'; if (!function_exists("ftp_connect")) { - die('No FTP support'); + die('Please compile PHP with FTP support'); +} + +if (!function_exists("bindtextdomain")) { + die('Please compile PHP with gettext support'); } // Initialize Smarty