"400", "use_shortDesc_on_single" => "no", "use_shortDesc_on_multiple" => "yes", "smaller_buy_button_iOS" => "yes", "qty_of_apps" => "10", "ss_size" => "120", "currency_format" => "US", "store_country" => "US", "full_star_color" => "blue", "empty_star_color" => "clear", "color_buttonStart" => "79bbff", "color_buttonStop" => "378de5", "color_buttonText" => "fcfc00", "color_buttonTextShadow" => "39618a", "color_buttonShadow" => "bbdaf7", "color_buttonBorder" => "84bbf3", "color_buttonHoverStart" => "378de5", "color_buttonHoverStop" => "79bbff", "color_buttonHoverText" => "C9C9FF", "displayapptitle" => "no", "displayversion" => "yes", "displayadvisoryrating" => "yes", "displaycategories" => "yes", "displayfilesize" => "no", "displaystarrating" => "yes", "displaydevelopername" => "yes", "displaysellername" => "yes", "displaygamecenterenabled" => "yes", "displayuniversal" => "yes", "displaysupporteddevices" => "no", "displayreleasedate" => "no", "appstoreicon_to_use" => "512", "appicon_size_adjust" => "25", "appicon_iOS_size_adjust" => "12", "displayitunestitle" => "yes", "displayitunestrackcount" => "yes", "displayitunesartistname" => "yes", "displayitunesfromalbum" => "yes", "displayitunesgenre" => "yes", "displayitunesreleasedate" => "yes", "displayitunesdescription" => "yes", "displayitunesexplicitwarning" => "yes", "itunesicon_to_use" => "100", "itunesicon_size_adjust" => "100", "itunesicon_iOS_size_adjust" => "50", "cache_time_select_box" => (24*60*60), "cache_images_locally" => "1", "affiliatepartnerid" => "999", "affiliatecode" => "http://click.linksynergy.com/fs-bin/stat?id=uiuOb3Yu7Hg&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=", "affiliatetoken" => "uiuOb3Yu7Hg", "tdwebsiteID" => "", "tdprogramID" => "23708", "dgmwrapper" => "", "ResetCheckOne" => "NoWay", "ResetCheckTwo" => "NoWay", "ResetCheckThree" => "NoWay", "ResetCacheOne" => "NoWay", "ResetCacheTwo" => "NoWay", "versionInstalled" => "4.5.1" ); $tmp = get_option('appStore_options'); if(!$tmp || !is_array($tmp) || $ResetOptions) { delete_option('appStore_options'); update_option('appStore_options', $appStore_defaults); } } // Init plugin options to white list our options function appStore_init(){ $settings = get_option('appStore_options'); if(!$settings) appStore_add_defaults(); register_setting( 'appStore_plugin_options', 'appStore_options', 'appStore_validate_options' ); wp_enqueue_script('jquery-ui-core');//enables UI wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_style( 'farbtastic' ); wp_enqueue_script( 'farbtastic' ); } // Add menu page function appStore_add_options_page() { add_options_page('AppStore Assistant', 'AppStore Assistant', 'manage_options', __FILE__, 'appStore_render_form'); } // Render the Plugin options form function appStore_render_form() { $options = get_option('appStore_options'); if($options['ResetCheckOne']=="DoIt" && $options['ResetCheckTwo']=="DoIt" && $options['ResetCheckThree']=="DoIt") { appStore_add_defaults(true); $OptionsReset = true; $options = get_option('appStore_options'); showMessage("All settings have been reset to their defaults!",true); } if($options['ResetCacheOne']=="DoIt" && $options['ResetCacheTwo']=="DoIt") { clearAppCache(); update_option('ResetCacheOne', "NoWay"); update_option('ResetCacheTwo', "NoWay"); showMessage("The App data cache has been cleared!",true); } ?>
$message