mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Extension testing.
This commit is contained in:
parent
f68669f63f
commit
72308d0d32
13
test.php
13
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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user