Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Helmo
ISPConfig 3
Commits
a8d1dd21
Commit
a8d1dd21
authored
Feb 17, 2018
by
Helmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set a descriptive name for the return vanlue of mail_user_add();
parent
741a0891
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
interface/lib/classes/remote.d/mail.inc.php
interface/lib/classes/remote.d/mail.inc.php
+2
-2
remoting_client/examples/mail_user_add.php
remoting_client/examples/mail_user_add.php
+2
-2
No files found.
interface/lib/classes/remote.d/mail.inc.php
View file @
a8d1dd21
...
...
@@ -219,8 +219,8 @@ class remoting_mail extends remoting {
if
(
!
isset
(
$params
[
'gid'
]))
$params
[
'gid'
]
=
-
1
;
if
(
!
isset
(
$params
[
'maildir_format'
]))
$params
[
'maildir_format'
]
=
'maildir'
;
$
affected_rows
=
$this
->
insertQuery
(
'../mail/form/mail_user.tform.php'
,
$client_id
,
$params
);
return
$
affected_rows
;
$
mailuser_id
=
$this
->
insertQuery
(
'../mail/form/mail_user.tform.php'
,
$client_id
,
$params
);
return
$
mailuser_id
;
}
//* Update mail user
...
...
remoting_client/examples/mail_user_add.php
View file @
a8d1dd21
...
...
@@ -42,9 +42,9 @@ try {
'disablesmtp'
=>
'n'
);
$
affected_rows
=
$client
->
mail_user_add
(
$session_id
,
$client_id
,
$params
);
$
mailuser_id
=
$client
->
mail_user_add
(
$session_id
,
$client_id
,
$params
);
echo
"New user: "
.
$
affected_rows
.
"<br>"
;
echo
"New user: "
.
$
mailuser_id
.
"<br>"
;
if
(
$client
->
logout
(
$session_id
))
{
echo
'Logged out.<br />'
;
...
...
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