Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordfenc.../lib
File: viewFullActivityLog.php
<?php if (!defined('WORDFENCE_VERSION')) { exit; } ?>
[0] Fix | Delete
<?php if(! wfUtils::isAdmin()){ exit(); } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[1] Fix | Delete
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
[2] Fix | Delete
<head>
[3] Fix | Delete
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
[4] Fix | Delete
<link rel='stylesheet' id='wordfence-main-style-css' href='<?php echo wfUtils::getBaseURL() . wfUtils::versionedAsset('css/fullLog.css'); ?>?ver=<?php echo WORDFENCE_VERSION; ?>' type='text/css' media='all' />
[5] Fix | Delete
<style type="text/css">
[6] Fix | Delete
[7] Fix | Delete
</style>
[8] Fix | Delete
</head>
[9] Fix | Delete
<body>
[10] Fix | Delete
<h1><?php esc_html_e('Wordfence Full Activity Log', 'wordfence') ?></h1>
[11] Fix | Delete
<?php
[12] Fix | Delete
$db = new wfDB();
[13] Fix | Delete
global $wpdb;
[14] Fix | Delete
$debugOn = wfConfig::get('debugOn', 0);
[15] Fix | Delete
$table = wfDB::networkTable('wfStatus');
[16] Fix | Delete
$offset = 0;
[17] Fix | Delete
$timeOffset = 3600 * get_option('gmt_offset');
[18] Fix | Delete
$q = $db->querySelect("SELECT ctime, level, type, msg FROM {$table} ORDER BY ctime DESC LIMIT %d, 100", $offset);
[19] Fix | Delete
while (is_array($q) && count($q) > 0) {
[20] Fix | Delete
foreach($q as $r){
[21] Fix | Delete
if($r['level'] < 4 || $debugOn){
[22] Fix | Delete
echo '<div' . ($r['type'] == 'error' ? ' class="error"' : '') . '>[' . date('M d H:i:s', (int) $r['ctime'] + $timeOffset) . ':' . $r['ctime'] . ':' . $r['level'] . ':' . $r['type'] . ']&nbsp;' . esc_html($r['msg']) . "</div>\n";
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
$offset += count($q);
[26] Fix | Delete
$q = $db->querySelect("SELECT ctime, level, type, msg FROM {$table} ORDER BY ctime DESC LIMIT %d, 100", $offset);
[27] Fix | Delete
}
[28] Fix | Delete
?>
[29] Fix | Delete
</body>
[30] Fix | Delete
</html>
[31] Fix | Delete
<?php exit(0); ?>
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function