'.__( 'Database update completed' ).'

'; } if( isset( $_GET['run'] ) && $_GET['run'] == 'db_info_update' ) { cau_savePluginInformation(); echo '

'.__( 'Database information update completed' ).'

'; } if( isset( $_GET['ignore_report'] ) ) { $report_to_ignore = sanitize_text_field( $_GET['ignore_report'] ); $allowedValues = array( 'seo', 'cron' ); if( !in_array( $report_to_ignore, $allowedValues ) ) { wp_die( 'Trying to cheat eh?' ); } else { global $wpdb; $table_name = $wpdb->prefix . "auto_updates"; $wpdb->query( $wpdb->prepare( "UPDATE {$table_name} SET onoroff = %s WHERE name = 'ignore_$report_to_ignore'", 'yes' ) ); $__ignored = __( 'This report will now be ignored', 'companion-auto-update' ); echo "

$__ignored

"; } } // Variables $dateFormat = get_option( 'date_format' ); $dateFormat .= ' '.get_option( 'time_format' ); global $wpdb; $table_name = $wpdb->prefix . "auto_updates"; $schedules = wp_get_schedules(); $interval_names = cau_wp_get_schedules(); ?>
__( 'Plugins', 'companion-auto-update' ), 'themes' => __( 'Themes', 'companion-auto-update' ), 'minor' => __( 'Core (Minor)', 'companion-auto-update' ), 'major' => __( 'Core (Major)', 'companion-auto-update' ) ); $eventNames = array( 'plugins' => 'wp_update_plugins', 'themes' => 'wp_update_themes', 'minor' => 'wp_version_check', 'major' => 'wp_version_check' ); foreach ( $auto_updaters as $key => $value ) { if( cau_get_db_value( $key ) == 'on' ) { $__status = 'enabled'; $__icon = 'yes-alt'; $__text = __( 'Enabled', 'companion-auto-update' ); $__interval = $interval_names[wp_get_schedule( $eventNames[$key] )]; $__next = date_i18n( $dateFormat, wp_next_scheduled( $eventNames[$key] ) ); } else { $__status = 'disabled'; $__icon = 'marker'; $__text = __( 'Disabled', 'companion-auto-update' ); $__interval = '‐'; $__next = '‐'; } $__nxt = __( 'Next', 'companion-auto-update' ); echo ""; } ?>
$value $__text $__interval $__nxt: $__next
__( 'Update available', 'companion-auto-update' ), 'sendupdate' => __( 'Successful update', 'companion-auto-update' ), 'wpemails' => __( 'Core notifications', 'companion-auto-update' ) ); $other_eventNames = array( 'send' => 'cau_set_schedule_mail', 'sendupdate' => 'cau_set_schedule_mail', 'wpemails' => 'cau_set_schedule_mail', ); foreach ( $other_events as $key => $value ) { if( cau_get_db_value( $key ) == 'on' ) { $__status = 'enabled'; $__icon = 'yes-alt'; $__text = __( 'Enabled', 'companion-auto-update' ); $__interval = $interval_names[wp_get_schedule( $other_eventNames[$key] )]; $__next = date_i18n( $dateFormat, wp_next_scheduled( $other_eventNames[$key] ) ); } else { $__status = 'warning'; $__icon = 'marker'; $__text = __( 'Disabled', 'companion-auto-update' ); $__interval = '‐'; $__next = '‐'; } $__nxt = __( 'Next', 'companion-auto-update' ); echo ""; } ?>
$value $__text $__interval $__nxt: $__next
$__text"; } else { $__text = __( 'Disabled', 'companion-auto-update' ); echo ""; } ?> > >
$__text
DISABLE_WP_CRON true
wp_version_check
VCS '>
>
WordPress
PHP
Database (Latest: )
(GMT ) -
$value ) { if( is_plugin_active( $key ) ) { echo ''; } } ?>
'.$key.' '.$value.' '.__( 'How to fix this', 'companion-auto-update' ).'
$string ) { if( strpos( file_get_contents( $conFile ), $string ) !== false) { $contents = file_get_contents( $conFile ); $contents = str_replace( $string, $revLine, $contents ); file_put_contents( $conFile, $contents ); $melding = __( "We've fixed the error for you", 'companion-auto-update' ).' :)'; $meldingS = 'updated'; } } echo "

$melding

"; } ?>