Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
74bb8508
Commit
74bb8508
authored
Sep 15, 2015
by
Jan-Claas Dirks
Browse files
fixed typos in soap interface remoting.inc.php
parent
35a93a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
74bb8508
...
...
@@ -90,7 +90,7 @@ class remoting {
}
//* Delete old remoting sessions
$sql
=
"DELETE FROM remote_session WHERE tstamp < UNIX_TIMSTAMP()"
;
$sql
=
"DELETE FROM remote_session WHERE tstamp < UNIX_TIM
E
STAMP()"
;
$app
->
db
->
query
(
$sql
);
if
(
$client_login
==
true
)
{
...
...
@@ -231,7 +231,7 @@ class remoting {
/* copied from the client_edit php */
exec
(
'ssh-keygen -t rsa -C '
.
$username
.
'-rsa-key-'
.
time
()
.
' -f /tmp/id_rsa -N ""'
);
$app
->
db
->
query
(
"UPDATE client SET created_at = UNIX_TIMSTAMP(), id_rsa = ?, ssh_rsa = ? WHERE client_id = ?"
,
@
file_get_contents
(
'/tmp/id_rsa'
),
@
file_get_contents
(
'/tmp/id_rsa.pub'
),
$this
->
id
);
$app
->
db
->
query
(
"UPDATE client SET created_at = UNIX_TIM
E
STAMP(), id_rsa = ?, ssh_rsa = ? WHERE client_id = ?"
,
@
file_get_contents
(
'/tmp/id_rsa'
),
@
file_get_contents
(
'/tmp/id_rsa.pub'
),
$this
->
id
);
exec
(
'rm -f /tmp/id_rsa /tmp/id_rsa.pub'
);
...
...
@@ -475,7 +475,7 @@ class remoting {
return
false
;
}
$sql
=
"SELECT * FROM remote_session WHERE remote_session = ? AND tstamp >= UNIX_TIMSTAMP()"
;
$sql
=
"SELECT * FROM remote_session WHERE remote_session = ? AND tstamp >= UNIX_TIM
E
STAMP()"
;
$session
=
$app
->
db
->
queryOneRecord
(
$sql
,
$session_id
);
if
(
$session
[
'remote_userid'
]
>
0
)
{
return
$session
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment