$check_recommended = 0; } $data['rc']['file_uploads'] = $switch[1]; $data['av']['file_uploads'] = $switch[(int) cs_phpconfigcheck('file_uploads')]; if ($data['av']['file_uploads'] != $data['rc']['file_uploads']) { $data['av']['file_uploads'] = '<div style="color:#B91F1D">' . $data['av']['file_uploads'] . '</div>'; $check_recommended = 0; } $data['rc']['fopen'] = $switch[1]; $data['av']['fopen'] = $switch[(int) cs_phpconfigcheck('allow_url_fopen')]; if ($data['av']['fopen'] != $data['rc']['fopen']) { $data['av']['fopen'] = '<div style="color:#B91F1D">' . $data['av']['fopen'] . '</div>'; $check_recommended = 0; } $data['rc']['allow_url_include'] = $switch[0]; $data['av']['allow_url_include'] = $switch[(int) cs_phpconfigcheck('allow_url_include')]; if ($data['av']['allow_url_include'] != $data['rc']['allow_url_include']) { $data['av']['allow_url_include'] = '<div style="color:#B91F1D">' . $data['av']['allow_url_include'] . '</div>'; $check_recommended = 0; } $data['rc']['gd'] = $switch[1]; $data['av']['gd'] = $switch[(int) extension_loaded('gd')]; if ($data['av']['gd'] != $data['rc']['gd']) { $data['av']['gd'] = '<div style="color:#B91F1D">' . $data['av']['gd'] . '</div>'; $check_recommended = 0; } if (!empty($check_required) && !empty($check_recommended)) { $data['info']['result'] = $cs_lang['check_perfect'] . cs_html_br(2) . cs_link($cs_lang['continue'], 'install', 'license', 'lang=' . $account['users_lang']); } elseif (!empty($check_required)) { $data['info']['result'] = $cs_lang['check_ok'] . cs_html_br(2) . cs_link($cs_lang['continue'], 'install', 'license', 'lang=' . $account['users_lang']); } else {
} else { cs_error(__FILE__, 'PHP configuration of "' . $name . '" is not within expected values: "' . $value . '"'); } } $display_errors = cs_phpconfigcheck('display_errors'); $file_uploads = cs_phpconfigcheck('file_uploads'); $short_open_tag = cs_phpconfigcheck('short_open_tag'); $register_globals = cs_phpconfigcheck('register_globals'); $magic_quotes_gpc = cs_phpconfigcheck('magic_quotes_gpc'); $magic_quotes_runtime = cs_phpconfigcheck('magic_quotes_runtime'); $magic_quotes_sybase = cs_phpconfigcheck('magic_quotes_sybase'); $safe_mode = cs_phpconfigcheck('safe_mode'); $trans_sid = cs_phpconfigcheck('session.use_trans_sid'); $basedir = cs_phpconfigcheck('open_basedir', true); $url_fopen = cs_phpconfigcheck('allow_url_fopen'); $url_include = cs_phpconfigcheck('allow_url_include'); $limit['post_max_size'] = str_replace('M', ' MiB', ini_get('post_max_size')); $limit['upload_max_filesize'] = str_replace('M', ' MiB', ini_get('upload_max_filesize')); $limit['memory_limit'] = str_replace('M', ' MiB', ini_get('memory_limit')); $data['software']['os'] = @php_uname('s') . ' ' . @php_uname('r') . ' ' . @php_uname('v'); $data['software']['host'] = @php_uname('n'); if (function_exists('apache_get_version')) { $data['software']['webserver'] = apache_get_version(); } if (empty($data['software']['webserver'])) { $data['software']['webserver'] = isset($_SERVER['SERVER_SOFTWARE']) ? str_replace('/', ' ', $_SERVER['SERVER_SOFTWARE']) : ''; } $data['software']['php_mode'] = php_sapi_name(); $data['software']['php_mod'] = phpversion(); $data['software']['zend_core'] = zend_version(); $gd_vers = '-';