示例#1
0
<tr>
    <td valign="top"><?php 
echo T_('Dependencies');
?>
</td>
    <td valign="top">
    <?php 
echo debug_result(check_dependencies_folder());
?>
    </td>
    <td>
    <?php 
echo T_('This tests whether Ampache dependencies are installed.');
?>
    <?php 
if (!check_dependencies_folder()) {
    ?>
        <br />
        <b><?php 
    echo T_('Please download and install Composer from http://getcomposer.org and install it (e.g: mv composer.phar /usr/local/bin/composer) then run `composer install --prefer-source --no-interaction` on Ampache directory.');
    ?>
</b>
    <?php 
}
?>
    </td>
</tr>
<tr>
    <td valign="top"><?php 
echo T_('PHP hash extension');
?>
示例#2
0
文件: init.php 项目: bl00m/ampache
}
// Check to make sure the config file exists. If it doesn't then go ahead and
// send them over to the install script.
$results = array();
if (!file_exists($configfile)) {
    $link = $path . '/install.php';
} else {
    // Make sure the config file is set up and parsable
    $results = @parse_ini_file($configfile);
    if (!count($results)) {
        $link = $path . '/test.php?action=config';
    }
}
// Verify that a few important but commonly disabled PHP functions exist and
// that we're on a usable version
if (!check_php() || !check_dependencies_folder()) {
    $link = $path . '/test.php';
}
// Do the redirect if we can't continue
if (!empty($link)) {
    header("Location: {$link}");
    exit;
}
$results['load_time_begin'] = $load_time_begin;
/** This is the version.... fluf nothing more... **/
$results['version'] = '3.8.2';
$results['int_config_version'] = '33';
if (!empty($results['force_ssl'])) {
    $http_type = 'https://';
}
if (isset($ow_config) && is_array($ow_config)) {