~ubuntu-branches/debian/sid/ampache/sid

« back to all changes in this revision

Viewing changes to templates/show_test_table.inc.php

  • Committer: Package Import Robot
  • Author(s): Charlie Smotherman
  • Date: 2013-08-27 13:19:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20130827131948-1czew0zxn6u70dtv
Tags: 3.6-rzb2752+dfsg-1
* New upsteam snapshot.  Contains important bug fixes to the installer.
* Correct typo in ampache-common.postrm.
* Remove courtousy copy of php-getid3, during repack.  Closes: #701526
* Update package to use dh_linktree to make the needed sym links to the
  needed system libs that were removed during repack.
* Update debian/rules to reflect upstreams removing/moving of modules.
* Update debian/ampache-common.install to reflect upstreams removal of files.
* Updated to use new apache2.4 API. Closes: #669756
* Updated /debian/po/de.po thx David Prévot for the patch.  Closes:  #691963
* M3U import is now ordered, fixed upstream.  Closes: #684984
* Text input area has been resized so IPv6 addresses will now fit, fixed
  upstream.  Closes:  #716230
* Added ampache-common.preinst to make sure that the courtousy copies of code
  dirs are empty so dh_linktree can do it's magic on upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
 
3
/**
 
4
 *
 
5
 * LICENSE: GNU General Public License, version 2 (GPLv2)
 
6
 * Copyright 2001 - 2013 Ampache.org
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU General Public License v2
 
10
 * as published by the Free Software Foundation.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
20
 *
 
21
 */
 
22
?>
 
23
<tr>
 
24
    <td valign="top"><?php echo T_('PHP version'); ?></td>
 
25
    <td valign="top">
 
26
    <?php echo debug_result(check_php_version()); ?>
 
27
    </td>
 
28
    <td>
 
29
    <?php echo T_('This tests whether you are running at least the minimum version of PHP required by Ampache.'); ?>
 
30
    </td>
 
31
</tr>
 
32
<tr>
 
33
    <td valign="top"><?php echo T_('PHP hash extension'); ?></td>
 
34
    <td valign="top">
 
35
    <?php echo debug_result(check_php_hash()); ?>
 
36
    </td>
 
37
    <td>
 
38
    <?php echo T_('This tests whether you have the hash extension enabled. This extension is required by Ampache.'); ?>
 
39
    </td>
 
40
</tr>
 
41
<tr>
 
42
    <td valign="top"><?php echo T_('SHA256'); ?></td>
 
43
    <td valign="top">
 
44
    <?php echo debug_result(check_php_hash_algo()); ?>
 
45
    </td>
 
46
    <td>
 
47
    <?php echo T_('This tests whether the hash extension supports SHA256. This algorithm is required by Ampache.'); ?>
 
48
    </td>
 
49
</tr>
 
50
<tr>
 
51
    <td valign="top"><?php echo T_('PHP PDO extension'); ?></td>
 
52
    <td valign="top">
 
53
    <?php echo debug_result(check_php_pdo()); ?>
 
54
    </td>
 
55
    <td>
 
56
    <?php echo T_('This tests whether you have the PDO extension enabled. This extension is required by Ampache.'); ?>
 
57
    </td>
 
58
</tr>
 
59
<tr>
 
60
    <td valign="top"><?php echo T_('MySQL'); ?></td>
 
61
    <td valign="top">
 
62
    <?php echo debug_result(check_php_pdo_mysql()); ?>
 
63
    </td>
 
64
    <td>
 
65
    <?php echo T_('This tests whether the MySQL driver for PDO is enabled. This driver is required by Ampache.'); ?>
 
66
    </td>
 
67
</tr>
 
68
<tr>
 
69
    <td valign="top"><?php echo T_('PHP session extension'); ?></td>
 
70
    <td valign="top">
 
71
    <?php echo debug_result(check_php_session()); ?>
 
72
    </td>
 
73
    <td>
 
74
    <?php echo T_('This tests whether you have the session extension enabled. This extension is required by Ampache.'); ?>
 
75
    </td>
 
76
</tr>
 
77
<tr>
 
78
    <td valign="top"><?php echo T_('PHP iconv extension'); ?></td>
 
79
    <td valign="top">
 
80
    <?php echo debug_result(UI::check_iconv()); ?>
 
81
    </td>
 
82
    <td>
 
83
    <?php echo T_('This tests whether you have the iconv extension enabled. This extension is required by Ampache.'); ?>
 
84
    </td>
 
85
</tr>
 
86
<tr>
 
87
    <td valign="top"><?php echo T_('PHP JSON extension'); ?></td>
 
