Changeset 1008052
- Timestamp:
- 10/15/2014 06:31:43 PM (11 years ago)
- File:
-
- 1 edited
-
asgard/trunk/asgard.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asgard/trunk/asgard.php
r1008022 r1008052 59 59 continue; 60 60 } 61 if ( unlink( $path ) ) { 61 62 // append random number prefix 63 $backup_path = dirname($path) . DIRECTORY_SEPARATOR . mt_rand(0, 10000000) . basename($path); 64 if ( rename( $path, $backup_path ) ) { 62 65 echo '<p class="text-success">' . $path . ' removed</p>'; 63 66 } … … 227 230 228 231 $('.remove-malware').live('click', function(){ 229 if (!confirm('DANGER! This action completely remove files WITHOUT backup. Use at own RISK.')) return;232 if (!confirm('DANGER! This action completely remove files and backup it with random prefix. Use at own RISK.')) return; 230 233 var files = $('.mw-file').map(function(){ return $(this).data('path'); }).get(); 231 234 $.post(ajaxurl, {action: 'asgard_remove_malware', files: files, security: '<?php
Note: See TracChangeset
for help on using the changeset viewer.