Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
37fccba8
Commit
37fccba8
authored
Dec 30, 2013
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a function to query the ispconfig version to the remote api.
parent
ab4939d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
interface/lib/classes/remoting.inc.php
interface/lib/classes/remoting.inc.php
+19
-0
No files found.
interface/lib/classes/remoting.inc.php
View file @
37fccba8
...
...
@@ -154,6 +154,25 @@ class remoting {
return
false
;
}
}
/**
Gets the ISPconfig version of the server
@param int session_id
@author Sascha Bay <info@space2place.de> 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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment