Mercurial > hg > batmud > gmap2
changeset 278:2233bdad4ab5 gmap2
Die if GD extension is not available as we require it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Apr 2015 21:04:35 +0300 |
parents | 023f5d0f627e |
children | 0374836ed73a |
files | tools/makegmaps.php |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/makegmaps.php Thu Apr 16 21:04:23 2015 +0300 +++ b/tools/makegmaps.php Thu Apr 16 21:04:35 2015 +0300 @@ -4,6 +4,9 @@ if (php_sapi_name() != "cli" || !empty($_SERVER["REMOTE_ADDR"])) die("You can only run this script as a commandline application.\n"); +if (!extension_loaded("gd")) + die("ERROR: The required GD extension to PHP was not found or enabled.\n"); + $gmapsConfig = "config.php";