saimod todo allow html in list, update more fields on generated todos duplicates
This commit is contained in:
parent
3917a19dfc
commit
bfc8c55c6f
@ -28,5 +28,21 @@ class SYS_SAIMOD_TODO_EXCEPTION_INSERT extends \SYSTEM\DB\QP {
|
|||||||
\SYSTEM\DBD\system_todo::FIELD_HTTP_USER_AGENT.','.\SYSTEM\DBD\system_todo::FIELD_USER.','.
|
\SYSTEM\DBD\system_todo::FIELD_HTTP_USER_AGENT.','.\SYSTEM\DBD\system_todo::FIELD_USER.','.
|
||||||
\SYSTEM\DBD\system_todo::FIELD_THROWN.','.\SYSTEM\DBD\system_todo::FIELD_MESSAGE_HASH.')'.
|
\SYSTEM\DBD\system_todo::FIELD_THROWN.','.\SYSTEM\DBD\system_todo::FIELD_MESSAGE_HASH.')'.
|
||||||
'VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, SHA1(?))'.
|
'VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, SHA1(?))'.
|
||||||
'ON DUPLICATE KEY UPDATE '.\SYSTEM\DBD\system_todo::FIELD_COUNT.'='.\SYSTEM\DBD\system_todo::FIELD_COUNT.'+1, '.\SYSTEM\DBD\system_todo::FIELD_TIME.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_TIME.'), '.\SYSTEM\DBD\system_todo::FIELD_STATE.'='.\SYSTEM\DBD\system_todo::FIELD_STATE_OPEN.';'
|
'ON DUPLICATE KEY '.
|
||||||
|
' UPDATE '. \SYSTEM\DBD\system_todo::FIELD_COUNT.'='.\SYSTEM\DBD\system_todo::FIELD_COUNT.'+1, '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_TIME.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_TIME.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_STATE.'='.\SYSTEM\DBD\system_todo::FIELD_STATE_OPEN.', '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_CODE.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_CODE.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_TRACE.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_TRACE.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_IP.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_IP.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_QUERYTIME.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_QUERYTIME.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_TIME.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_TIME.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_SERVER_NAME.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_SERVER_NAME.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_SERVER_PORT.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_SERVER_PORT.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_REQUEST_URI.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_REQUEST_URI.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_POST.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_POST.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_HTTP_REFERER.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_HTTP_REFERER.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_HTTP_USER_AGENT.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_HTTP_USER_AGENT.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_USER.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_USER.'), '.
|
||||||
|
\SYSTEM\DBD\system_todo::FIELD_THROWN.'=VALUES('.\SYSTEM\DBD\system_todo::FIELD_THROWN.');'
|
||||||
);}}
|
);}}
|
||||||
@ -58,7 +58,7 @@ class saimod_sys_todo extends \SYSTEM\SAI\SaiModule {
|
|||||||
$row['time_elapsed'] = \SYSTEM\time::time_ago_string(strtotime($row['time']));
|
$row['time_elapsed'] = \SYSTEM\time::time_ago_string(strtotime($row['time']));
|
||||||
$row['state_string'] = self::state($row['count']);
|
$row['state_string'] = self::state($row['count']);
|
||||||
$row['state_btn'] = self::statebtn($row['count']);
|
$row['state_btn'] = self::statebtn($row['count']);
|
||||||
$row['message'] = htmlspecialchars($row['message']);
|
$row['message'] = $row['message'];
|
||||||
$row['request_uri'] = htmlspecialchars($row['request_uri']);
|
$row['request_uri'] = htmlspecialchars($row['request_uri']);
|
||||||
$row['openclose'] = $state == \SYSTEM\DBD\system_todo::FIELD_STATE_OPEN ? 'close' : 'open';
|
$row['openclose'] = $state == \SYSTEM\DBD\system_todo::FIELD_STATE_OPEN ? 'close' : 'open';
|
||||||
if($row['type'] == \SYSTEM\DBD\system_todo::FIELD_TYPE_USER){
|
if($row['type'] == \SYSTEM\DBD\system_todo::FIELD_TYPE_USER){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user