{
$test['descr'] = _('MySQL version'). ' >=4.1';
$test['type'] = 3;
- $test['test'] = mysql_get_server_info();
+ $test['test'] = db_get_version();
$test['result'] = $test['test']>='4.1';
$test['comments'] = _('Upgrade MySQL server to version at least 4.1');
{
$test['descr'] = _('PHP MySQL extension');
$test['type'] = 3;
- $test['result'] = function_exists('mysql_connect');
+ $test['result'] = db_extension_exists();
$test['test'] = $test['result'] ? _('Yes'): _('No');
$test['comments'] = _('Your PHP has to have MySQL extension enabled.');
function tst_php()
{
- $test['descr'] = _('PHP version').' >=4.3.3';
+ $test['descr'] = _('PHP version').' >=5.0.0';
$test['type'] = 3;
$test['test'] = phpversion();
- $test['result'] = $test['test']>='4.3.3';
- $test['comments'] = _('Upgrade PHP to version at least 4.3.3');
+ $test['result'] = $test['test']>='5.0.0';
+ $test['comments'] = _('Upgrade PHP to version at least 5.0.0');
return $test;
}
function tst_debug()
{
- global $go_debug;
+ global $SysPrefs;
$test['descr'] = _('Debugging mode');
$test['type'] = 0;
- $test['test'] = $go_debug ? _("Yes") : _("No");
- $test['result'] = $go_debug != 0;
+ $test['test'] = $SysPrefs->go_debug ? _("Yes") : _("No");
+ $test['result'] = $SysPrefs->go_debug != 0;
$test['comments'] = _('To switch debugging on set $go_debug>0 in config.php file');
return $test;
function tst_logging()
{
- global $error_logfile;
+ global $SysPrefs;
+ $error_logfile = $SysPrefs->error_logfile;
$test['descr'] = _('Error logging');
$test['type'] = 2;
// if error lgging is on, but log file does not exists try write
$test['result'] &= $t;
}
+ foreach(array('Release', 'Themes', 'Languages', 'Extensions', 'Charts') as $file) {
+ $fname = $path_to_root."/modules/_cache/".$file.".gz";
+ $t = !file_exists($fname) || is_writable($fname);
+ if (!$t)
+ $test['comments'][] = sprintf(_("'%s' is not writeable"), $fname);
+ $test['result'] &= $t;
+ }
+
if(!$test['result'])
$test['comments'][] = _("Extensions configuration files and directories should be writeable");
+ $fname = $path_to_root."/themes";
$themedir = opendir($fname);
while (false !== ($fname = readdir($themedir)))
{
);
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Test"), _('Test type'), _("Value"), _("Comments"));
table_header($th);