PATH:
home
/
lab2454c
/
veritserv.net
/
wp-content
/
plugins
/
mailchimp-for-wp
/
includes
/
admin
/
migrations
<?php defined( 'ABSPATH' ) or exit; // get old log filename $upload_dir = wp_upload_dir( null, false ); $old_filename = trailingslashit( $upload_dir['basedir'] ) . 'mc4wp-debug.log'; $new_filename = trailingslashit( $upload_dir['basedir'] ) . 'mc4wp-debug-log.php'; // check if old default log file exists if ( ! file_exists( $old_filename ) ) { return; } // rename to new file. @rename( $old_filename, $new_filename ); // if success, insert php exit tag as first line if ( file_exists( $new_filename ) ) { $handle = fopen( $new_filename, 'r+' ); if ( is_resource( $handle ) ) { // make sure first line of log file is a PHP tag + exit statement (to prevent direct file access) $line = fgets( $handle ); $php_exit_string = '<?php exit; ?>'; if ( strpos( $line, $php_exit_string ) !== 0 ) { rewind( $handle ); fwrite( $handle, $php_exit_string . PHP_EOL . $line ); } fclose( $handle ); } }
[-] 3.0.0-form-3-messages.php
[edit]
[-] 4.1.3-reschedule-event.php
[edit]
[+]
..
[-] 3.0.0-integration-options.php
[edit]
[-] 4.0.0-hidden-fields-value-delimiter.php
[edit]
[-] 4.1.2-flush-list-cache.php
[edit]
[-] 3.0.0-general-options.php
[edit]
[-] 4.8.2-move-debug-log-to-subdirectory.php
[edit]
[-] 3.0.0-form-1-post-type.php
[edit]
[-] 3.1.6-woocommerce-position-prefix.php
[edit]
[-] 4.0.0-groupings-to-interests.php
[edit]
[-] 3.0.0-styles-builder.php
[edit]
[-] 3.0.3-usage-tracking-schedule.php
[edit]
[-] 3.0.0-widget-base-id.php
[edit]
[-] 3.0.0-form-2-options.php
[edit]
[-] 4.0.7-rename-debug-log-file.php
[edit]
[-] 4.6.0-remove-lists-from-options.php
[edit]