added JSON
This commit is contained in:
parent
c7de77f7c2
commit
993a232b65
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2010 Roland Gruber
|
Copyright (C) 2010 - 2011 Roland Gruber
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -75,6 +75,10 @@ if (! function_exists('utf8_decode')) {
|
||||||
if (! function_exists('getimagesize')) {
|
if (! function_exists('getimagesize')) {
|
||||||
$criticalErrors[] = array("ERROR", "Your PHP has no GD support!", "Please install the GD extension for PHP.");
|
$criticalErrors[] = array("ERROR", "Your PHP has no GD support!", "Please install the GD extension for PHP.");
|
||||||
}
|
}
|
||||||
|
// check if PHP has JSON support
|
||||||
|
if (! function_exists('json_encode')) {
|
||||||
|
$criticalErrors[] = array("ERROR", "Your PHP has no JSON support!", "Please install the JSON extension for PHP.");
|
||||||
|
}
|
||||||
// check file permissions
|
// check file permissions
|
||||||
$writableDirs = array('sess', 'tmp');
|
$writableDirs = array('sess', 'tmp');
|
||||||
for ($i = 0; $i < sizeof($writableDirs); $i++) {
|
for ($i = 0; $i < sizeof($writableDirs); $i++) {
|
||||||
|
|
Loading…
Reference in New Issue