88
    <td valign="top">
 
89
    <?php echo debug_result(check_php_json()); ?>
 
90
    </td>
 
91
    <td>
 
92
    <?php echo T_('This tests whether you have the JSON extension enabled. This extension is required by Ampache.'); ?>
 
93
    </td>
 
94
</tr>
 
95
<tr>
 
96
    <td valign="top"><?php echo T_('PHP safe mode disabled'); ?></td>
 
97
    <td valign="top">
 
98
    <?php echo debug_result(check_php_safemode()); ?>
 
99
    </td>
 
100
    <td>
 
101
    <?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.'); ?>
 
102
    </td>
 
103
</tr>
 
104
<tr>
 
105
    <td valign="top"><?php echo T_('PHP memory limit override'); ?></td>
 
106
    <td valign="top">
 
107
    <?php echo debug_result(check_override_memory()); ?>
 
108
    </td>
 
109
    <td>
 
110
    <?php echo T_('This tests whether Ampache can override the memory limit.  This is not strictly necessary, but may result in a better experience.'); ?>
 
111
    </td>
 
112
</tr>
 
113
<tr>
 
114
    <td valign="top"><?php echo T_('PHP execution time override'); ?></td>
 
115
    <td valign="top">
 
116
    <?php echo debug_result(check_override_exec_time()); ?>
 
117
    </td>
 
118
    <td>
 
119
    <?php echo T_('This tests whether Ampache can override the limit on maximum execution time.  This is not strictly necessary, but may result in a better experience.'); ?>
 
120
    </td>
 
121
</tr>
 
122
<?php
 
123
if (!defined('INSTALL')) {
 
124
?>
 
125
<tr>
 
126
    <td valign="top"><?php echo T_('Configuration file readability'); ?></td>
 
127
    <td valign="top">
 
128
    <?php echo debug_result(is_readable($configfile)); ?>
 
129
    </td>
 
130
    <td width="350px">
 
131
    <?php echo T_('This test attempts to read config/ampache.cfg.php. If this fails the file either is not in the correct location or is not currently readable.'); ?>
 
132
    </td>
 
133
</tr>
 
134
<tr>
 
135
    <td valign="top">
 
136
        <?php echo T_('Configuration file validity'); ?>
 
137
    </td>
 
138
    <td valign="top">
 
139
    <?php
 
140
        $results = @parse_ini_file($configfile);
 
141
        Config::set_by_array($results);
 
142
        echo debug_result(check_config_values($results));
 
143
    ?>
 
144
    </td>
 
145
    <td>
 
146
    <?php echo T_("This test makes sure that you have set all of the required configuration variables and that we are able to completely parse your config file."); ?>
 
147
    </td>
 
148
</tr>
 
149
<tr>
 
150
    <td valign="top"><?php echo T_("Database connection"); ?></td>
 
151
    <td valign="top">
 
152
    <?php echo debug_result(check_php_pdo() && Dba::check_database()); ?>
 
153
    </td>
 
154
    <td>
 
155
    <?php echo T_('This attempts to connect to your database using the values read from your configuration file.'); ?>
 
156
    </td>
 
157
</tr>
 
158
<tr>
 
159
    <td valign="top"><?php echo T_('Database tables'); ?></td>
 
160
    <td valign="top">
 
161
    <?php echo debug_result(check_php_pdo() && Dba::check_database_inserted()); ?>
 
162
    </td>
 
163
    <td>
 
164
    <?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'); ?>
 
165
    </td>
 
166
</tr>
 
167
<tr>
 
168
 
 
169
    <td valign="top"><?php echo T_('Web path'); ?></td>
 
170
    <td valign="top">
 
171
    <?php
 
172
        if ($results['force_ssl']) {
 
173
            $http_type = 'https://';
 
174
        }
 
175
 
 
176
        $results['web_path'] = $http_type . $_SERVER['HTTP_HOST'] . Config::get('web_path');
 
177
        if (check_config_values($results)) {
 
178
            echo "&nbsp;&nbsp;&nbsp;<img src=\"" . $results['web_path'] ."/images/icon_enable.png\" />&nbsp;&nbsp;&nbsp;";
 
179
        }
 
180
        else {
 
181
            echo debug_result(false);
 
182
        }
 
183
 
 
184
    ?>
 
185
    </td>
 
186
    <td>
 
187
    <?php echo T_('This test makes sure that your web_path variable is set correctly and that we are able to get to the index page. If you do not see a check mark here then your web_path is not set correctly.'); ?>
 
188
    </td>
 
189
</tr>
 
190
<?php
 
191
}
 
192
?>