mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-17 21:08:20 +01:00
[TASK] add more information in bug report
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
This commit is contained in:
parent
4dc0536825
commit
33bb6cfe31
@ -843,12 +843,16 @@ function jirafeau_admin_bug_report($cfg)
|
|||||||
$out .= "- mcrypt version: " . phpversion('mcrypt') . "<br/>";
|
$out .= "- mcrypt version: " . phpversion('mcrypt') . "<br/>";
|
||||||
$php_options = [
|
$php_options = [
|
||||||
'post_max_size',
|
'post_max_size',
|
||||||
'upload_max_filesize'
|
'upload_max_filesize',
|
||||||
|
'safe_mode',
|
||||||
|
'max_execution_time',
|
||||||
|
'max_input_time'
|
||||||
];
|
];
|
||||||
foreach ($php_options as &$o) {
|
foreach ($php_options as &$o) {
|
||||||
$v = ini_get($o);
|
$v = ini_get($o);
|
||||||
$out .= "- $o: " . jirafeau_strval($v) . " (" . gettype($v). ")<br/>";
|
$out .= "- $o: " . jirafeau_strval($v) . " (" . gettype($v). ")<br/>";
|
||||||
}
|
}
|
||||||
|
$out .= "- can set_time_limit: " . (set_time_limit(0) ? "yes" : "no") . "<br/>";
|
||||||
$out .= "<br/>";
|
$out .= "<br/>";
|
||||||
|
|
||||||
$out .= "# File permissions<br/>";
|
$out .= "# File permissions<br/>";
|
||||||
@ -869,10 +873,15 @@ function jirafeau_admin_bug_report($cfg)
|
|||||||
$out .= "# Browser details<br/>";
|
$out .= "# Browser details<br/>";
|
||||||
$out .= "<script type='text/javascript' lang='Javascript'>
|
$out .= "<script type='text/javascript' lang='Javascript'>
|
||||||
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
|
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
|
||||||
document.write('- HTML5 support: ' + (check_html5_file_api() ? 'yes' : 'no') + '<br/>');
|
document.write('- html5 support: ' + (check_html5_file_api() ? 'yes' : 'no') + '<br/>');
|
||||||
document.write('- User agent: ' + navigator.userAgent + '<br/>');
|
document.write('- user agent: ' + navigator.userAgent + '<br/>');
|
||||||
// @license-end
|
// @license-end
|
||||||
</script>";
|
</script>";
|
||||||
|
$out .= "<br/>";
|
||||||
|
|
||||||
|
$out .= "# Memory<br/>";
|
||||||
|
$out .= "- memory_get_peak_usage: " . jirafeau_human_size(memory_get_peak_usage()) . "<br/>";
|
||||||
|
|
||||||
$out .= "</code></fieldset>";
|
$out .= "</code></fieldset>";
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user