Beispiel #1
0
/**
 *
 * LICENSE: GNU General Public License, version 2 (GPLv2)
 * Copyright 2001 - 2014 Ampache.org
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License v2
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
function check_php()
{
    if (check_php_version() && check_php_hash() && check_php_hash_algo() && check_php_pdo() && check_php_pdo_mysql() && check_php_session() && check_php_json() && check_php_safemode()) {
        return true;
    }
    return false;
}
Beispiel #2
0
    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');
?>
</td>
    <td valign="top">
    <?php 
echo debug_result(check_php_hash());
?>
    </td>
    <td>
    <?php 
echo T_('This tests whether you have the hash extension enabled. This extension is required by Ampache.');
?>
    </td>
</tr>
<tr>
    <td valign="top"><?php 
echo T_('SHA256');
?>
</td>
    <td valign="top">
    <?php