D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
revisium-antivirus
/
views
/
scripts
/
index
/
Filename :
detail.phtml
back
Copy
<div class="scanned_folder"> <?php echo '<i class="icon"><img src="' . \pm_Context::getBaseUrl() . 'img/file-folder.png' . '"></i> ' . Modules_RevisiumAntivirus_Locale::lmsg('report.detail.header'). ' <strong>'. $this->scan_folder . '</strong>'; ?> </div> <?php if ($this->premium && $this->cnt_curable_files && $this->caution_message) { ?> <div class="status_message"><i class="icon"><img src="<?php echo \pm_Context::getBaseUrl() . 'img/warning.png'; ?>"></i> <?php echo $this->caution_message; ?> </div> <?php } ?> <?php if (!$this->cnt_curable_files && $this->is_admin && !$this->imunify360_installed) { ?> <div class="notice" style="clear: both"> <i class="icon"> <img src="<?php echo \pm_Context::getBaseUrl(); ?>/img/warning.png"> </i> <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.clean.imunify360'); ?> <span id="btn-send" class="btn action" style="margin-left: 15px"> <button id="buy" onclick="goToImunify360()"><?php echo Modules_RevisiumAntivirus_Locale::lmsg('button.learn_more'); ?></button> </span> </div> <?php } ?> <?php if (!$this->premium && $this->is_admin && $this->cnt_curable_files && !$this->imunify360_installed) { ?> <div class="status_message"><i class="icon"><img src="<?php echo \pm_Context::getBaseUrl() . 'img/warning.png'; ?>"></i> <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.cautionMessageMain'); ?> <ul style="margin-top: 10px"> <li> <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.cautionMessage1'); ?> <span id="btn-send" class="btn action" style="margin-left: 15px"> <button onclick="addStats(<?php echo $this->upgrade_stats_id; ?>);goToPremium()"><?php echo Modules_RevisiumAntivirus_Locale::lmsg('button.upgrade_to_premium'); ?></button> </span> </li> <li> <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.cautionMessage2'); ?> <span id="btn-send" class="btn action" style="margin-left: 15px"> <button onclick="addStats(<?php echo $this->im360_stats_id; ?>);goToImunify360()"><?php echo Modules_RevisiumAntivirus_Locale::lmsg('button.learn_more'); ?></button> </span> </li> <ul> </div> <?php } ?> <?php if (!$this->have_report) { ?> <div class="status_message"> <?php echo Modules_RevisiumAntivirus_Locale::lmsg('detail.noReport', ['domains_url' => \pm_Context::getBaseUrl() . 'index.php/index/domains']); ?> </div> <?php } ?> <?php if ($this->cnt_curable_files && ($this->premium || $this->is_admin)) { echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.labelCureAutomatically') . '<b>' . $this->cnt_curable_files . '</b>'; if ($this->isCleanupAllowed) { echo ', ' . Modules_RevisiumAntivirus_Locale::lmsg('report.detail.labelCureAutomatically2'); } else { echo '.'; } if (!$this->premium) { echo '<a target="_blank" href="' . $this->buy_url . '" style="margin-left: 7px;"><img src="' . \pm_Context::getBaseUrl() . 'img/big_dollar.svg' . '" style="margin-bottom: 5px;">' . '</a>'; } echo '<br>'; } ?> <div class="buttons_pane" style="width: 400px; float: left; margin-right: 20px"> <?php if ($this->can_cure && $this->cnt_curable_files && ($this->premium || $this->is_admin)) { ?> <span id="btn-send" class="btn action <?php echo ($this->premium ? '' : 'disabled');?>"> <button id="btn_cure" onclick="startTask(this, event)" <?php echo ($this->premium ? '' : 'disabled');?>><?php echo Modules_RevisiumAntivirus_Locale::lmsg('list.domains.domainButtonCure2'); ?></button> </span> <?php } ?> <?php if ($this->domains_url) { ?> <span id="btn-send" class="btn action"> <button id="btn_cure" onclick="window.location.href='<?php echo $this->domains_url; ?>'"><?php echo Modules_RevisiumAntivirus_Locale::lmsg('list.domains.backToDomains'); ?></button> </span> <?php } ?> </div> <?php if ($this->can_cure && $this->cnt_curable_files && ($this->premium || $this->is_admin)) { ?> <div id="img_progress" style="display: none; margin: 35px 0 0 -5px; text-align: right;"> <img src="<?php echo pm_Context::getBaseUrl() . 'img/progress_circle.gif' ?>" style="display: inline-block; margin-right: -15px; height: 30px; width: 60px;"> </div> <div style="clear: both"></div> <?php } ?> <?php if ($this->premium && $this->is_admin && $this->cnt_curable_files && !$this->imunify360_installed) { ?> <div class="status_message"> <i class="icon"><img src="<?php echo \pm_Context::getBaseUrl() . 'img/warning.png'; ?>"></i> <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.im'); ?> <span id="btn-send" class="btn action" style="margin-left: 15px"> <button onclick="addStats(<?php echo $this->premium_im360_stats_id; ?>);goToImunify360()"><?php echo Modules_RevisiumAntivirus_Locale::lmsg('button.learn_more'); ?></button> </span> </div> <?php } ?> <div id="cleanup_hint" style="display: <?php echo ($this->hide_cleanup_hint ? 'none' : 'block')?>"> <?php echo $this->cleanup_hint;?> </div> <?php if (!is_null($this->blacklisted_table)) { ?> <div class="vuln_block"> <div class="h3"><?php echo $this->blacklisted_header; ?></div> <?php echo $this->blacklisted_table; ?> <span id="btn-send" class="btn action" style="margin-bottom: 15px"> <button onclick="goToImunify360ForFixBlacklisted()"><?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.fix_blacklisted'); ?></button> </span> </div> <?php } ?> <?php if ($this->have_report) { ?> <table width="100%"> <tr valign=top> <td width="50%"> <div class="vuln_block"> <div class="h3"><?php echo $this->summary_header; ?></div> <div class="details_stat"> <?php echo ($this->report_time ? '<br>' . Modules_RevisiumAntivirus_Locale::lmsg('detail.reportTime') . ': ' . $this->report_time : ''); ?> <?php echo ($this->scan_exec_time ? '<br>' . Modules_RevisiumAntivirus_Locale::lmsg('detail.scanExecTime') . ': ' . $this->scan_exec_time : ''); ?> <?php echo ($this->cnt_scan_files ? '<br>' . Modules_RevisiumAntivirus_Locale::lmsg('detail.cntScanFiles') . ': ' . $this->cnt_scan_files : ''); ?> <?php echo ($this->cnt_curable_files ? '<br>' . Modules_RevisiumAntivirus_Locale::lmsg('detail.cntCurableFiles') . ': ' . $this->cnt_curable_files : ''); ?> </div> </div> </td> <td width=20> </td> <td> <?php if (!is_null($this->vulners_table)) { ?> <div class="vuln_block"> <div class="h3"><?php echo $this->vulners_header; ?></div> <?php echo $this->vulners_table; ?> </div> <?php } ?> </td> </tr> </table> <?php } ?> <?php echo $this->renderList($this->detail_list); ?> <div class="buttons_pane" style="width: 400px; margin-right: 20px"> <span class="btn action"> <button onclick="window.location.href='<?php echo $this->white_list_url; ?>'"><?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.whiteListButton'); ?></button> </span> </div> <h3><?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.titleLegend'); ?></h3> <p><?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.qhelp_1'); ?></p> <ul style="line-height: 20px;"> <li style="margin-bottom: 12px"><span class="type_srv">SRV</span> — <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.qhelp_2'); ?></li> <li style="margin-bottom: 12px"><span class="type_cli">CLI</span> — <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.qhelp_3'); ?></li> <li style="margin-bottom: 12px"><span class="marker">|</span> — <?php echo Modules_RevisiumAntivirus_Locale::lmsg('report.detail.qhelp_4'); ?></li> </ul> <script> function startTask(sendButton, event) { event.preventDefault(); if (sendButton.readAttribute('disabled') !== null) { return; } $('img_progress').show(); sendButton.writeAttribute('disabled', ''); $('btn-send').addClassName('disabled'); $('cleanup_hint').show(); new Ajax.Request("<?php echo $this->start_task_url; ?>", { method: 'post', parameters: {domain_id: <?php echo $this->domain_id; ?>, task: 'cure'}, onSuccess: function (transport) { var data = transport.responseText.evalJSON(); window.location.href = "<?php echo $this->main_page; ?>"; $('img_progress').hide(); }, onFailure: function (transport) { $('img_progress').hide(); } }); } $('img_progress').show(); Jsw.onReady(function () { list_component = Jsw.getComponent('<?php echo $this->detail_list->getId(); ?>'); if (list_component !== null) { $('img_progress').hide(); } }); </script> <?php echo $this->script_buy_url; ?> <?php echo $this->script_stat_url; ?>