PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/plugins/backupbuddy/classes/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/plugins/backupbuddy/classes/view_malware.php

<?php
$this->admin_scripts();

$sucuri_link = 'http://ithemes.com/sucuri';
?>
<style type="text/css">
	.inside label {
		display: block;
		vertical-align: top;
		width: 140px;
		font-weight: bold;
	}
</style>

<div class="wrap">
	<?php
	echo '<table style="width: 80%; min-width: 750px;"><tr><td>';
	$this->title( __('Malware Scan', 'it-l10n-backupbuddy') );
	echo '</td><td align="right"><a href="' . $sucuri_link . '"><img src="' . $this->_pluginURL . '/images/sucuri/3.png" style="margin-top: 20px;" title="Malware scan powered by Sucuri" /></a></td></tr></table>';
	echo '<br />';
	
	$url = site_url();
	
	if ( $url == 'http://localhost' ) {
		echo __('ERROR: You are currently running your site locally. Your site must be internet accessible to scan.', 'it-l10n-backupbuddy');
	} else {
	
		if ( !empty( $_GET['refresh'] ) ) {
			delete_transient( 'pb_backupbuddy_malwarescan' );
		}
		
		//echo '<br />Scanning `' . $url . '`.<br /><br />';
		
		if ( false === ( $scan = get_transient( 'pb_backupbuddy_malwarescan' ) ) ) {
			?>
			<div id="pb_backupbuddy_malwarescanloading">
			<table><tr><td><img src="<?php echo $this->_pluginURL; ?>/images/loading_large.gif" /></td><td><h1>&nbsp;<?php _e('Scanning for Malware... Please wait...', 'it-l10n-backupbuddy');?></h1></td></tr></table>
			</div>
			<?php
			flush();
			
			$scan = wp_remote_get(
				'http://sitecheck.sucuri.net/scanner/?scan=' . urlencode( $url ) . '&serialized',
				array(
					'method' => 'GET',
					'timeout' => 45,
					'redirection' => 5,
					'httpversion' => '1.0',
					'blocking' => true,
					'headers' => array(),
					'body' => null,
					'cookies' => array()
				)
			);
			
			if ( is_wp_error( $scan ) ) {
				$this->alert( __('ERROR #24452. Unable to load Malware Scan results. Details:', 'it-l10n-backupbuddy'). ' ' . $scan->get_error_message(), true );
				$scan = 'N;';
			} else {
				$scan = $scan['body'];
				set_transient( 'pb_backupbuddy_malwarescan', $scan, 60*60*1 ); // 1 hour cache.
			}
			?>
			<script type="text/javascript">
				jQuery(document).ready(function() {
					jQuery('#pb_backupbuddy_malwarescanloading').slideToggle();
				});
			</script>
			
			
			<?php
		}

		if ( substr( $scan, 0, 2 ) == 'N;' ) {
			echo __('An error was encountered attempting to scan this site.','it-l10n-backupbuddy'), '<br />';
			echo __('An internet connection is required and this site must be accessible on the public internet.', 'it-l10n-backupbuddy');
			$scan = array();
		} else {
			$scan = maybe_unserialize( $scan );
			//echo '<pre>';
			//print_r( $scan );
			//echo '</pre>';
		}
		
		function lined_array( $array ) {
			if ( is_array( $array ) ) {
				foreach( $array as $array_key => $array_item ) {
					if ( is_array( $array_item ) ) {
						$array[$array_key] = lined_array( $array_item );
					}
				}
				//return implode( '<br />', $array );
				$return = '';
				foreach( $array as $array_item ) {
					$return .= $array_item . '<br />';
				}
				return $return;
			} else {
				if ( empty( $array ) ) {
					return '<i>'.__('none', 'it-l10n-backupbuddy').'</i><br />';
				} else {
					return $array . '<br />';
				}
			}
		}
		
		
		if ( !empty( $scan['MALWARE'] ) ) {
			echo '<table><tr><td><img src="' . $this->_pluginURL . '/images/warning.png" style="width: 92px; height: 92px;" /></td><td><h1>', __('Warning: Malware Detected!', 'it-l10n-backupbuddy'), '</h1>',__('See details below.', 'it-l10n-backupbuddy'), '<a href="' . $sucuri_link . '">', __('Sign up with Sucuri for removal assistance.', 'it-l10n-backupbuddy'), '</a></td></tr></table>';
		}
		?>
		
		
		<div class="postbox-container" style="width: 80%; min-width: 750px;">
				<div class="metabox-holder">
					<div class="meta-box-sortables">
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="<?php _e('Click to toggle', 'it-l10n-backupbuddy');?>"><br /></div>
							<h3 class="hndle"><span><?php _e('Malware Detected', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<label><?php _e('Malware', 'it-l10n-backupbuddy');?></label>
								<?php
								if ( !empty( $scan['MALWARE']['WARN'] ) ) {
									echo lined_array( $scan['MALWARE']['WARN'] );
								} else {
									echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />';
								} ?><br />
							</div>
						</div>
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="<?php _e('Click to toggle', 'it-l10n-backupbuddy');?>"><br /></div>
							<h3 class="hndle"><span><?php _e('Web server details', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<label><?php _e('Site', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['SCAN']['SITE'] ) ) { echo lined_array( $scan['SCAN']['SITE'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'),'</i><br />'; } ?><br />
								<label><?php _e('Hostname', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['SCAN']['DOMAIN'] ) ) { echo lined_array( $scan['SCAN']['DOMAIN'] ); } else { echo '<i>',__('none', 'it-l10n-backupbuddy'),'</i><br />'; } ?><br />
								<label><?php _e('IP Address', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['SCAN']['IP'] ) ) { echo lined_array( $scan['SCAN']['IP'] ); } else { echo '<i>',__('none', 'it-l10n-backupbuddy'),'</i><br />'; } ?><br />
								<label><?php _e('System details', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['SYSTEM']['NOTICE'] ) ) { echo lined_array( $scan['SYSTEM']['NOTICE'] ); } else { echo '<i>', __('none','it-l10n-backupbuddy'), '</i><br />'; } ?><br />
								<label><?php _e('Information', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['SYSTEM']['INFO'] ) ) { echo lined_array( $scan['SYSTEM']['INFO'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />'; } ?><br />
							</div>
						</div>
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="Click to toggle"><br /></div>
							<h3 class="hndle"><span><?php _e('Web application', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<label><?php _e('Details', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['WEBAPP']['INFO'] ) ) { echo lined_array( $scan['WEBAPP']['INFO'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'),'</i><br />'; } ?><br />
								<label><?php _e('Versions', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['WEBAPP']['VERSION'] ) ) { echo lined_array( $scan['WEBAPP']['VERSION'] ); } else { echo '<i>',__('none', 'it-l10n-backupbuddy'),'</i><br />'; } ?><br />
								<label><?php _e('Notices', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['WEBAPP']['NOTICE'] ) ) { echo lined_array( $scan['WEBAPP']['NOTICE'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />'; } ?><br />
								<label><?php _e('Errors', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['WEBAPP']['ERROR'] ) ) { echo lined_array( $scan['WEBAPP']['ERROR'] ); } else { echo '<i>',__('none', 'it-l10n-backupbuddy'),'</i><br />'; } ?><br />
								<label><?php _e('Warnings', 'it-l10n-backupbuddy');?></label> <?php if ( !empty( $scan['WEBAPP']['WARN'] ) ) { echo lined_array( $scan['WEBAPP']['WARN'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />'; } ?><br />
							</div>
						</div>
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="<?php _e('Click to toggle', 'it-l10n-backupbuddy');?>"><br /></div>
							<h3 class="hndle"><span><?php _e('Links', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<?php if ( !empty( $scan['LINKS']['URL'] ) ) { echo lined_array( $scan['LINKS']['URL'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />'; } ?>
							</div>
						</div>
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="<?php _e('Click to toggle', 'it-l10n-backupbuddy');?>"><br /></div>
							<h3 class="hndle"><span><?php _e('Local Javascript', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<?php if ( !empty( $scan['LINKS']['JSLOCAL'] ) ) { echo lined_array( $scan['LINKS']['JSLOCAL'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'),'</i><br />'; } ?>
							</div>
						</div>
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="<?php _e('Click to toggle', 'it-l10n-backupbuddy');?>"><br /></div>
							<h3 class="hndle"><span><?php _e('External Javascript', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<?php if ( !empty( $scan['LINKS']['JSEXTERNAL'] ) ) { echo lined_array( $scan['LINKS']['JSEXTERNAL'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />'; } ?>
							</div>
						</div>
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="<?php _e('Click to toggle', 'it-l10n-backupbuddy');?>"><br /></div>
							<h3 class="hndle"><span><?php _e('Iframes Included', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<?php if ( !empty( $scan['LINKS']['IFRAME'] ) ) { echo lined_array( $scan['LINKS']['IFRAME'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />'; } ?>
							</div>
						</div>
						
						<div id="breadcrumbslike" class="postbox">
							<div class="handlediv" title="<?php _e('Click to toggle', 'it-l10n-backupbuddy');?>"><br /></div>
							<h3 class="hndle"><span><?php _e('Blacklisting Status', 'it-l10n-backupbuddy');?></span></h3>
							<div class="inside">
								<?php if ( !empty( $scan['BLACKLIST']['INFO'] ) ) { echo lined_array( $scan['BLACKLIST']['INFO'] ); } else { echo '<i>', __('none', 'it-l10n-backupbuddy'), '</i><br />'; } ?>
							</div>
						</div>
						
					</div>
				</div>
			</div>
		</div>
		
		<br /><br /><br /><br />
		
		<div style="color: #AFAFAF; width: 793px;">
			<?php _e('Malware scan results are cached for one hour.', 'it-l10n-backupbuddy');?> <a href="<?php echo $this->_selfLink; ?>-malware&refresh=true" class="button-secondary"><?php _e('Perform New Scan Now', 'it-l10n-backupbuddy');?></a>
		</div>
		
		<br /><br />
		<?php
	}
	?>
</div>