<?php $checkresult = true; $checkresults = array(); foreach ($checks as $check_name => $check) { if (is_array($check)) { $function = $check[0]; $args = $check[1]; } else { $function = $check; $args = array(); } $checkresults[$check_name] = call_user_func($function, $args); $checkresult = $checkresult && $checkresults[$check_name]; } if ($checkresult) { if (check_ariadne_phtml_write() || $downloaded_config) { ?> <h2><?php echo $ARnls['install:running']; ?> </h2> <?php foreach ($install_steps as $install_step) { // show the steps; ?> <div class="step" id="<?php echo $install_step; ?> _step"> <div class="progress" id="<?php echo $install_step;
return true; } return false; } function getServerVar($name) { return isset($_SERVER[$name]) ? $_SERVER[$name] : null; } function find_in_path($needle, array $extrapath = array()) { $paths = explode(PATH_SEPARATOR, getServerVar('PATH')); $paths = array_merge($paths, $extrapath); $exts = explode(PATH_SEPARATOR, getServerVar('PATHEXT')); foreach ($paths as $path) { $file = $path . DIRECTORY_SEPARATOR . $needle; if (file_exists($file)) { return $file; } // W32 needs this foreach ($exts as $ext) { if (file_exists($file . $ext)) { return $file . $ext; } } } } $found_bins = array(); // will be filled by the check functions $required_checks = array("check_php_version" => check_php_version(), "check_database_support" => check_database_support(), "check_webserver" => check_webserver(), "check_accept_path_info" => check_accept_path_info(), "check_zend_compat" => check_zend_compat(), "check_ariadne_inc_read" => check_ariadne_inc_read(), "check_ariadne_path" => check_ariadne_path(), "check_files_write" => check_files_write(), "check_base_ax" => check_base_ax(), "check_tar_class" => check_tar_class(), "check_mb_functions" => check_mb_functions()); $recommended_checks = array("check_ariadne_phtml_write" => check_ariadne_phtml_write(), "check_exif" => check_exif(), "check_image_magick" => check_image_magick(), "check_svn" => check_svn(), "check_svn_write" => check_svn_write(), "check_html_tidy" => check_html_tidy(), "check_grep" => check_grep(), "check_demo_ax" => check_demo_ax(), "check_mcrypt" => check_mcrypt());