示例#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;
}
示例#2
0
?>
    </td>
    <td>
    <?php 
echo T_('This tests whether you have the GD extension enabled. This is not strictly necessary, but may result in a better experience.');
?>
    </td>
</tr>
<tr>
    <td valign="top"><?php 
echo T_('PHP safe mode disabled');
?>
</td>
    <td valign="top">
    <?php 
echo debug_result(check_php_safemode());
?>
    </td>
    <td>
    <?php 
echo T_('This test makes sure that PHP is not running in safe mode. Some features of Ampache will not work correctly in safe mode.');
?>
    </td>
</tr>
<tr>
    <td valign="top"><?php 
echo T_('PHP memory limit override');
?>
</td>
    <td valign="top">
    <?php