Exemplo n.º 1
0
        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());
Exemplo n.º 2
0
} else {
    $checked = '';
}
?>
						<input type="hidden" name="enable_workspaces" value="0">
						<input <?php 
echo $checked . ' ' . $disabled;
?>
 type="checkbox" id="enable_workspaces" name="enable_workspaces" value="1">
						<label for='enable_workspaces'><?php 
echo $ARnls['install:enable_workspaces'];
?>
</label>
					</div>
					<?php 
if (check_demo_ax()) {
    ?>
					<div class="field checkbox">
						<?php 
    if ($install_demo) {
        $checked = "checked='checked'";
    } else {
        $checked = '';
    }
    ?>
						<input type="hidden" name="install_demo" value="0">
						<input <?php 
    echo $checked;
    ?>
 type="checkbox" id="install_demo" name="install_demo" value="1">
						<label for='install_demo'><?php