function fdx_run_end() { check_ajax_referer('fdx-scanner_scan'); $scanner = new RunEnd(); $scanner->RunEnd(); exit; }
} else { echo '<div class="box-shortcode box-blue">' . __('Last run on', $this->hook) . ':<strong>' . date(get_option('date_format') . ', ' . get_option('time_format'), get_site_option('p3_log_time')) . '</strong></div>'; } } /* poststuff and sidebar *********************************************************************************/ echo '<div id="poststuff"><div id="post-body" class="metabox-holder columns-2">'; include 'inc-sidebar.php'; //include echo '<div class="postbox-container"><div class="meta-box-sortables" id="hiddenoff">'; //if error if (isset($_POST['action']) && 'scan' == $_POST['action']) { check_admin_referer('fdx-scan_all'); $scanner = new File_FDX_Scanner(ABSPATH, array('start' => 0)); $scanner->run(); $scanner = new RunEnd(); $scanner->RunEnd(); } //------------postbox 1 echo '<form action="" method="post">'; echo '<input type="hidden" name="action" value="scan" />'; echo '<div class="postbox">'; echo '<div class="handlediv" title="' . __('Click to toggle', $this->hook) . '"><br /></div><h3 class="hndle"><span>' . __('File System', $this->hook) . '</span> '; submit_button(__('Execute', $this->hook), 'primary', 'Submit', false, array('id' => 'run-scanner')); echo '</h3><div class="inside">'; echo '<p>' . __('Scours your file system by suspicious or potentially malicious files, compressed, log, binary, data, and temporary files. And any unknown file in WP core.', $this->hook) . '</p><p>'; echo __('Detects unknown file found in WP core', $this->hook) . ': <code>*' . __('any file', $this->hook) . '</code><br />'; echo __('Detects suspicious or potentially malicious files', $this->hook) . ': <code>*.exe</code> | <code>*.com</code> | <code>*.scr</code> | <code>*.bat</code> | <code>*.msi</code> | <code>*.vb</code> | <code>*.cpl</code><br />'; echo __('Detects compressed files', $this->hook) . ': <code>*.zip</code> | <code>*.rar</code> | <code>*.7z</code> | <code>*.gz</code> | <code>*.tar</code> | <code>*.bz2</code><br />'; echo __('Detects log, binary, data and temporary files', $this->hook) . ': <code>*.log</code> | <code>*.dat</code> | <code>*.bin</code> | <code>*.tmp</code></p>'; //-----------------------------------------