From c2ecfed16c1d9f6c984c5e9956c0e27ebbd1725b Mon Sep 17 00:00:00 2001 From: bai Date: Mon, 8 Apr 2019 02:45:11 -0400 Subject: Consistencia en logs --- cgi/manage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cgi/manage.py b/cgi/manage.py index 496ae30..e1b2efd 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -904,7 +904,7 @@ def manage(self, path_split): if path_split[4] == 'delete': board = setBoard(path_split[5]) - post = FetchOne('SELECT `parentid` FROM `posts` WHERE `boardid` = ' + board['id'] + ' AND `id` = \'' + _mysql.escape_string(path_split[6]) + '\' LIMIT 1') + post = FetchOne('SELECT id, parentid, message, INET_NTOA(ip) AS ip FROM `posts` WHERE `boardid` = ' + board['id'] + ' AND `id` = \'' + _mysql.escape_string(path_split[6]) + '\' LIMIT 1') if not post: message = _('Unable to locate a post with that ID.') else: @@ -915,8 +915,8 @@ def manage(self, path_split): else: regenerateFrontPages() - message = _('Post successfully permadeleted.') - logAction(staff_account['username'], _('Permadeleted post %s') % ('/' + path_split[5] + '/' + path_split[6])) + message = "Eliminado post %s permanentemente." % ('/' + board['dir'] + '/' + post['id']) + logAction(staff_account['username'], message + ' Contenido: ' + post['message'] + ' IP: ' + post['ip']) # Delete more than 1 post if 'deleteall' in self.formdata.keys(): -- cgit v1.2.1-18-gbd029