Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-server
Commits
b1e5b718
Commit
b1e5b718
authored
Sep 07, 2018
by
Георгий Попов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Задача 12799] Добавил заполнение user_ip при обработке опечатки
parent
e084db72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server.php
server.php
+2
-2
No files found.
server.php
View file @
b1e5b718
...
...
@@ -125,8 +125,8 @@ try {
/* Если активных пользователей за сайт нет, то возвращаем сообщение об ошибке */
if
(
$email_users
)
{
try
{
$data
=
array
(
null
,
$email_users
[
0
][
'id_site'
],
$userdata
[
'url'
],
$userdata
[
'text'
],
$userdata
[
'context'
],
$userdata
[
'corrected'
],
$userdata
[
'comment'
],
0
);
$STH
=
$DBH
->
prepare
(
"INSERT INTO messages (id, site_id, link, text, context, corrected, comment, date, status
) VALUES (?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s')
, ?)"
);
$data
=
array
(
null
,
$email_users
[
0
][
'id_site'
],
$userdata
[
'url'
],
$userdata
[
'text'
],
$userdata
[
'context'
],
$userdata
[
'corrected'
],
$userdata
[
'comment'
],
0
,
getIp
()
);
$STH
=
$DBH
->
prepare
(
"INSERT INTO messages (id, site_id, link, text, context, corrected, comment, date, status
, user_ip) VALUES (?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s'), ?
, ?)"
);
$result
=
$STH
->
execute
(
$data
);
if
(
$result
!==
true
)
{
...
...
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