123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?php
- define('STEP',2);
- require dirname(__FILE__).'/prepend.php';
- $php_check = new checkList();
- $php_check->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())
- );
- $php_check->addItem('mysql',function_exists('mysql_connect'),
- sprintf(__('%s module is present.'),'MySQL'),
- sprintf(__('%s module is not present.'),'MySQL')
- );
- $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();
- $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 '<h2>'.__('Checking your configuration').'</h2>';
- echo '<h3>'.__('PHP version and modules').'</h3>';
- echo $php_check->getHTML($img_chk_on,$img_chk_off,$img_chk_wrn);
- echo '<h3>'.__('Files permissions').'</h3>';
- echo $files_check->getHTML($img_chk_on,$img_chk_off,$img_chk_wrn);
- if ($php_check->checkAll() && $files_check->checkAll())
- {
- echo
- '<p><strong>'.__('DotClear can be installed on your site.').'</strong></p>';
-
- echo
- '<form action="db-pref.php" method="post">'.
- '<p><input type="submit" class="submit" value="'.__('Next step').' »" /></p>'.
- '</form>';
- }
- else
- {
- echo
- '<p class="important">'.
- __('DotClear cannot be installed.').
- '</p>';
- if (!$php_check->checkAll()) {
- echo
- '<p>'.__('Your PHP configuration is not valid. '.
- 'Please contact your Web host to solve this problem.').'</p>';
- }
- if (!$files_check->checkAll()) {
- echo
- '<p>'.__('Some files or directories are not writable. Please '.
- 'change their permissions to install DotClear.').'</p>';
- }
- }
- ?>
- <?php require dirname(__FILE__).'/__bottom.php'; ?>
|