';
print '
Backend Info |
';
print 'Version | '.$version_string.' |
';
foreach ($private_prefs as $p) {
if (array_key_exists($p, $prefs) && $prefs[$p] != '') {
$prefs[$p] = '[Redacted]';
}
print ''.$p.' | '.$prefs[$p].' |
';
}
print 'Server Info |
';
foreach (array('PHP_SELF', 'SERVER_ADDR', 'SERVER_NAME', 'SERVER_SOFTWARE', 'DOCUMENT_ROOT',
'HTTP_HOST', 'HTTP_USER_AGENT', 'REMOTE_ADDR', 'REMOTE_HOST', 'SERVER_PORT', 'REQUEST_URI',
) as $k) {
if (array_key_exists($k, $_SERVER)) {
print ''.$k.' | '.$_SERVER[$k].' |
';
}
}
print 'Cookies |
';
foreach ($_COOKIE as $i => $v) {
print ''.$i.' | '.$v.' |
';
}
print 'PHP Info |
';
print 'Version | '.phpversion().' |
';
print 'mbstring | '.phpversion('mbstring').' |
';
print 'PDO | '.phpversion('PDO').' |
';
print 'pdo_mysql | '.phpversion('pdo_mysql').' |
';
print 'pdo_sqlite | '.phpversion('pdo_sqlite').' |
';
print 'curl | '.phpversion('curl').' |
';
print 'date | '.phpversion('date').' |
';
print 'fileinfo | '.phpversion('fileinfo').' |
';
print 'json | '.phpversion('json').' |
';
print 'SimpleXML | '.phpversion('SimpleXML').' |
';
print 'GD | '.phpversion('GD').' |
';
if (extension_loaded('gd')) {
$gdinfo = gd_info();
print 'GD Info | '.multi_implode($gdinfo).' |
';
}
$convert_path = find_executable('convert');
if ($convert_path === false) {
print 'ImageMagick | Not Installed |
';
} else {
print 'ImageMagick | Installed |
';
}
$php_values = array(
'date.timezone',
'default_charset',
'default_socket_timeout',
'display_errors',
'error_log',
'error_reporting',
'file_uploads',
'log_errors',
'max_execution_time',
'mbstring.language',
'memory_limit',
'pdo_mysql.default_socket',
'session.use_cookies',
'upload_tmp_dir'
);
$pi = ini_get_all();
foreach ($php_values as $v) {
$t = '[NOT SET]';
if (array_key_exists($v, $pi)) {
$t = $pi[$v];
}
print ''.$v.' | '.multi_implode($t).' |
';
}
$player = new $PLAYER_TYPE();
print 'Player Information |
';
if ($player->is_connected()) {
print 'Connection Status | Connection Successful |
';
$config = $player->get_config();
foreach ($config as $c => $v) {
print ''.$c.' | '.multi_implode($v).' |
';
}
$tagtypes = $player->get_tagtypes();
if (is_array($tagtypes)) {
foreach ($tagtypes as $c => $v) {
print ''.$c.' | '.implode(', ', $v).' |
';
}
}
$commands = $player->get_commands();
if (is_array($commands)) {
foreach ($commands as $c => $v) {
print 'Commands | '.implode(', ', $v).' |
';
}
}
$commands = $player->get_notcommands();
if (is_array($commands)) {
foreach ($commands as $c => $v) {
print 'Not Commands | '.implode(', ', $v).' |
';
}
}
$commands = $player->get_uri_handlers();
if (count($commands) > 0) {
foreach ($commands as $c => $v) {
if (is_array($v)) {
print 'URL Handlers | '.implode(', ', $v).' |
';
} else {
print 'URL Handlers | '.$v.' |
';
}
}
}
$commands = $player->get_decoders();
if (is_array($commands)) {
foreach ($commands as $c => $v) {
print ''.$c.' | '.implode(', ', $v).' |
';
}
}
} else {
print 'Connection Status | Connection Failed |
';
}
print '';
?>