File manager - Edit - /usr/local/cpanel/base/frontend/jupiter/cpguard/scanner/scanner_logs.php
Back
<?php include_once dirname(__DIR__) . '/includes/init.php'; include_once $base_dir . '/classes/license.class.php'; $license = new License(); if (!$license->validateLicense()) { include_once $base_dir . '/license.php'; die(); } include_once $base_dir . "/classes/language.class.php"; $lang = new Language('scanner_logs'); include_once dirname(__DIR__) . "/classes/api.class.php"; $api = new Api($current_user); if (isset($_GET['mscan_id']) && !empty($_GET['mscan_id'])) { $mscan_id = filter_var($_GET['mscan_id']); $data = ['scan_id' => $mscan_id]; $result = $api->request('scannerData', $data); if ($result) { $datas = $result['records']; $virus_count = count($datas); } else { echo '<h2><i class="la la-exclamation"></i> ' . $lang->_('mscan.notfound', true) . '</h2>'; } } else { $mscan_id = NULL; } ?> <div class="section-head"> <div class="col-sm-5"> <h2><?php $lang->_('scannerlog.title'); ?></h2> </div> <div class="col-sm-7"> <button class="rounded-button circular light-green ml-3 export-data"> <i class="fa fa-download "></i> </button> <div class="advanced-filter d-none d-lg-block"> <button class="rounded-button light-blue ml-3 adv-filter-button"> <i class="fa fa-sliders-h"></i> <?php $lang->_('filter'); ?> </button> <div class="adv-filter-modal hide-on-unfocus"> <form class="adv-filter-form"> <h3><?php $lang->_('filter.main_title'); ?></h3> <div class="form-group row"> <label class="col-sm-4 col-form-label"><?php $lang->_('filter.filepath'); ?></label> <div class="col-sm-8"> <input type="text" name="filter_filepath" id="filter_filepath" class="form-control" placeholder="<?php $lang->_('filter.filepath.placeholder'); ?>"> </div> </div> <div class="form-group row"> <label class="col-sm-4 col-form-label"><?php $lang->_('filter.category'); ?></label> <div class="col-sm-8"> <input type="text" name="filter_category" id="filter_category" class="form-control" placeholder="<?php $lang->_('filter.category.placeholder'); ?>"> </div> </div> <div class="form-group row"> <label class="col-sm-4 col-form-label"><?php $lang->_('filter.description'); ?></label> <div class="col-sm-8"> <input type="text" name="filter_description" id="filter_description" class="form-control" placeholder="<?php $lang->_('filter.description.placeholder'); ?>"> </div> </div> <!--div class="form-group row"> <label class="col-sm-4 col-form-label"><?php $lang->_('filter.status'); ?></label> <div class="col-sm-8"> <select class="form-control" name="filter_status" id="filter_status" > <option>All</option> <option>Quarantined</option> <option>Disabled</option> <option>No action</option> </select> </div> </div--> <div class="form-group row"> <label class="col-sm-4 col-form-label"><?php $lang->_('filter.timefrom'); ?></label> <div class="col-sm-8"> <input type="text" name="filter_time_from" id="filter_time_from" class="form-control" placeholder="<?php $lang->_('filter.timefrom.placeholder'); ?>"> </div> </div> <div class="form-group row"> <label class="col-sm-4 col-form-label"><?php $lang->_('filter.timeto'); ?></label> <div class="col-sm-8"> <input type="text" name="filter_time_to" id="filter_time_to" class="form-control" placeholder="<?php $lang->_('filter.timeto.placeholder'); ?>"> </div> </div> <hr> <div class="form-group row"> <div class="col-sm-4"> </div> <div class="col-sm-8"> <button type="button" class="btn btn-secondary adv-filter-close" data-dismiss="modal"><?php $lang->_('filter.button.close'); ?></button> <button type="submit" class="btn btn-primary"><?php $lang->_('filter.button.apply'); ?></button> </div> </div> </form> </div> </div> <span class="adv-filter-status"> <?php $lang->_('filter.statustext'); ?><a><?php $lang->_('filter.clear'); ?></a>. </span> <span class="table-search pull-right"> <i class="fas fa-search"></i> <input type="text" class="table-search-input" placeholder="<?php $lang->_('search.placeholder'); ?>" id="table-search"> </span> </div> </div> <div class="table-responsive" <?php echo empty($mscan_id) ? '' : 'id="logBox' . $mscan_id . '"'; ?>> <style> #log-table td:nth-child(2) span { word-break: break-all; } #log-table td:nth-child(2) { width: 20%; } #log-table td:nth-child(2) i.la-copy { display: none; margin-left: 8px; font-weight: 600; } #log-table td:nth-child(2):hover i.la-copy { display: inline; } </style> <input type="hidden" name="mscan_id" id="mscan_id" value="<?php echo $mscan_id; ?>" /> <input type="hidden" name="table_action" id="table_action" value="" /> <input type="hidden" name="table_action_ids" id="table_action_ids" value="" /> <table id="log-table" class=" hover table" cellspacing="0" width="100%"> <thead> <tr> <th></th> <th><?php $lang->_('slogs.table.filename'); ?></th> <th><?php $lang->_('slogs.table.category'); ?></th> <th><?php $lang->_('slogs.table.description'); ?></th> <th><?php $lang->_('slogs.table.status'); ?></th> <th><?php $lang->_('slogs.table.time'); ?></th> <th></th> </tr> </thead> </table> <p> </p> </div> <div class="file-editor hide-on-unfocus"> </div> <div class="virus-details hide-on-unfocus"> </div> <div class="table-select-options"> <div class="row"> <div class="col-md-3 multi-select-desc"> 0 rows selected </div> <div class="col-md-7 multi-select-actions "> <button class="btn btn-danger table-action pull-left" data-action="delete" data-loading="<?php $lang->_('multiselect.button.delete_loading'); ?>"><?php $lang->_('multiselect.button.delete_text'); ?></button> <button class="btn btn-warning table-action pull-left ml-3" data-action="quarantine" style="margin-left: 10px;" data-loading="<?php $lang->_('multiselect.button.quarantine_loading'); ?>"><?php $lang->_('multiselect.button.quarantine_text'); ?></button> <span class="note"><i class="la la-info-circle"></i> <?php $lang->_('multiselect.actions.info_text'); ?></span> </div> <div class="col-md-2 multi-select-close"> <a href="#" class="multi-select-deselectall"> <?php $lang->_('multiselect.button.deselect_text'); ?> <i class="fas fa-times-circle"></i> </a> </div> </div> </div> <script> var scannerTableError = "<?php $lang->_('scanner.table.error'); ?>"; var script = "<?php assets_url(); ?>/js/scan_logs.js"; cjQ.getScript(script); </script>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings