diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php index 0ae01d7093d89171bca0feef9fb2502e9d8c960f..a9af3e382a1caa8750ac9420d1ad05d061666980 100644 --- a/interface/lib/classes/remoting.inc.php +++ b/interface/lib/classes/remoting.inc.php @@ -154,6 +154,25 @@ class remoting { return false; } } + + /** + Gets the ISPconfig version of the server + @param int session_id + @author Sascha Bay TheCry 2013 + */ + public function server_get_app_version($session_id) { + global $app; + if(!$this->checkPerm($session_id, 'server_get')) { + $this->server->fault('permission_denied', 'You do not have the permissions to access this function.'); + return false; + } + if (!empty($session_id)) { + $ispc_app_version = array('ispc_app_version' => ISPC_APP_VERSION); + return $ispc_app_version; + } else { + return false; + } + } public function server_get_serverid_by_ip($session_id, $ipaddress) {