Changeset 718474
- Timestamp:
- 05/26/2013 02:41:18 PM (13 years ago)
- Location:
- 6scan-protection/trunk
- Files:
-
- 4 edited
-
6scan.php (modified) (1 diff)
-
admin/includes/common.php (modified) (1 diff)
-
modules/backup/backup_func.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
6scan-protection/trunk/6scan.php
r709128 r718474 5 5 Description: 6Scan Security provides enterprise-grade security with a firewall, automatic backup, analytics and much more. 6 6 Author: 6Scan 7 Version: 3.0. 37 Version: 3.0.4 8 8 Author URI: http://www.6scan.com 9 9 */ -
6scan-protection/trunk/admin/includes/common.php
r709128 r718474 4 4 die( 'No direct access allowed' ); 5 5 6 define ( 'SIXSCAN_VERSION' , '3.0. 3.0' );6 define ( 'SIXSCAN_VERSION' , '3.0.4.0' ); 7 7 define ( 'SIXSCAN_HTACCESS_VERSION' , '1' ); 8 8 -
6scan-protection/trunk/modules/backup/backup_func.php
r575931 r718474 141 141 $tmp_random_seed = date("Y-m-d-H-i-s") . "_" . substr( md5 ( rand( 0, 32000 )) , 0 , 10 ); 142 142 $temp_file_archived = get_temp_dir() . "files_backup_$tmp_random_seed.tar.gz"; 143 $tmp_backup_dir = "/tmp/6scan_backup_$tmp_random_seed /";143 $tmp_backup_dir = "/tmp/6scan_backup_$tmp_random_seed"; 144 144 145 145 /* If a previous file was not deleted from some reason, delete it now */ 146 sixscan_backup_func_delete_previous( SIXSCAN_BACKUP_LAST_FS_NAME , $temp_file_archived);146 sixscan_backup_func_delete_previous( SIXSCAN_BACKUP_LAST_FS_NAME , array( $temp_file_archived, $tmp_backup_dir ) ); 147 147 148 148 /* Prepare backup directory */ 149 $backup_cmd = "mkdir $tmp_backup_dir; cp -r " . ABSPATH . " $tmp_backup_dir ";149 $backup_cmd = "mkdir $tmp_backup_dir; cp -r " . ABSPATH . " $tmp_backup_dir/"; 150 150 ob_start(); passthru( $backup_cmd ); ob_end_clean(); 151 151 152 152 /* Linux backup is using tar.gz */ 153 $backup_cmd = "tar -czf $temp_file_archived $tmp_backup_dir 2>&1";153 $backup_cmd = "tar -czf $temp_file_archived $tmp_backup_dir/ 2>&1"; 154 154 $ret_val = 0; 155 155 … … 157 157 ob_start(); passthru( $backup_cmd , $ret_val ); $tar_output = ob_get_contents(); ob_clean(); 158 158 159 $cleanup_cmd = "rm -rf $tmp_backup_dir 2>&1"; 160 passthru( $cleanup_cmd ); 159 sixscan_backup_func_clear_file( $tmp_backup_dir ); 161 160 162 161 /* Check for error that might've occured while running tar. Retval 0 is ok */ … … 224 223 225 224 $last_db_backup_name = get_option( $backup_type ); 226 if ( file_exists( $last_db_backup_name ) ) 227 @unlink( $last_db_backup_name ); 225 226 if ( is_array( $last_db_backup_name) ){ 227 foreach ( $last_db_backup_name as $one_file ){ 228 sixscan_backup_func_clear_file( $one_file ); 229 } 230 } 231 else { 232 sixscan_backup_func_clear_file( $last_db_backup_name ); 233 } 234 228 235 update_option( $backup_type , $new_backup_filename ); 229 236 } 230 237 238 function sixscan_backup_func_clear_file( $fname ){ 239 if ( strlen( $fname ) > 0 ){ 240 $cleanup_cmd = "rm -rf $fname 2>&1"; 241 passthru( $cleanup_cmd ); 242 } 243 } 231 244 232 245 /* Backup the db OR just a table */ -
6scan-protection/trunk/readme.txt
r709128 r718474 1 1 === 6Scan Security === 2 2 Contributors: 6Scan 3 Version: 3.0. 33 Version: 3.0.4 4 4 Tags: security,secure,wordpress security,firewall,antivirus,security plugin,securty,protection,anti-hack,hack,scan,exploit,anti-virus 5 5 Requires at least: 3.0.0 … … 309 309 * Few minor bugs fixed 310 310 311 = 3.0.4 = 312 * Improved backup processes 313 311 314 == Upgrade Notice == 312 315
Note: See TracChangeset
for help on using the changeset viewer.