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());
<?php include_once "system_checks.php"; function getPostVar($name) { return isset($_POST[$name]) ? $_POST[$name] : null; } $defaults = array("language" => "en", "step" => "step1", "database_host" => "localhost"); if (check_svn() && check_svn_write()) { $defaults['enable_svn'] = 1; } else { $defaults['enable_svn'] = 0; } $languages = array("en" => "English", "nl" => "Nederlands"); $steps = array("step1" => "step1.php", "step2" => "step2.php", "step3" => "step3.php", "step4" => "step4.php", "step5" => "step5.php", "step6" => "step6.php", "step7" => "login.php"); $databases = array(); if (check_mysql()) { $databases['mysql'] = "MySQL"; // $databases['mysql_workspaces'] = "MySQL Workspaced (EXPERIMENTAL)"; } if (check_postgresql()) { $databases['postgresql'] = "PostgreSQL"; } $language = getPostVar('language'); $step = getPostVar('step'); $database = getPostVar('database'); $database_host = getPostVar('database_host'); $database_user = getPostVar('database_user'); $database_pass = getPostVar('database_pass'); $database_name = getPostVar('database_name'); $admin_pass = getPostVar('admin_pass');
</td><td> <?php echo $ARnls['install:admin_pass_repeat_help']; ?> </td></tr> </table> <h2><?php echo $ARnls['install:install_modules']; ?> </h2> <div class="field checkbox"> <?php $disabled = ''; $checked = ''; $svnsupport = check_svn(); if (!$svnsupport) { $disabled = "disabled"; } elseif ($enable_svn) { $checked = "checked='checked'"; } else { $checked = ''; } ?> <input type="hidden" name="enable_svn" value="0"> <input <?php echo $checked; ?> <?php echo $disabled; ?>