store_option($new_option, $value); } $wps_option_list = array('wps_useronline','wps_visits','wps_visitors','wps_pages','wps_track_all_pages','wps_disable_column','wps_check_online','wps_menu_bar','wps_coefficient','wps_chart_totals','wps_store_ua','wps_hide_notices','wps_delete_manual','wps_hash_ips', 'wps_all_online', 'wps_strip_uri_parameters', 'wps_override_language','wps_addsearchwords' ); // If the IP hash's are enabled, disable storing the complete user agent. if( array_key_exists( 'wps_hash_ips', $_POST ) ) { $_POST['wps_store_ua'] = ''; } // We need to check the permalink format for the strip_uri_parameters option, if the permalink is the default or contains uri parameters, we can't strip them. if( $disable_strip_uri_parameters ) { $_POST['wps_strip_uri_parameters'] = ''; } foreach( $wps_option_list as $option ) { if( array_key_exists( $option, $_POST ) ) { $value = $_POST[$option]; } else { $value = ''; } $new_option = str_replace( "wps_", "", $option ); $WP_Statistics->store_option($new_option, $value); } if( $WP_Statistics->get_option('delete_manual') == true ) { $filepath = realpath( plugin_dir_path(__FILE__) . "../../../" ) . "/"; if( file_exists( $filepath . WP_STATISTICS_MANUAL . 'html' ) ) { unlink( $filepath . WP_STATISTICS_MANUAL . 'html' ); } if( file_exists( $filepath . WP_STATISTICS_MANUAL . 'odt' ) ) { unlink( $filepath . WP_STATISTICS_MANUAL . 'odt' ); } } } ?>

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

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

get_option('check_online')); ?>

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

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

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

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

get_option('coefficient')); ?>

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

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

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

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

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

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

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

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

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

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