summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/backend.php')
-rw-r--r--bin/backend.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 7ea0649..4de6601 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -1,4 +1,15 @@
<?php
+
+// Check PHP modules
+if (function_exists('dl'))
+{
+ if (!extension_loaded('json'))
+ dl(json.so);
+ if (!extension_loaded('zlib'))
+ dl(zlib.so);
+}
+
+
ob_start("ob_gzhandler");
header('Content-Type: application/json; charset: utf-8');