blob: a961e9df3935fc82f0e65ff4d9079119b708c324 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
<?php
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
/**
* Show Debug
*
* PHP version 5
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
* Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
*
* 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.
*
* @category Template
* @package Template
* @author Karl Vollmer <vollmer@ampache.org>
* @copyright 2001 - 2011 Ampache.org
* @license http://opensource.org/licenses/gpl-2.0 GPLv2
* @version PHP 5.2
* @link http://www.ampache.org/
* @since File available since Release 1.0
*/
?>
<?php show_box_top(_('Debug Tools')); ?>
<div id="information_actions">
<ul>
<li>
<a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=generate_config"><?php echo get_user_icon('cog', _('Generate Configuration')); ?></a>
<?php echo _('Generate Configuration'); ?>
</li>
<li>
<a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=reset_db_charset"><?php echo get_user_icon('server_lightning', _('Set Database Charset')); ?></a>
<?php echo _('Set Database Charset'); ?>
</li>
</ul>
</div>
<?php show_box_bottom(); ?>
<?php show_box_top(_('PHP Settings')); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_php_setting">
<col id="col_php_value">
</colgroup>
<tr class="th-top">
<th class="cel_php_setting"><?php echo _('Setting'); ?></th>
<th class="cel_php_value"><?php echo _('Value'); ?></th>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('Memory Limit'); ?></td>
<td><?php echo ini_get('memory_limit'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('Maximum Execution Time'); ?></td>
<td><?php echo ini_get('max_execution_time'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('Override Execution Time'); ?></td>
<td><?php set_time_limit(0); echo ini_get('max_execution_time') ? _('Failed') : _('Succeeded'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('Safe Mode'); ?></td>
<td><?php echo print_bool(ini_get('safe_mode')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td>Open Basedir</td>
<td><?php echo ini_get('open_basedir'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('Zlib Support'); ?></td>
<td><?php echo print_bool(function_exists('gzcompress')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('GD Support'); ?></td>
<td><?php echo print_bool(function_exists('ImageCreateFromString')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('Iconv Support'); ?></td>
<td><?php echo print_bool(function_exists('iconv')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _('Gettext Support'); ?></td>
<td><?php echo print_bool(function_exists('bindtextdomain')); ?></td>
</tr>
</table>
<?php show_box_bottom(); ?>
<?php show_box_top(_('Current Configuration')); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_configuration">
<col id="col_value">
</colgroup>
<tr class="th-top">
<th class="cel_configuration"><?php echo _('Preference'); ?></th>
<th class="cel_value"><?php echo _('Value'); ?></th>
</tr>
<?php foreach ($configuration as $key=>$value) {
if ($key == 'database_password' || $key == 'mysql_password') { $value = '*********'; }
if (is_array($value)) {
$string = '';
foreach ($value as $setting) {
$string .= $setting . '<br />';
}
$value = $string;
}
if (Preference::is_boolean($key)) {
$value = print_bool($value);
}
?>
<tr class="<?php echo flip_class(); ?>">
<td valign="top"><strong><?php echo $key; ?></strong></td>
<td><?php echo $value; ?></td>
</tr>
<?php } ?>
</table>
<?php show_box_bottom(); ?>
|