addItem('php',version_compare(phpversion(),'4.1','>='), sprintf(__('PHP version is %s.'),phpversion()), sprintf(__('PHP version is %s. Version 4.1 or better is required.'),phpversion()) ); # Vérification de la présence des fonctions MySQL $php_check->addItem('mysql',function_exists('mysql_connect'), sprintf(__('%s module is present.'),'MySQL'), sprintf(__('%s module is not present.'),'MySQL') ); # Vérification de la présence du module XML $php_check->addItem('xml',function_exists('xml_parser_create'), sprintf(__('%s module is present.'),'XML'), sprintf(__('%s module is not present.'),'XML') ); $files_check = new checkList(); # Vérification des droits sur /conf $files_check->addItem('conf',is_writable(dirname(__FILE__).'/../conf'), sprintf(__('%s is writable.'),'conf/'), sprintf(__('%s is not writable. Please change its permissions to install.'),'conf/') ); if ($php_check->checkAll() && $files_check->checkAll()) { $ses->reg('step',3); } require dirname(__FILE__).'/__top.php'; echo '
'.__('DotClear can be installed on your site.').'
'; echo ''; } else { echo ''. __('DotClear cannot be installed.'). '
'; if (!$php_check->checkAll()) { echo ''.__('Your PHP configuration is not valid. '. 'Please contact your Web host to solve this problem.').'
'; } if (!$files_check->checkAll()) { echo ''.__('Some files or directories are not writable. Please '. 'change their permissions to install DotClear.').'
'; } } ?>