summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess/api.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/remoteaccess/api.inc.php')
-rw-r--r--modules-available/remoteaccess/api.inc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules-available/remoteaccess/api.inc.php b/modules-available/remoteaccess/api.inc.php
index 4ce733b3..7983bd44 100644
--- a/modules-available/remoteaccess/api.inc.php
+++ b/modules-available/remoteaccess/api.inc.php
@@ -29,6 +29,16 @@ if ($iplong < $range['start'] || $iplong > $range['end']) {
die('Access denied');
}
+$headers = getallheaders();
+$version = false;
+if (!empty($headers['Bwlp-Plugin-Build-Revision'])) {
+ $version = $headers['Bwlp-Plugin-Build-Revision'];
+ if (!empty($headers['Bwlp-Plugin-Build-Timestamp'])) {
+ $version .= ' (' . $headers['Bwlp-Plugin-Build-Timestamp'] . ')';
+ }
+}
+Property::set(RemoteAccess::PROP_PLUGIN_VERSION, $version, 2880);
+
Header('Content-Type: application/json');
$remoteLocations = RemoteAccess::getEnabledLocations();