mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
Fixed bug suppressing any output when mysql is not installed/enabled.
This commit is contained in:
parent
74e88bb664
commit
9f9861ad20
22
test.php
22
test.php
@ -43,19 +43,21 @@
|
|||||||
// Database
|
// Database
|
||||||
title('Database');
|
title('Database');
|
||||||
|
|
||||||
if($sql = @mysql_connect(MY_SERVER, MY_USER, MY_PASSWORD)) {
|
if(extension_loaded('mysql')) {
|
||||||
$body .= check('Connection to server.', 'ok');
|
if($sql = @mysql_connect(MY_SERVER, MY_USER, MY_PASSWORD)) {
|
||||||
if(@mysql_select_db(MY_DATABASE, $sql))
|
$body .= check('Connection to server.', 'ok');
|
||||||
$body .= check('Select database.', 'ok');
|
if(@mysql_select_db(MY_DATABASE, $sql))
|
||||||
else {
|
$body .= check('Select database.', 'ok');
|
||||||
$body .= check('Select database.', 'error');
|
else {
|
||||||
|
$body .= check('Select database.', 'error');
|
||||||
|
$todo[] = 'instance-config.php: Check database configuration.';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$body .= check('Connection to server.', 'error');
|
||||||
$todo[] = 'instance-config.php: Check database configuration.';
|
$todo[] = 'instance-config.php: Check database configuration.';
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$body .= check('Connection to server.', 'error');
|
|
||||||
$todo[] = 'instance-config.php: Check database configuration.';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
title('Configuration');
|
title('Configuration');
|
||||||
$root = dirname($_SERVER['REQUEST_URI']) . (dirname($_SERVER['REQUEST_URI']) == '/' ? '' : '/');
|
$root = dirname($_SERVER['REQUEST_URI']) . (dirname($_SERVER['REQUEST_URI']) == '/' ? '' : '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user