Sorry, the setup wizard cannot start.', '
This server is running PHP version ', PHP_VERSION, '
', 'PHP ', WT_REQUIRED_PHP_VERSION , ' (or any later version) is required
'; exit; } require 'includes/functions/functions.php'; require 'includes/functions/functions_edit.php'; $WT_REQUEST = new Zend_Controller_Request_Http(); $WT_SESSION = new stdClass; $WT_SESSION->locale = null; // Needed for WT_I18N $WT_SESSION->wt_user = null; // Needed for WT_Auth define('WT_LOCALE', WT_I18N::init(WT_Filter::post('lang', '[@a-zA-Z_]+'))); header('Content-Type: text/html; charset=UTF-8'); ?> >', WT_I18N::translate('Change language'), ' ', edit_field_language('change_lang', WT_LOCALE, 'onchange="window.location=\'' . WT_SCRIPT_NAME . '?lang=\'+this.value;">'), '
', '', /* I18N: %s is a PHP function/module/setting */ WT_I18N::translate('%s is disabled on this server. You cannot install webtrees until it is enabled. Please ask your server’s administrator to enable it.', $function.'()'), '
'; $errors=true; } } // Mandatory extensions foreach (array('pcre', 'pdo', 'pdo_mysql', 'session', 'iconv') as $extension) { if (!extension_loaded($extension)) { echo '', WT_I18N::translate('PHP extension “%s” is disabled. You cannot install webtrees until this is enabled. Please ask your server’s administrator to enable it.', $extension), '
'; $errors=true; } } // Recommended extensions foreach (array( 'gd' => /* I18N: a program feature */ WT_I18N::translate('creating thumbnails of images'), 'xml' => /* I18N: a program feature */ WT_I18N::translate('reporting'), 'simplexml' => /* I18N: a program feature */ WT_I18N::translate('reporting'), ) as $extension=>$features) { if (!extension_loaded($extension)) { echo '', WT_I18N::translate('PHP extension “%1$s” is disabled. Without it, the following features will not work: %2$s. Please ask your server’s administrator to enable it.', $extension, $features), '
'; $warnings=true; } } // Settings foreach (array( 'file_uploads'=>/* I18N: a program feature */ WT_I18N::translate('file upload capability'), ) as $setting=>$features) { if (!ini_get($setting)) { echo '', WT_I18N::translate('PHP setting “%1$s” is disabled. Without it, the following features will not work: %2$s. Please ask your server’s administrator to enable it.', $setting, $features), '
'; $warnings=true; } } if (!$warnings && !$errors) { echo '', WT_I18N::translate('The server configuration is OK.'), '
'; } echo '',
WT_I18N::translate('The memory and CPU time requirements depend on the number of individuals in your family tree.'),
'
',
WT_I18N::translate('The following list shows typical requirements.'),
'
',
WT_I18N::translate('Small systems (500 individuals): 16-32MB, 10-20 seconds'),
'
',
WT_I18N::translate('Medium systems (5000 individuals): 32-64MB, 20-40 seconds'),
'
',
WT_I18N::translate('Large systems (50000 individuals): 64-128MB, 40-80 seconds'),
'
' : '
', WT_I18N::translate('This server’s memory limit is %dMB and its CPU time limit is %d seconds.', $maxmem, $maxcpu), '
', WT_I18N::translate('If you try to exceed these limits, you may experience server time-outs and blank pages.'), '
', WT_I18N::translate('If your server’s security policy permits it, you will be able to request increased memory or CPU time using the webtrees administration page. Otherwise, you will need to contact your server’s administrator.'), '
'; if (!$errors) { echo ''; echo ''; echo '', WT_I18N::translate('Oops! webtrees was unable to create files in this folder.'), '
'; echo '', WT_I18N::translate('This usually means that you need to change the folder permissions to 777.'), '
'; echo '', WT_I18N::translate('You must change this before you can continue.'), '
'; echo '