get_option('time_report') != $_POST['wps_time_report'] ) { // Remove the old schedule if it exists. if( wp_next_scheduled('report_hook') ) { wp_unschedule_event(wp_next_scheduled('report_hook'), 'report_hook'); } // Setup the new schedule, we could just let this fall through and let the code in schedule.php deal with it // but that would require an extra page load to start the schedule so do it here instead. wp_schedule_event(time(), $_POST['wps_time_report'], 'report_hook'); } } $wps_option_list = array("wps_stats_report","wps_time_report","wps_send_report","wps_content_report","wps_email_list","wps_browscap_report","wps_geoip_report","wps_prune_report","wps_upgrade_report"); foreach( $wps_option_list as $option ) { if( array_key_exists( $option, $_POST ) ) { $value = $_POST[$option]; } else { $value = ''; } // WordPress escapes form data no matter what the setting of magic quotes is in PHP (http://www.theblog.ca/wordpress-addslashes-magic-quotes). $value = stripslashes($value); $new_option = str_replace( "wps_", "", $option ); $WP_Statistics->store_option($new_option, $value); } } ?> get_option('stats_report') ) { $hidden=""; } else { $hidden=" style='display: none;'"; }?> id='wps_stats_report_option'> id='wps_stats_report_option'> id='wps_stats_report_option'>

get_option('browscap_report')==true? "checked='checked'":'';?>>

get_option('geoip_report')==true? "checked='checked'":'';?>>

get_option('prune_report')==true? "checked='checked'":'';?>>

get_option('upgrade_report')==true? "checked='checked'":'';?>>

get_option('stats_report')==true? "checked='checked'":'';?> onClick='ToggleStatOptions();'>

' . __('WordPress SMS', 'wp_statistics') . ''); ?>

get_option('content_report'), 'content-report', array('media_buttons' => false, 'textarea_name' => 'wps_content_report', 'textarea_rows' => 5) ); ?>



    : [wpstatistics stat=usersonline]
    : [wpstatistics stat=visitors time=today]
    : [wpstatistics stat=visits time=today]
    : [wpstatistics stat=visitors time=yesterday]
    : [wpstatistics stat=visits time=yesterday]
    : [wpstatistics stat=visitors time=total]
    : [wpstatistics stat=visits time=total]