diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-16 00:55:02 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-16 00:55:02 +1100 |
| commit | 72308d0d32295a144dab6f1789c05d7ab9a75cf8 (patch) | |
| tree | c7be5e79974a0d4d16a36708c51ad40cc07b1b45 /test.php | |
| parent | f68669f63fe50f7410657fd3e7602a8b73cc7f86 (diff) | |
Extension testing.
Diffstat (limited to 'test.php')
| -rw-r--r-- | test.php | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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');
|
