File manager - Edit - /usr/local/cpanel/base/frontend/jupiter/cpguard/scanner/cms.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"; include_once dirname(__DIR__) . "/classes/api.class.php"; $scan_target = $home_dir . '/'; $lang = new Language('cms'); $api = new Api($current_user); $data = []; if (!empty($_POST['target'])) { $scan_target = $_POST['target']; $data['target'] = $scan_target; } $result_counts = $api->request('cmsOverview', $data); ?> <div class="section-head"> <div class="col-md-5"> <h2><?php $lang->_('cms.title'); ?></h2> </div> <div class="col-md-7"> </div> </div> <style> .cms-stats { margin: 20px 0; } .card-header { background-color: #fff; position: relative; } .card.info-card { background-color: #E0EAFC; } .card-header-tabs { right: 20px; bottom: 9px; position: absolute; } .cms-stats .card { position: relative; height: 12em; padding-left: 2em; padding-top: 1em; overflow: hidden; } .cms-stats .card i { position: absolute; right: 0.2em; font-size: 7em; bottom: 0.3em; color: #3f80ea; } .cms-stats .card-title { font-size: 4em; color: #6c757d; font-weight: 600; text-transform: uppercase; } .cms-stats .card-subtitle { color: #ccc; text-transform: uppercase; word-break: break-word; padding-right: 84px; } .cms-threat-list a { cursor: pointer; } .cms-threat-section { margin: 0; } .cms-threat-section .card-header { padding: .75em 1.25em; margin-bottom: 0; border-bottom: 1px solid rgba(0, 0, 0, .125); margin-top: 1em; } .cms-threat-section .card-body { padding: .75em 1.25em; overflow: hidden; } .cms-threat-section .card-header h2 { margin-top: 10px; font-size: 2.3em; font-weight: 600; } .cms-threat-section .card-header-tabs { right: 20px; bottom: -1px; position: absolute; } .cms-threat-section .nav-tabs .nav-item.show .nav-link, .cms-threat-section .nav-tabs .nav-link.active { color: #495057; background-color: #fff; border-color: #dee2e6 #dee2e6 #fff; } .cms-threat-section .nav-tabs .nav-link:focus, .cms-threat-section .nav-tabs .nav-link:hover { border-color: #e9ecef #e9ecef #fff #dee2e6; } .text-danger { color: #dc3545 !important } </style> <div class="row cms-stats"> <div class="col-md-6 col-lg-3 pb-3"> <div class="card"> <div class="card-body"> <h4 class="card-title mb-2 text-muted" id="log_count"> <?php echo $total_row = $result_counts['cms_with_issues']; ?> </h4> <h5 class="card-subtitle"> <?php $lang->_('cms.card.issues'); ?></h5> <i class="la la-bug text-danger" aria-hidden="true"></i> </div> </div> </div> <div class="col-md-6 col-lg-3 pb-3"> <div class="card"> <div class="card-body"> <h4 class="card-title mb-2 text-muted" id="wordpress_count"> <?php echo $wordpress_row = $result_counts['wordpress']; ?> </h4> <h5 class="card-subtitle"><?php $lang->_('cms.card.wordpress'); ?></h5> <i class="la la-wordpress" aria-hidden="true"></i> </div> </div> </div> <div class="col-md-6 col-lg-3 pb-3"> <div class="card"> <div class="card-body"> <h4 class="card-title mb-2 text-muted" id="drupal_count"> <?php echo $drupal_row = $result_counts['drupal']; ?> </h4> <h5 class="card-subtitle"><?php $lang->_('cms.card.drupal'); ?></h5> <i class="la la-drupal" aria-hidden="true"></i> </div> </div> </div> <div class="col-md-6 col-lg-3 pb-3"> <div class="card"> <div class="card-body"> <h4 class="card-title mb-2 text-muted" id="joomla_count"> <?php echo $joomla_row = $result_counts['joomla']; ?> </h4> <h5 class="card-subtitle"><?php $lang->_('cms.card.joomla'); ?></h5> <i class="la la-joomla" aria-hidden="true"></i> </div> </div> </div> </div> <div class="row cms-threat-section"> <div class="col-12"> <div class="card cms-versions-list table-responsive mb-3"> <div class="card-header"> <div class="row"> <div class="col-md-9"> <h2><?php $lang->_('cms.table.title'); ?></h2> </div> <div class="col-md-3"> <input class="form-control table-search mr-2" type="text" id="table-search" placeholder="Search" /> </div> </div> </div> <div class="card-body"> <style> .badge-version { padding: 5px; font-size: .9em; color: #fff; background-color: #17a2b8; } .badge-insecure { background-color: #f44336; } .badge-outdated { background-color: #ff9800; } .badge-grey { background-color: #d8d3d3; color: #424242; } #versionTable .la-exclamation { color: red; } </style> <table class="table" id="cmsTable" class="hover table" cellspacing="0" width="100%"> <thead> <tr> <th><?php $lang->_('cms.table.domain'); ?></th> <th><?php $lang->_('cms.table.path'); ?></th> <th><?php $lang->_('cms.table.version'); ?></th> <th><?php $lang->_('cms.table.status'); ?></th> <th><?php $lang->_('cms.table.cve'); ?></th> <th><?php $lang->_('cms.table.plugins'); ?></th> <th><?php $lang->_('cms.table.themes'); ?></th> <th><?php $lang->_('cms.table.threats'); ?></th> </tr> </thead> </table> </div> </div> </div> <style> .cms-detail-modal { position: absolute; top: 20px; left: 50%; bottom: 0; transform: translate(-50%, 0px); max-width: 1200px; height: 100vh; font-size: 1.3em; line-height: 1.8; display: none; transition: .5s all ease-in-out; z-index: 3000; padding: 0; .content { background: #fff; -webkit-box-shadow: 5px 0px 12px 0px rgba(0, 0, 0, 0.33); -moz-box-shadow: 5px 0px 12px 0px rgba(0, 0, 0, 0.33); box-shadow: 5px 0px 12px 0px rgba(0, 0, 0, 0.33); padding-top: 10px; } h5 { margin-top: 1rem; } } </style> <div class="cms-detail-modal hide-on-unfocus"> <div class="content"></div> </div> <div class="table-select-options"> <div class="row d-flex align-items-center"> <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 float-left mr-2" data-action="dismiss" data-loading="<?php $lang->_('multiselect.button.dismiss_loading'); ?>"><?php $lang->_('multiselect.button.dismiss_text'); ?></button> <button class="btn btn-danger table-action float-left" style="display:none" data-action="retain" data-loading="<?php $lang->_('multiselect.button.retain_loading'); ?>"><?php $lang->_('multiselect.button.retain_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> </div> <script> var scan_target = "<?php echo $scan_target ?? ''; ?>"; var cmsTableError = "<?php $lang->_('cms.table.error'); ?>"; var script = "<?php assets_url(); ?>/js/cms.js"; cjQ.getScript(script); window.onresize = resizeCards; function resizeCards() { if (cjQ(window).width() > 990) { var minheight = Math.max(cjQ('.cms-threat-list').height(), cjQ('.cms-versions-list').height()); //cjQ('.cms-threat-list').height(minheight + 20); //cjQ('.cms-versions-list').height(minheight + 20); } else { cjQ('.cms-threat-list').height('auto'); cjQ('.cms-versions-list').height('auto'); } } </script>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings