mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
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')]);
|
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
|
- interval: number, update interval in milliseconds, at least 1000
|
||||||
*/
|
*/
|
||||||
"autorefresh": {
|
"autorefresh": {
|
||||||
"enabled": false,
|
"enabled": true,
|
||||||
"interval": 5000
|
"interval": 5000
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ Options
|
||||||
Allow file deletion.
|
Allow file deletion.
|
||||||
*/
|
*/
|
||||||
"delete": {
|
"delete": {
|
||||||
"enabled": false
|
"enabled": true
|
||||||
},
|
},
|
||||||
|
|
||||||
/* [EXPERIMENTAL]
|
/* [EXPERIMENTAL]
|
||||||
|
@ -95,7 +95,7 @@ Options
|
||||||
- maxfilesize: number, file size is in MB
|
- maxfilesize: number, file size is in MB
|
||||||
*/
|
*/
|
||||||
"dropbox": {
|
"dropbox": {
|
||||||
"enabled": false,
|
"enabled": true,
|
||||||
"maxfiles": 10,
|
"maxfiles": 10,
|
||||||
"maxfilesize": 1000
|
"maxfilesize": 1000
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,7 +32,7 @@ html.no-js( lang="en" )
|
||||||
|
|
||||||
h2 server supports
|
h2 server supports
|
||||||
ul#tests
|
ul#tests
|
||||||
li.test( data-id="php" )
|
li.test.php( data-id="php" )
|
||||||
span.test-label php version
|
span.test-label php version
|
||||||
span.test-result ?
|
span.test-result ?
|
||||||
div.test-info PHP version >= 5.2.1
|
div.test-info PHP version >= 5.2.1
|
||||||
|
@ -44,6 +44,10 @@ html.no-js( lang="en" )
|
||||||
span.test-label image thumbs
|
span.test-label image thumbs
|
||||||
span.test-result ?
|
span.test-result ?
|
||||||
div.test-info PHP GD extension with JPEG support available
|
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" )
|
li.test( data-id="ffmpeg" )
|
||||||
span.test-label movie thumbs
|
span.test-label movie thumbs
|
||||||
span.test-result ?
|
span.test-result ?
|
||||||
|
|
|
@ -278,6 +278,7 @@ class App {
|
||||||
$gdinfo = gd_info();
|
$gdinfo = gd_info();
|
||||||
$gd = array_key_exists("JPG Support", $gdinfo) && $gdinfo["JPG Support"] || array_key_exists("JPEG Support", $gdinfo) && $gdinfo["JPEG Support"];
|
$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());
|
$cache = @is_writable($this->get_cache_abs_path());
|
||||||
$tar = @preg_match("/tar(.exe)?$/i", `which tar`) > 0;
|
$tar = @preg_match("/tar(.exe)?$/i", `which tar`) > 0;
|
||||||
$zip = @preg_match("/zip(.exe)?$/i", `which zip`) > 0;
|
$zip = @preg_match("/zip(.exe)?$/i", `which zip`) > 0;
|
||||||
|
@ -287,9 +288,11 @@ class App {
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
"idx" => $this->app_abs_href . "server/php/index.php",
|
"idx" => $this->app_abs_href . "server/php/index.php",
|
||||||
|
"phpversion" => PHP_VERSION,
|
||||||
"php" => $php,
|
"php" => $php,
|
||||||
"cache" => $cache,
|
"cache" => $cache,
|
||||||
"thumbs" => $gd,
|
"thumbs" => $gd,
|
||||||
|
"exif" => $exif,
|
||||||
"tar" => $tar,
|
"tar" => $tar,
|
||||||
"zip" => $zip,
|
"zip" => $zip,
|
||||||
"convert" => $convert,
|
"convert" => $convert,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue