コード例 #1
0
ファイル: debug.lib.php プロジェクト: axelsimon/ampache
/**
 *
 * 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
ファイル: show_test_table.inc.php プロジェクト: bl00m/ampache
    ?>
    </td>
    <td>
    <?php 
    echo T_('This attempts to connect to your database using the values read from your configuration file.');
    ?>
    </td>
</tr>
<tr>
    <td valign="top"><?php 
    echo T_('Database tables');
    ?>
</td>
    <td valign="top">
    <?php 
    echo debug_result(check_php_pdo() && Dba::check_database_inserted());
    ?>
    </td>
    <td>
    <?php 
    echo T_('This checks a few key tables to make sure that you have successfully inserted the Ampache database and that the user has access to the database');
    ?>
    </td>
</tr>
<tr>

    <td valign="top"><?php 
    echo T_('Web path');
    ?>
</td>
    <td valign="top">