Adds EXIF and PHP version to info page.
This commit is contained in:
parent
efb447ae78
commit
d76e1194d1
4 changed files with 12 additions and 4 deletions
|
@ -22,6 +22,7 @@ modulejs.define('info', ['$'], function ($) {
|
|||
|
||||
setCheckResult(this, json.checks[$(this).data('id')]);
|
||||
});
|
||||
$('.test.php .test-result').text(json.checks['phpversion']);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -57,7 +57,7 @@ Options
|
|||
- interval: number, update interval in milliseconds, at least 1000
|
||||
*/
|
||||
"autorefresh": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"interval": 5000
|
||||
},
|
||||
|
||||
|
@ -84,7 +84,7 @@ Options
|
|||
Allow file deletion.
|
||||
*/
|
||||
"delete": {
|
||||
"enabled": false
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
/* [EXPERIMENTAL]
|
||||
|
@ -95,7 +95,7 @@ Options
|
|||
- maxfilesize: number, file size is in MB
|
||||
*/
|
||||
"dropbox": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"maxfiles": 10,
|
||||
"maxfilesize": 1000
|
||||
},
|
||||
|
|
|
@ -32,7 +32,7 @@ html.no-js( lang="en" )
|
|||
|
||||
h2 server supports
|
||||
ul#tests
|
||||
li.test( data-id="php" )
|
||||
li.test.php( data-id="php" )
|
||||
span.test-label php version
|
||||
span.test-result ?
|
||||
div.test-info PHP version >= 5.2.1
|
||||
|
@ -44,6 +44,10 @@ html.no-js( lang="en" )
|
|||
span.test-label image thumbs
|
||||
span.test-result ?
|
||||
div.test-info PHP GD extension with JPEG support available
|
||||
li.test( data-id="exif" )
|
||||
span.test-label use exif thumbs
|
||||
span.test-result ?
|
||||
div.test-info PHP EXIF extension available
|
||||
li.test( data-id="ffmpeg" )
|
||||
span.test-label movie thumbs
|
||||
span.test-result ?
|
||||
|
|
|
@ -278,6 +278,7 @@ class App {
|
|||
$gdinfo = gd_info();
|
||||
$gd = array_key_exists("JPG Support", $gdinfo) && $gdinfo["JPG Support"] || array_key_exists("JPEG Support", $gdinfo) && $gdinfo["JPEG Support"];
|
||||
}
|
||||
$exif = function_exists("exif_thumbnail");
|
||||
$cache = @is_writable($this->get_cache_abs_path());
|
||||
$tar = @preg_match("/tar(.exe)?$/i", `which tar`) > 0;
|
||||
$zip = @preg_match("/zip(.exe)?$/i", `which zip`) > 0;
|
||||
|
@ -287,9 +288,11 @@ class App {
|
|||
|
||||
return array(
|
||||
"idx" => $this->app_abs_href . "server/php/index.php",
|
||||
"phpversion" => PHP_VERSION,
|
||||
"php" => $php,
|
||||
"cache" => $cache,
|
||||
"thumbs" => $gd,
|
||||
"exif" => $exif,
|
||||
"tar" => $tar,
|
||||
"zip" => $zip,
|
||||
"convert" => $convert,
|
||||
|
|
Loading…
Add table
Reference in a new issue