mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 3100 display IP address of comment author on admin page and also save the entire ip address in the database, not only the first three ip components
git-svn-id: http://piwigo.org/svn/trunk@29060 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -167,7 +167,8 @@ SELECT
|
||||
c.content,
|
||||
i.path,
|
||||
i.representative_ext,
|
||||
validated
|
||||
validated,
|
||||
c.anonymous_id
|
||||
FROM '.COMMENTS_TABLE.' AS c
|
||||
INNER JOIN '.IMAGES_TABLE.' AS i
|
||||
ON i.id = c.image_id
|
||||
@@ -204,6 +205,7 @@ while ($row = pwg_db_fetch_assoc($result))
|
||||
'DATE' => format_date($row['date'], array('day_name','day','month','year','time')),
|
||||
'CONTENT' => trigger_change('render_comment_content',$row['content']),
|
||||
'IS_PENDING' => ('false' == $row['validated']),
|
||||
'IP' => $row['anonymous_id'],
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user