equal
deleted
inserted
replaced
454 list($ip_addr, $name) = $db->fetchrow_num($q); |
454 list($ip_addr, $name) = $db->fetchrow_num($q); |
455 $db->free_result(); |
455 $db->free_result(); |
456 $name = $db->escape($name); |
456 $name = $db->escape($name); |
457 $username = $db->escape($session->username); |
457 $username = $db->escape($session->username); |
458 // log this action |
458 // log this action |
459 $q = $db->sql_query('INSERT INTO ' . table_prefix . "logs(time_id, log_type, action, page_text, author, edit_summary) VALUES\n " |
459 $q = $db->sql_query('INSERT INTO ' . table_prefix . "logs(time_id, log_type, action, page_text, author, author_uid, edit_summary) VALUES\n " |
460 . "( " . time() . ", 'security', 'view_comment_ip', '$name', '$username', '{$_SERVER['REMOTE_ADDR']}' );"); |
460 . "( " . time() . ", 'security', 'view_comment_ip', '$name', '$username', $session->user_id, '{$_SERVER['REMOTE_ADDR']}' );"); |
461 if ( !$q ) |
461 if ( !$q ) |
462 $db->die_json(); |
462 $db->die_json(); |
463 |
463 |
464 // send packet |
464 // send packet |
465 $ret = array( |
465 $ret = array( |