summaryrefslogtreecommitdiff
path: root/test.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-16 00:55:02 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-16 00:55:02 +1100
commit72308d0d32295a144dab6f1789c05d7ab9a75cf8 (patch)
treec7be5e79974a0d4d16a36708c51ad40cc07b1b45 /test.php
parentf68669f63fe50f7410657fd3e7602a8b73cc7f86 (diff)
Extension testing.
Diffstat (limited to 'test.php')
-rw-r--r--test.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/test.php b/test.php
index 73a4a0d8..6d6a9367 100644
--- a/test.php
+++ b/test.php
@@ -27,6 +27,19 @@
$todo = Array();
$body = '<table style="width:600px;margin:auto;">';
+ $extensions = Array('mysql', 'gd');
+
+ // Extensions
+ title('Extensions');
+ foreach($extensions as &$ext) {
+ if(extension_loaded($ext)) {
+ $body .= check($ext, 'ok');
+ } else {
+ $body .= check($ext, 'error');
+ $todo[] = 'Install module "' . $ext . '"';
+ }
+ }
+
// Database
title('Database');