Skip to content

Commit 4a258fa

Browse files
author
Marius Burkard
committed
- added missing remoting function (server_get_app_version)
1 parent 198271a commit 4a258fa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

interface/lib/classes/remote.d/server.inc.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,20 @@ public function server_get_functions($session_id, $server_id)
208208
}
209209
}
210210

211+
public function server_get_app_version($session_id)
212+
{
213+
global $app;
214+
if(!$this->checkPerm($session_id, 'server_get')) {
215+
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
216+
return false;
217+
}
218+
if (!empty($session_id)) {
219+
$ispc_app_version = array('ispc_app_version' => ISPC_APP_VERSION);
220+
return $ispc_app_version;
221+
} else {
222+
return false;
223+
}
224+
}
211225
}
212226

213227
?>

0 commit comments

Comments
 (0)