public_html/wp-content/plugins/wp-statistics/widget.php
/**
		 * Processing widget options on save
		 *
		 * @param array $new_instance The new options
		 * @param array $old_instance The previous options
		 */
Processing widget options on save
@param array $new_instance The new options
@param array $old_instance The previous options
Processing widget options on save @param array $new_instance The new options @param array $old_instance The previous options
public function update( $new_instance, $old_instance ) {
			GLOBAL $WP_Statistics;
			if( array_key_exists( 'wp_statistics_control_widget_submit', $_POST ) ) {
				$keys = array( 
							'name_widget' => 'name_widget',
							'useronline_widget' => 'useronline_widget',
							'tvisit_widget' => 'tvisit_widget',
							'tvisitor_widget' => 'tvisitor_widget',
							'yvisit_widget' => 'yvisit_widget',
							'yvisitor_widget' => 'yvisitor_widget',
							'wvisit_widget' => 'wvisit_widget',
							'mvisit_widget' => 'mvisit_widget',
							'ysvisit_widget' => 'ysvisit_widget',
							'ttvisit_widget' => 'ttvisit_widget',
							'ttvisitor_widget' => 'ttvisitor_widget',
							'tpviews_widget' => 'tpviews_widget',
							'ser_widget' => 'ser_widget',
							'select_se' => 'select_se',
							'tp_widget' => 'tp_widget',
							'tpg_widget' => 'tpg_widget',
							'tc_widget' => 'tc_widget',
							'ts_widget' => 'ts_widget',
							'tu_widget' => 'tu_widget',
							'ap_widget' => 'ap_widget',
							'ac_widget' => 'ac_widget',
							'au_widget' => 'au_widget',
							'lpd_widget' => 'lpd_widget',
							'select_lps' => 'select_lps',
						);
				foreach( $keys as $key => $post ) {
					if( array_key_exists( $post, $_POST ) ) { 
						$widget_options[$key] = $_POST[$post]; 
					} else {
						$widget_options[$key] = ''; 
					}
				}
				$WP_Statistics->update_option( 'widget', $widget_options );
			}
			return array();
		}
public function update ( $ new_instance , $ old_instance ) { GLOBAL $ WP_Statistics ; if ( array_key_exists ( 'wp_statistics_control_widget_submit' , $ _POST ) ) { $ keys = array ( 'name_widget' => 'name_widget' , 'useronline_widget' => 'useronline_widget' , 'tvisit_widget' => 'tvisit_widget' , 'tvisitor_widget' => 'tvisitor_widget' , 'yvisit_widget' => 'yvisit_widget' , 'yvisitor_widget' => 'yvisitor_widget' , 'wvisit_widget' => 'wvisit_widget' , 'mvisit_widget' => 'mvisit_widget' , 'ysvisit_widget' => 'ysvisit_widget' , 'ttvisit_widget' => 'ttvisit_widget' , 'ttvisitor_widget' => 'ttvisitor_widget' , 'tpviews_widget' => 'tpviews_widget' , 'ser_widget' => 'ser_widget' , 'select_se' => 'select_se' , 'tp_widget' => 'tp_widget' , 'tpg_widget' => 'tpg_widget' , 'tc_widget' => 'tc_widget' , 'ts_widget' => 'ts_widget' , 'tu_widget' => 'tu_widget' , 'ap_widget' => 'ap_widget' , 'ac_widget' => 'ac_widget' , 'au_widget' => 'au_widget' , 'lpd_widget' => 'lpd_widget' , 'select_lps' => 'select_lps' , ) ; foreach ( $ keys as $ key => $ post ) { if ( array_key_exists ( $ post , $ _POST ) ) { $ widget_options [ $ key ] = $ _POST [ $ post ] ; } else { $ widget_options [ $ key ] = '' ; } } $ WP_Statistics -> update_option ( 'widget' , $ widget_options ) ; } return array ( ) ; }
Processing widget options on save
 @param array $new_instance The new options
 @param array $old_instance The previous options
Processing widget options on save @param array $new_instance The new options @param array $old_instance The previous options