Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drew Clardy
ISPConfig 3
Commits
2d6dac4d
Commit
2d6dac4d
authored
14 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
Implemented: FS#1216 - Add a server_get function to remoting class
parent
44641656
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/lib/classes/remoting.inc.php
+23
-0
23 additions, 0 deletions
interface/lib/classes/remoting.inc.php
interface/web/admin/form/remote_user.tform.php
+1
-0
1 addition, 0 deletions
interface/web/admin/form/remote_user.tform.php
with
24 additions
and
0 deletions
interface/lib/classes/remoting.inc.php
+
23
−
0
View file @
2d6dac4d
...
...
@@ -122,6 +122,29 @@ class remoting {
return
(
$app
->
db
->
affectedRows
()
==
1
);
}
// Get server details
/**
Gets the server configuration
@param int session id
@param int server id
@param string section of the config field in the server table. Could be 'web', 'dns', 'mail', 'dns', 'cron', etc
@author Julio Montoya <gugli100@gmail.com>
*/
public
function
server_get
(
$session_id
,
$server_id
,
$section
=
''
)
{
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
)
&&
!
empty
(
$server_id
))
{
$app
->
uses
(
'remoting_lib , getconf'
);
$section_config
=
$app
->
getconf
->
get_server_config
(
$server_id
,
$section
);
return
$section_config
;
}
else
{
return
false
;
}
}
//* Get mail domain details
public
function
mail_domain_get
(
$session_id
,
$primary_id
)
{
...
...
This diff is collapsed.
Click to expand it.
interface/web/admin/form/remote_user.tform.php
+
1
−
0
View file @
2d6dac4d
...
...
@@ -50,6 +50,7 @@ $function_list['mail_blacklist_get,mail_blacklist_add,mail_blacklist_update,mail
$function_list
[
'mail_user_filter_get,mail_user_filter_add,mail_user_filter_update,mail_user_filter_delete'
]
=
'Mail user filter functions'
;
$function_list
[
'mail_filter_get,mail_filter_add,mail_filter_update,mail_filter_delete'
]
=
'Mail filter functions'
;
$function_list
[
'client_get,client_add,client_update,client_delete'
]
=
'Client functions'
;
$function_list
[
'server_get'
]
=
'Server functions'
;
$function_list
[
'sites_cron_get,sites_cron_add,sites_cron_update,sites_cron_delete'
]
=
'Sites cron functions'
;
$function_list
[
'sites_database_get,sites_database_add,sites_database_update,sites_database_delete'
]
=
'Sites database functions'
;
$function_list
[
'sites_ftp_user_get,sites_ftp_user_add,sites_ftp_user_update,sites_ftp_user_delete'
]
=
'Sites FTP-User functions'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment