commit 58c246e58796662e134099a07ad1dff9b86c0fe8
parent 4d7ddf194f55e6ddaacb99c72c3c2a9846dad5cd
Author: Felicitus <felicitus@felicitus.org>
Date: Mon, 12 Mar 2012 08:46:55 +0100
Added missing features for #152 : Display doctrine2 and php version
Diffstat:
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/frontend/index.php b/src/frontend/index.php
@@ -9,6 +9,13 @@ use de\RaumZeitLabor\PartKeepr\Util\Configuration;
include("../src/backend/de/RaumZeitLabor/PartKeepr/PartKeepr.php");
PartKeepr::initialize("");
+
+$aParameters = array();
+$aParameters["doctrine_orm_version"] = \Doctrine\ORM\Version::VERSION;
+$aParameters["doctrine_dbal_version"] = \Doctrine\DBAL\Version::VERSION;
+$aParameters["doctrine_common_version"] = \Doctrine\Common\Version::VERSION;
+$aParameters["php_version"] = phpversion();
+
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -80,6 +87,7 @@ if (Configuration::getOption("partkeepr.frontend.autologin.enabled", false) ===
?>
window.autoLoginUsername = "<?php echo Configuration::getOption("partkeepr.frontend.autologin.username"); ?>";
window.autoLoginPassword = "<?php echo Configuration::getOption("partkeepr.frontend.autologin.password"); ?>";
+window.parameters = <?php echo json_encode($aParameters); ?>;
<?php
}
?>
diff --git a/src/frontend/js/Dialogs/ExceptionWindow.js b/src/frontend/js/Dialogs/ExceptionWindow.js
@@ -79,7 +79,7 @@ Ext.define('PartKeepr.ExceptionWindow', {
layout: {
type: 'vbox',
align : 'stretch',
- pack : 'start',
+ pack : 'start'
},
items: [ this.exceptionDetails, this.backtraceDetails, this.requestDetails, this.responseDetails ]
}]
@@ -195,6 +195,12 @@ Ext.define('PartKeepr.ExceptionWindow', {
this.responseDetails.setValue("No server response information available");
}
+ fullDetails += "\n\n"+i18n("Server Configuration")+"\n"+separator+"\n";
+
+ for (var j in window.parameters) {
+ fullDetails += j+": " + window.parameters[j]+"\n";
+ }
+
this.fullReport.setValue(fullDetails);
this.show();