diff --git a/blog/wp-content/.DS_Store b/blog/wp-content/.DS_Store new file mode 100644 index 0000000..ac2a5cb Binary files /dev/null and b/blog/wp-content/.DS_Store differ diff --git a/blog/wp-content/plugins/.DS_Store b/blog/wp-content/plugins/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/blog/wp-content/plugins/.DS_Store differ diff --git a/blog/wp-content/plugins/custom-post-template/custom-post-templates.php b/blog/wp-content/plugins/custom-post-template/custom-post-templates.php deleted file mode 100644 index 0c804ac..0000000 --- a/blog/wp-content/plugins/custom-post-template/custom-post-templates.php +++ /dev/null @@ -1,147 +0,0 @@ -tpl_meta_key = 'custom_post_template'; - // Init hooks and all that - $this->register_plugin ( 'post-templates', __FILE__ ); - $this->add_meta_box( 'select_post_template', __('Post Template'), 'select_post_template', 'post', 'side', 'default' ); - $this->add_action( 'save_post' ); - $this->add_filter( 'single_template', 'filter_single_template' ); - } - - /* - * FILTERS & ACTIONS - * ******************* - */ - - public function select_post_template( $post ) - { - $this->post_ID = $post->ID; - - $template_vars = array(); - $template_vars[ 'templates' ] = $this->get_post_templates(); - $template_vars[ 'custom_template' ] = $this->get_custom_post_template(); - - // Render the template - $this->render_admin ( 'select_post_template', $template_vars ); - } - - public function save_post( $post_ID ) - { - $action_needed = (bool) @ $_POST[ 'custom_post_template_present' ]; - if ( ! $action_needed ) return; - - $this->post_ID = $post_ID; - - $template = (string) @ $_POST[ 'custom_post_template' ]; - $this->set_custom_post_template( $template ); - } - - public function filter_single_template( $template ) - { - global $wp_query; - - $this->post_ID = $wp_query->post->ID; - - $template_file = $this->get_custom_post_template(); - $custom_template = TEMPLATEPATH . "/" . $template_file; - // Check both the template file and the full path, otherwise you discover that the theme dir - // exists (which is not surprising) - if ( $template_file && file_exists( $custom_template ) ) return $custom_template; - - return $template; - } - - /* - * UTILITY METHODS - * ***************** - */ - - protected function set_custom_post_template( $template ) - { - delete_post_meta( $this->post_ID, $this->tpl_meta_key ); - if ( ! $template || $template == 'default' ) return; - - add_post_meta( $this->post_ID, $this->tpl_meta_key, $template ); - } - - protected function get_custom_post_template() - { - $custom_template = get_post_meta( $this->post_ID, $this->tpl_meta_key, true ); - return $custom_template; - } - - protected function get_post_templates() - { - $themes = get_themes(); - $theme = get_current_theme(); - $templates = $themes[ $theme ][ 'Template Files' ]; - - $page_templates = array(); - - if ( is_array( $templates ) ) { - foreach ( $templates as $template ) { - // Get the file data and collapse it into a single string - $template_data = implode( '', file( $template ) ); - if ( ! preg_match( '|Template Name Posts:(.*)$|mi', $template_data, $name ) ) - continue; - - $name = _cleanup_header_comment( $name[ 1 ] ); - - $page_templates[ trim( $name ) ] = basename( $template ); - } - } - - return $page_templates; - } -} - -/** - * Instantiate the plugin - * - * @global - **/ - -$CustomPostTemplates = new CustomPostTemplates(); - -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/custom-post-template/plugin.php b/blog/wp-content/plugins/custom-post-template/plugin.php deleted file mode 100644 index 91efaac..0000000 --- a/blog/wp-content/plugins/custom-post-template/plugin.php +++ /dev/null @@ -1,676 +0,0 @@ -Display Rendering - * The class uses a similar technique to Ruby On Rails views, whereby the display HTML is kept - * in a separate directory and file from the main code. A display is 'rendered' (sent to the browser) - * or 'captured' (returned to the calling function). - * - * Template files are separated into two areas: admin and user. Admin templates are only for display in - * the WordPress admin interface, while user templates are typically for display on the site (although neither - * of these are enforced). All templates are PHP code, but are referred to without .php extension. - * - * The reason for this separation is that one golden rule of plugin creation is that someone will always want to change - * the formatting and style of your output. Rather than forcing them to modify the plugin (bad), or modify files within - * the plugin (equally bad), the class allows user templates to be overridden with files contained within the theme. - * - * An additional benefit is that it leads to code re-use, especially with regards to Ajax (i.e. your display code can be called from - * many locations) - * - * Template files are located within the 'view' subdirectory of the plugins base (specified when registering the plugin): - * - *
myplugin/view/admin
- * myplugin/view/myplugin
- * - * Admin templates are contained within 'admin', and user templates are contained within a directory of the same name as the plugin. - * - * User files can be overridden within the theme by creating a similar directory structure: - * - *
/themes/mytheme/view/myplugin
- * - * The class will first look in the theme and then defaults to the plugin. A plugin should always provide default templates. - * - *

Display Parameters

- * Also similar to Ruby On Rails, when you display a template you must supply the parameters that the template has access to. This tries - * to ensure a very clean separation between code and display. Parameters are supplied as an associative array mapping variable name to variable value. - * - * For example, - * - * array ('message' => 'Your data was processed', 'items' => 103); - * - *

How it works in practice

- * You create a template file to display how many items have been processed. You store this in 'view/admin/processed.php': - * - *
<p>You processed <?php echo $items ?> items</p>
- * - * When you want to display this in your plugin you use: - * - *
 $this->render_admin ('processed', array ('items' => 100));
- *
- * @package WordPress base library
- * @author John Godley
- * @copyright Copyright (C) John Godley
- **/
-
-class CustomPostTemplates_Plugin
-{
-	/**
-	 * Plugin name
-	 * @var string
-	 **/
-	var $plugin_name;
-	
-	/**
-	 * Plugin 'view' directory
-	 * @var string Directory
-	 **/
-	var $plugin_base;
-	
-	
-	/**
-	 * Register your plugin with a name and base directory.  This must be called once.
-	 *
-	 * @param string $name Name of your plugin.  Is used to determine the plugin locale domain
-	 * @param string $base Directory containing the plugin's 'view' files.
-	 * @return void
-	 **/
-	
-	function register_plugin ($name, $base)
-	{
-		$this->plugin_base = rtrim (dirname ($base), '/');
-		$this->plugin_name = $name;
-
-		$this->add_action ('init', 'load_locale');
-	}
-	
-	function load_locale ()
-	{
-		// Here we manually fudge the plugin locale as WP doesnt allow many options
-		$locale = get_locale ();
-		if ( empty($locale) )
-			$locale = 'en_US';
-
-		$mofile = dirname (__FILE__)."/locale/$locale.mo";
-		load_textdomain ($this->plugin_name, $mofile);
-	}
-	
-	
-	/**
-	 * Register a WordPress action and map it back to the calling object
-	 *
-	 * @param string $action Name of the action
-	 * @param string $function Function name (optional)
-	 * @param int $priority WordPress priority (optional)
-	 * @param int $accepted_args Number of arguments the function accepts (optional)
-	 * @return void
-	 **/
-	
-	function add_action ($action, $function = '', $priority = 10, $accepted_args = 1)
-	{
-		add_action ($action, array (&$this, $function == '' ? $action : $function), $priority, $accepted_args);
-	}
-
-
-	/**
-	 * Register a WordPress filter and map it back to the calling object
-	 *
-	 * @param string $action Name of the action
-	 * @param string $function Function name (optional)
-	 * @param int $priority WordPress priority (optional)
-	 * @param int $accepted_args Number of arguments the function accepts (optional)
-	 * @return void
-	 **/
-	
-	function add_filter ($filter, $function = '', $priority = 10, $accepted_args = 1)
-	{
-		add_filter ($filter, array (&$this, $function == '' ? $filter : $function), $priority, $accepted_args);
-	}
-
-	
-	/**
-	 * Register a WordPress meta box
-	 *
-	 * @param string $id ID for the box, also used as a function name if none is given
-	 * @param string $title Title for the box
-	 * @param int $page WordPress priority (optional)
-	 * @param string $function Function name (optional)
-	 * @param string $context e.g. 'advanced' or 'core' (optional)
-	 * @param int $priority Priority, rough effect on the ordering (optional)
-	 * @return void
-	 **/
-	
-	function add_meta_box($id, $title, $function = '', $page, $context = 'advanced', $priority = 'default')
-	{
-		require_once( ABSPATH . 'wp-admin/includes/template.php' );
-		add_meta_box( $id, $title, array( &$this, $function == '' ? $id : $function ), $page, $context, $priority );
-	}
-
-	/**
-	 * Special activation function that takes into account the plugin directory
-	 *
-	 * @param string $pluginfile The plugin file location (i.e. __FILE__)
-	 * @param string $function Optional function name, or default to 'activate'
-	 * @return void
-	 **/
-	
-	function register_activation ($pluginfile, $function = '')
-	{
-		add_action ('activate_'.basename (dirname ($pluginfile)).'/'.basename ($pluginfile), array (&$this, $function == '' ? 'activate' : $function));
-	}
-	
-	
-	/**
-	 * Special deactivation function that takes into account the plugin directory
-	 *
-	 * @param string $pluginfile The plugin file location (i.e. __FILE__)
-	 * @param string $function Optional function name, or default to 'deactivate'
-	 * @return void
-	 **/
-	
-	function register_deactivation ($pluginfile, $function = '')
-	{
-		add_action ('deactivate_'.basename (dirname ($pluginfile)).'/'.basename ($pluginfile), array (&$this, $function == '' ? 'deactivate' : $function));
-	}
-	
-	
-	/**
-	 * Renders an admin section of display code
-	 *
-	 * @param string $ug_name Name of the admin file (without extension)
-	 * @param string $array Array of variable name=>value that is available to the display code (optional)
-	 * @return void
-	 **/
-	
-	function render_admin ($ug_name, $ug_vars = array ())
-	{
-		global $plugin_base;
-		foreach ($ug_vars AS $key => $val)
-			$$key = $val;
-
-		if (file_exists ("{$this->plugin_base}/view/admin/$ug_name.php"))
-			include ("{$this->plugin_base}/view/admin/$ug_name.php");
-		else
-			echo "

Rendering of admin template {$this->plugin_base}/view/admin/$ug_name.php failed

"; - } - - - /** - * Renders a section of user display code. The code is first checked for in the current theme display directory - * before defaulting to the plugin - * - * @param string $ug_name Name of the admin file (without extension) - * @param string $array Array of variable name=>value that is available to the display code (optional) - * @return void - **/ - - function render ($ug_name, $ug_vars = array ()) - { - foreach ($ug_vars AS $key => $val) - $$key = $val; - - if (file_exists (TEMPLATEPATH."/view/{$this->plugin_name}/$ug_name.php")) - include (TEMPLATEPATH."/view/{$this->plugin_name}/$ug_name.php"); - else if (file_exists ("{$this->plugin_base}/view/{$this->plugin_name}/$ug_name.php")) - include ("{$this->plugin_base}/view/{$this->plugin_name}/$ug_name.php"); - else - echo "

Rendering of template $ug_name.php failed

"; - } - - - /** - * Renders a section of user display code. The code is first checked for in the current theme display directory - * before defaulting to the plugin - * - * @param string $ug_name Name of the admin file (without extension) - * @param string $array Array of variable name=>value that is available to the display code (optional) - * @return void - **/ - - function capture ($ug_name, $ug_vars = array ()) - { - ob_start (); - $this->render ($ug_name, $ug_vars); - $output = ob_get_contents (); - ob_end_clean (); - return $output; - } - - - /** - * Captures an admin section of display code - * - * @param string $ug_name Name of the admin file (without extension) - * @param string $array Array of variable name=>value that is available to the display code (optional) - * @return string Captured code - **/ - - function capture_admin ($ug_name, $ug_vars = array ()) - { - ob_start (); - $this->render_admin ($ug_name, $ug_vars); - $output = ob_get_contents (); - ob_end_clean (); - return $output; - } - - - /** - * Display a standard error message (using CSS ID 'message' and classes 'fade' and 'error) - * - * @param string $message Message to display - * @return void - **/ - - function render_error ($message) - { - ?> -
-

-
- -
-

-
- plugin_base; - } - - - /** - * Get a URL to the plugin. Useful for specifying JS and CSS files - * - * For example, - * - * @return string URL - **/ - - function url ($url = '') - { - if ($url) - return str_replace ('\\', urlencode ('\\'), str_replace ('&amp', '&', str_replace ('&', '&', $url))); - else - { - $root = ABSPATH; - if (defined ('WP_PLUGIN_DIR')) - $root = WP_PLUGIN_DIR; - - $url = substr ($this->plugin_base, strlen ($this->realpath ($root))); - if (DIRECTORY_SEPARATOR != '/') - $url = str_replace (DIRECTORY_SEPARATOR, '/', $url); - - if (defined ('WP_PLUGIN_URL')) - $url = WP_PLUGIN_URL.'/'.ltrim ($url, '/'); - else - $url = get_bloginfo ('wpurl').'/'.ltrim ($url, '/'); - - // Do an SSL check - only works on Apache - global $is_IIS; - if (isset ($_SERVER['HTTPS']) && !$is_IIS) - $url = str_replace ('http://', 'https://', $url); - } - return $url; - } - - /** - * Performs a version update check using an RSS feed. The function ensures that the feed is only - * hit once every given number of days, and the data is cached using the WordPress Magpie library - * - * @param string $url URL of the RSS feed - * @param int $days Number of days before next check - * @return string Text to display - **/ - - function version_update ($url, $days = 7) - { - if (!function_exists ('fetch_rss')) - { - if (!file_exists (ABSPATH.'wp-includes/rss.php')) - return ''; - include (ABSPATH.'wp-includes/rss.php'); - } - - $now = time (); - - $checked = get_option ('plugin_urbangiraffe_rss'); - - // Use built-in Magpie caching - if (function_exists ('fetch_rss') && (!isset ($checked[$this->plugin_name]) || $now > $checked[$this->plugin_name] + ($days * 24 * 60 * 60))) - { - $rss = fetch_rss ($url); - if (count ($rss->items) > 0) - { - foreach ($rss->items AS $pos => $item) - { - if (isset ($checked[$this->plugin_name]) && strtotime ($item['pubdate']) < $checked[$this->plugin_name]) - unset ($rss->items[$pos]); - } - } - - $checked[$this->plugin_name] = $now; - update_option ('plugin_urbangiraffe_rss', $checked); - return $rss; - } - } - - - /** - * Version of realpath that will work on systems without realpath - * - * @param string $path The path to canonicalize - * @return string Canonicalized path - **/ - - function realpath ($path) - { - if (function_exists ('realpath')) - return realpath ($path); - else if (DIRECTORY_SEPARATOR == '/') - { - $path = preg_replace ('/^~/', $_SERVER['DOCUMENT_ROOT'], $path); - - // canonicalize - $path = explode (DIRECTORY_SEPARATOR, $path); - $newpath = array (); - for ($i = 0; $i < sizeof ($path); $i++) - { - if ($path[$i] === '' || $path[$i] === '.') - continue; - - if ($path[$i] === '..') - { - array_pop ($newpath); - continue; - } - - array_push ($newpath, $path[$i]); - } - - $finalpath = DIRECTORY_SEPARATOR.implode (DIRECTORY_SEPARATOR, $newpath); - return $finalpath; - } - - return $path; - } - - - function checked ($item, $field = '') - { - if ($field && is_array ($item)) - { - if (isset ($item[$field]) && $item[$field]) - echo ' checked="checked"'; - } - else if (!empty ($item)) - echo ' checked="checked"'; - } - - function select ($items, $default = '') - { - if (count ($items) > 0) - { - foreach ($items AS $key => $value) - { - if (is_array ($value)) - { - echo ''; - foreach ($value AS $sub => $subvalue) - echo ''; - echo ''; - } - else - echo ''; - } - } - } -} - -if (!function_exists ('pr')) -{ - function pr ($thing) - { - echo '
';
-		print_r ($thing);
-		echo '
'; - } -} - -if (!class_exists ('Widget_SU')) -{ - class Widget_SU - { - function Widget_SU ($name, $max = 1, $id = '', $args = '') - { - $this->name = $name; - $this->id = $id; - $this->widget_max = $max; - $this->args = $args; - - if ($this->id == '') - $this->id = strtolower (preg_replace ('/[^A-Za-z]/', '-', $this->name)); - - $this->widget_available = 1; - if ($this->widget_max > 1) - { - $this->widget_available = get_option ('widget_available_'.$this->id ()); - if ($this->widget_available === false) - $this->widget_available = 1; - } - - add_action ('init', array (&$this, 'initialize')); - } - - function initialize () - { - // Compatability functions for WP 2.1 - if (!function_exists ('wp_register_sidebar_widget')) - { - function wp_register_sidebar_widget ($id, $name, $output_callback, $classname = '') - { - register_sidebar_widget($name, $output_callback, $classname); - } - } - - if (!function_exists ('wp_register_widget_control')) - { - function wp_register_widget_control($name, $control_callback, $width = 300, $height = 200) - { - register_widget_control($name, $control_callback, $width, $height); - } - } - - if (function_exists ('wp_register_sidebar_widget')) - { - if ($this->widget_max > 1) - { - add_action ('sidebar_admin_setup', array (&$this, 'setup_save')); - add_action ('sidebar_admin_page', array (&$this, 'setup_display')); - } - - $this->load_widgets (); - } - } - - function load_widgets () - { - for ($pos = 1; $pos <= $this->widget_max; $pos++) - { - wp_register_sidebar_widget ($this->id ($pos), $this->name ($pos), $pos <= $this->widget_available ? array (&$this, 'show_display') : '', $this->args (), $pos); - - if ($this->has_config ()) - wp_register_widget_control ($this->id ($pos), $this->name ($pos), $pos <= $this->widget_available ? array (&$this, 'show_config') : '', $this->args (), $pos); - } - } - - function args () - { - if ($this->args) - return $args; - return array ('classname' => ''); - } - - function name ($pos) - { - if ($this->widget_available > 1) - return $this->name.' ('.$pos.')'; - return $this->name; - } - - function id ($pos = 0) - { - if ($pos == 0) - return $this->id; - return $this->id.'-'.$pos; - } - - function show_display ($args, $number = 1) - { - $config = get_option ('widget_config_'.$this->id ($number)); - if ($config === false) - $config = array (); - - $this->load ($config); - $this->display ($args); - } - - function show_config ($position) - { - if (isset ($_POST['widget_config_save_'.$this->id ($position)])) - { - $data = $_POST[$this->id ()]; - if (count ($data) > 0) - { - $newdata = array (); - foreach ($data AS $item => $values) - $newdata[$item] = $values[$position]; - $data = $newdata; - } - - update_option ('widget_config_'.$this->id ($position), $this->save ($data)); - } - - $options = get_option ('widget_config_'.$this->id ($position)); - if ($options === false) - $options = array (); - - $this->config ($options, $position); - echo ''; - } - - function has_config () { return false; } - function save ($data) - { - return array (); - } - - function setup_save () - { - if (isset ($_POST['widget_setup_save_'.$this->id ()])) - { - $this->widget_available = intval ($_POST['widget_setup_count_'.$this->id ()]); - if ($this->widget_available < 1) - $this->widget_available = 1; - else if ($this->widget_available > $this->widget_max) - $this->widget_available = $this->widget_max; - - update_option ('widget_available_'.$this->id (), $this->widget_available); - - $this->load_widgets (); - } - } - - function config_name ($field, $pos) - { - return $this->id ().'['.$field.']['.$pos.']'; - } - - function setup_display () - { - ?> -
-
-

name ?>

-

id); ?> - - - - -

-
-
- \ No newline at end of file diff --git a/blog/wp-content/plugins/custom-post-template/readme.txt b/blog/wp-content/plugins/custom-post-template/readme.txt deleted file mode 100644 index 8a43d54..0000000 --- a/blog/wp-content/plugins/custom-post-template/readme.txt +++ /dev/null @@ -1,87 +0,0 @@ -=== Custom Post Template === -Contributors: simonwheatley -Donate link: http://www.simonwheatley.co.uk/wordpress/ -Tags: post, template, theme -Requires at least: 2.9 -Tested up to: 2.9.1 -Stable tag: 1.1 - -Provides a drop-down to select different templates for posts from the post edit screen. The templates replace single.php for the specified post. - -== Description == - -**This plugin requires PHP5 (see Other Notes > PHP4 for more).** - -Provides a drop-down to select different templates for posts from the post edit screen. The templates are defined similarly to page templates, and will replace single.php for the specified post. - -Post templates, as far as this plugin is concerned, are configured similarly to [page templates](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates) in that they have a particular style of PHP comment at the top of them. Each post template must contain the following, or similar, at the top: - - - - -Note that *page* templates use "_Template Name:_", whereas *post* templates use "_Template Name Posts:_". - -Plugin initially produced on behalf of [Words & Pictures](http://www.wordsandpics.co.uk/). - -Is this plugin lacking a feature you want? I'm happy to discuss ideas, or to accept offers of feature sponsorship: [contact me](http://www.simonwheatley.co.uk/contact-me/) and we can have a chat. - -Any issues: [contact me](http://www.simonwheatley.co.uk/contact-me/). - -== Installation == - -The plugin is simple to install: - -1. Download the plugin, it will arrive as a zip file -1. Unzip it -1. Upload `custom-post-template` directory to your WordPress Plugin directory -1. Go to the plugin management page and enable the plugin -1. Upload your post template files (see the Description for details on configuring these), and choose them through the new menu -1. Give yourself a pat on the back - -== PHP4 == - -Many of my plugin now require at least PHP5. I know that WordPress officially supports PHP4, but I don't. PHP4 is a mess and makes coding a lot less efficient, and when you're releasing stuff for free these things matter. PHP5 has been out for several years now and is fully production ready, as well as being naturally more secure and performant. - -If you're still running PHP4, I strongly suggest you talk to your hosting company about upgrading your servers. All reputable hosting companies should offer PHP5 as well as PHP4. - -Right, that's it. Grump over. ;) - -== Change Log == - -= v1.1 2010/01/27 = - -* IDIOTFIX: Managed to revert to an old version somehow, this version should fix that. - -= v1 2010/01/15 (released 2010/01/26) = - -* BUGFIX: Theme templates now come with a complete filepath, so no need to add WP_CONTENT_DIR constant to the beginning. -* ENHANCEMENT: Metabox now shows up on the side, under the publish box... where you'd expect. - -= v0.9b 2008/11/26 = - -* Plugin first released - -= v0.91b 2008/11/28 = - -* BUGFIX: The plugin was breaking posts using the "default" template, this is now fixed. Apologies for the inconvenience. -* Tested up to WordPress 2.7-beta3-9922 - -= v0.91b 2008/11/28 = - -* BUGFIX: The plugin was breaking posts using the "default" template, this is now fixed. Apologies for the inconvenience. -* Tested up to WordPress 2.7-beta3-9922* Tested up to WordPress 2.7-beta3-9922 - -= v0.92b 2008/12/04 = - -* Minor code tweaks -* Blocked direct access to templates - -== Frequently Asked Questions == - -= I get an error like this: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /web/wp-content/plugins/custom-post-template/custom-post-templates.php = - -This is because your server is running PHP4. Please see "Other Notes > PHP4" for more information. \ No newline at end of file diff --git a/blog/wp-content/plugins/custom-post-template/view/admin/select_post_template.php b/blog/wp-content/plugins/custom-post-template/view/admin/select_post_template.php deleted file mode 100644 index 729f331..0000000 --- a/blog/wp-content/plugins/custom-post-template/view/admin/select_post_template.php +++ /dev/null @@ -1,22 +0,0 @@ - - - - -

diff --git a/blog/wp-content/plugins/disqus-comment-system/comments-legacy.php b/blog/wp-content/plugins/disqus-comment-system/comments-legacy.php deleted file mode 100644 index 51b46ef..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/comments-legacy.php +++ /dev/null @@ -1,13 +0,0 @@ - -
- - - diff --git a/blog/wp-content/plugins/disqus-comment-system/comments.php b/blog/wp-content/plugins/disqus-comment-system/comments.php deleted file mode 100644 index 6fa1f5c..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/comments.php +++ /dev/null @@ -1,71 +0,0 @@ - - -
-
-
    - -
  • -
    - - - - - - - -
    -
    -
    -
    -
  • - -
-
-
- -blog comments powered by Disqus - - - - - - diff --git a/blog/wp-content/plugins/disqus-comment-system/disqus.php b/blog/wp-content/plugins/disqus-comment-system/disqus.php deleted file mode 100644 index 5560618..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/disqus.php +++ /dev/null @@ -1,977 +0,0 @@ - -Version: 2.33.8752 -Author URI: http://disqus.com/ -*/ - -require_once('lib/api.php'); - -define('DISQUS_URL', 'http://disqus.com'); -define('DISQUS_API_URL', DISQUS_URL); -define('DISQUS_DOMAIN', 'disqus.com'); -define('DISQUS_IMPORTER_URL', 'http://import.disqus.net'); -define('DISQUS_MEDIA_URL', 'http://media.disqus.com'); -define('DISQUS_RSS_PATH', '/latest.rss'); - -function dsq_plugin_basename($file) { - $file = dirname($file); - - // From WP2.5 wp-includes/plugin.php:plugin_basename() - $file = str_replace('\\','/',$file); // sanitize for Win32 installs - $file = preg_replace('|/+|','/', $file); // remove any duplicate slash - $file = preg_replace('|^.*/' . PLUGINDIR . '/|','',$file); // get relative path from plugins dir - - if ( strstr($file, '/') === false ) { - return $file; - } - - $pieces = explode('/', $file); - return !empty($pieces[count($pieces)-1]) ? $pieces[count($pieces)-1] : $pieces[count($pieces)-2]; -} - -if ( !defined('WP_CONTENT_URL') ) { - define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); -} -if ( !defined('PLUGINDIR') ) { - define('PLUGINDIR', 'wp-content/plugins'); // Relative to ABSPATH. For back compat. -} - -define('DSQ_PLUGIN_URL', WP_CONTENT_URL . '/plugins/' . dsq_plugin_basename(__FILE__)); - -/** - * Disqus WordPress plugin version. - * - * @global string $dsq_version - * @since 1.0 - */ -$dsq_version = '2.33'; -$mt_dsq_version = '2.01'; -/** - * Response from Disqus get_thread API call for comments template. - * - * @global string $dsq_response - * @since 1.0 - */ -$dsq_response = ''; -/** - * Comment sort option. - * - * @global string $dsq_sort - * @since 1.0 - */ -$dsq_sort = 1; -/** - * Flag to determine whether or not the comment count script has been embedded. - * - * @global string $dsq_cc_script_embedded - * @since 1.0 - */ -$dsq_cc_script_embedded = false; -/** - * Disqus API instance. - * - * @global string $dsq_api - * @since 1.0 - */ -$dsq_api = new DisqusAPI(get_option('disqus_forum_url'), get_option('disqus_api_key')); -/** - * DISQUS is_feed check. - * - * @global bool $dsq_is_feed - * @since 2.2 - */ -$dsq_is_feed = false; - -/** - * DISQUS currently unsupported dev toggle to output comments for this query. - * - * @global bool $dsq_comments_for_query - * @since ? - */ -$DSQ_QUERY_COMMENTS = false; - -/** - * DISQUS array to store post_ids from WP_Query for comment JS output. - * - * @global array $DSQ_QUERY_POST_IDS - * @since 2.2 - */ -$DSQ_QUERY_POST_IDS = array(); - -/** - * Helper functions. - */ - -function dsq_legacy_mode() { - return get_option('disqus_forum_url') && !get_option('disqus_api_key'); -} - -function dsq_is_installed() { - return get_option('disqus_forum_url') && get_option('disqus_api_key'); -} - -function dsq_can_replace() { - global $id, $post; - $replace = get_option('disqus_replace'); - - if ( 'draft' == $post->post_status ) { return false; } - if ( !get_option('disqus_forum_url') ) { return false; } - else if ( 'all' == $replace ) { return true; } - - if ( !isset($post->comment_count) ) { - $num_comments = 0; - } else { - if ( 'empty' == $replace ) { - // Only get count of comments, not including pings. - - // If there are comments, make sure there are comments (that are not track/pingbacks) - if ( $post->comment_count > 0 ) { - // Yuck, this causes a DB query for each post. This can be - // replaced with a lighter query, but this is still not optimal. - $comments = get_approved_comments($post->ID); - foreach ( $comments as $comment ) { - if ( $comment->comment_type != 'trackback' && $comment->comment_type != 'pingback' ) { - $num_comments++; - } - } - } else { - $num_comments = 0; - } - } - else { - $num_comments = $post->comment_count; - } - } - - return ( ('empty' == $replace && 0 == $num_comments) - || ('closed' == $replace && 'closed' == $post->comment_status) ); -} - -function dsq_manage_dialog($message, $error = false) { - global $wp_version; - - echo '

' - . $message - . '

'; -} - -function dsq_sync_comments($post, $comments) { - global $wpdb; - - // Get last_comment_date id for $post with Disqus metadata - // (This is the date that is stored in the Disqus DB.) - $last_comment_date = $wpdb->get_var('SELECT max(comment_date) FROM ' . $wpdb->prefix . 'comments WHERE comment_post_ID=' . intval($post->ID) . " AND comment_agent LIKE 'Disqus/%';"); - if ( $last_comment_date ) { - $last_comment_date = strtotime($last_comment_date); - } - - if ( !$last_comment_date ) { - $last_comment_date = 0; - } - - foreach ( $comments as $comment ) { - if ( $comment['imported'] ) { - continue; - } else if ( $comment['date'] <= $last_comment_date ) { - // If comment date of comment is <= last_comment_date, skip comment. - continue; - } else { - // Else, insert_comment - $commentdata = array( - 'comment_post_ID' => $post->ID, - 'comment_author' => $comment['user']['display_name'], - 'comment_author_email' => $comment['user']['email'], - 'comment_author_url' => $comment['user']['url'], - 'comment_author_IP' => $comment['user']['ip_address'], - 'comment_date' => date('Y-m-d H:i:s', $comment['date']), - 'comment_date_gmt' => date('Y-m-d H:i:s', $comment['date_gmt']), - 'comment_content' => $comment['message'], - 'comment_approved' => 1, - 'comment_agent' => 'Disqus/1.0:' . intval($comment['id']), - 'comment_type' => '', - ); - wp_insert_comment($commentdata); - } - } - - if( isset($_POST['dsq_api_key']) && $_POST['dsq_api_key'] == get_option('disqus_api_key') ) { - if( isset($_GET['dsq_sync_action']) && isset($_GET['dsq_sync_comment_id']) ) { - $comment_parts = explode('=', $_GET['dsq_sync_comment_id']); - if( 'wp_id' == $comment_parts[0] ) { - $comment_id = intval($comment_parts[1]); - } else { - $comment_id = $wpdb->get_var('SELECT comment_ID FROM ' . $wpdb->prefix . 'comments WHERE comment_post_ID=' . intval($post->ID) . " AND comment_agent LIKE 'Disqus/1.0:" . intval($comment_parts[1]) . "'"); - } - - switch( $_GET['dsq_sync_action'] ) { - case 'mark_spam': - wp_set_comment_status($comment_id, 'spam'); - echo ""; - break; - case 'mark_approved': - wp_set_comment_status($comment_id, 'approve'); - echo ""; - break; - case 'mark_killed': - wp_set_comment_status($comment_id, 'hold'); - echo ""; - break; - } - } - } -} - -function dsq_request_handler() { - if (!empty($_GET['cf_action'])) { - switch ($_GET['cf_action']) { - case 'export_comments': - if (current_user_can('manage_options')) { -// handle vars - $post_id = intval($_GET['post_id']); - $limit = 2; - global $wpdb, $dsq_api; - $posts = $wpdb->get_results(" - SELECT * - FROM $wpdb->posts - WHERE post_type != 'revision' - AND post_status = 'publish' - AND comment_count > 0 - AND ID > $post_id - ORDER BY ID ASC - LIMIT $limit - "); - $first_post_id = $posts[0]->ID; - $last_post_id = $posts[(count($posts) - 1)]->ID; - $max_post_id = $wpdb->get_var(" - SELECT MAX(ID) - FROM $wpdb->posts - WHERE post_type != 'revision' - AND post_status = 'publish' - AND comment_count > 0 - AND ID > $post_id - "); - if ($last_post_id == $max_post_id) { - $status = 'complete'; - $msg = 'All comments sent to Disqus!'; - } - else { - $status = 'partial'; - if (count($posts) == 1) { - $msg = 'Processed comments on post #'.$first_post_id.'…'; - } - else { - $msg = 'Processed comments on posts #'.$first_post_id.'-'.$last_post_id.'…'; - } - } - $result = 'fail'; - if (count($posts)) { - include_once(dirname(__FILE__) . '/export.php'); - $wxr = dsq_export_wp($posts); - $import_id = $dsq_api->import_wordpress_comments($wxr); - if ($import_id < 0) { - $result = 'fail'; - $msg = '

Sorry, something unexpected happened with the export. Please try again

If your API key has changed, you may need to reinstall Disqus (deactivate the plugin and then reactivate it). If you are still having issues, refer to the WordPress help page.

'; - } - else { - $result = 'success'; - } - } -// send AJAX response - $response = compact('result', 'status', 'last_post_id', 'msg'); - header('Content-type: text/javascript'); - echo cf_json_encode($response); - die(); - } - break; - } - } -} -add_action('init', 'dsq_request_handler'); - -/** - * Compatibility - */ - -if (!function_exists ( '_wp_specialchars' ) ) { -function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { - $string = (string) $string; - - if ( 0 === strlen( $string ) ) { - return ''; - } - - // Don't bother if there are no specialchars - saves some processing - if ( !preg_match( '/[&<>"\']/', $string ) ) { - return $string; - } - - // Account for the previous behaviour of the function when the $quote_style is not an accepted value - if ( empty( $quote_style ) ) { - $quote_style = ENT_NOQUOTES; - } elseif ( !in_array( $quote_style, array( 0, 2, 3, 'single', 'double' ), true ) ) { - $quote_style = ENT_QUOTES; - } - - // Store the site charset as a static to avoid multiple calls to wp_load_alloptions() - if ( !$charset ) { - static $_charset; - if ( !isset( $_charset ) ) { - $alloptions = wp_load_alloptions(); - $_charset = isset( $alloptions['blog_charset'] ) ? $alloptions['blog_charset'] : ''; - } - $charset = $_charset; - } - if ( in_array( $charset, array( 'utf8', 'utf-8', 'UTF8' ) ) ) { - $charset = 'UTF-8'; - } - - $_quote_style = $quote_style; - - if ( $quote_style === 'double' ) { - $quote_style = ENT_COMPAT; - $_quote_style = ENT_COMPAT; - } elseif ( $quote_style === 'single' ) { - $quote_style = ENT_NOQUOTES; - } - - // Handle double encoding ourselves - if ( !$double_encode ) { - $string = wp_specialchars_decode( $string, $_quote_style ); - $string = preg_replace( '/&(#?x?[0-9a-z]+);/i', '|wp_entity|$1|/wp_entity|', $string ); - } - - $string = @htmlspecialchars( $string, $quote_style, $charset ); - - // Handle double encoding ourselves - if ( !$double_encode ) { - $string = str_replace( array( '|wp_entity|', '|/wp_entity|' ), array( '&', ';' ), $string ); - } - - // Backwards compatibility - if ( 'single' === $_quote_style ) { - $string = str_replace( "'", ''', $string ); - } - - return $string; -} -} - -if (!function_exists ( 'wp_check_invalid_utf8' ) ) { -function wp_check_invalid_utf8( $string, $strip = false ) { - $string = (string) $string; - - if ( 0 === strlen( $string ) ) { - return ''; - } - - // Store the site charset as a static to avoid multiple calls to get_option() - static $is_utf8; - if ( !isset( $is_utf8 ) ) { - $is_utf8 = in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ); - } - if ( !$is_utf8 ) { - return $string; - } - - // Check for support for utf8 in the installed PCRE library once and store the result in a static - static $utf8_pcre; - if ( !isset( $utf8_pcre ) ) { - $utf8_pcre = @preg_match( '/^./u', 'a' ); - } - // We can't demand utf8 in the PCRE installation, so just return the string in those cases - if ( !$utf8_pcre ) { - return $string; - } - - // preg_match fails when it encounters invalid UTF8 in $string - if ( 1 === @preg_match( '/^./us', $string ) ) { - return $string; - } - - // Attempt to strip the bad chars if requested (not recommended) - if ( $strip && function_exists( 'iconv' ) ) { - return iconv( 'utf-8', 'utf-8', $string ); - } - - return ''; -} -} - -if (!function_exists ( 'esc_html' ) ) { -function esc_html( $text ) { - $safe_text = wp_check_invalid_utf8( $text ); - $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES ); - return apply_filters( 'esc_html', $safe_text, $text ); -} -} - -if (!function_exists ( 'esc_attr' ) ) { -function esc_attr( $text ) { - $safe_text = wp_check_invalid_utf8( $text ); - $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES ); - return apply_filters( 'attribute_escape', $safe_text, $text ); -} -} - -/** - * Filters/Actions - */ - -function dsq_get_style() { - echo ""; -} - -add_action('wp_head','dsq_get_style'); - -function dsq_comments_template($value) { - global $dsq_response; - global $dsq_sort; - global $dsq_api; - global $post; - - if ( !( is_singular() && ( have_comments() || 'open' == $post->comment_status ) ) ) { - return; - } - - if ( !dsq_can_replace() ) { - return $value; - } - - if ( dsq_legacy_mode() ) { - return dirname(__FILE__) . '/comments-legacy.php'; - } - - $permalink = get_permalink(); - $title = get_the_title(); - $excerpt = get_the_excerpt(); - - $dsq_sort = get_option('disqus_sort'); - if ( is_numeric($_COOKIE['disqus_sort']) ) { - $dsq_sort = $_COOKIE['disqus_sort']; - } - - if ( is_numeric($_GET['dsq_sort']) ) { - setcookie('disqus_sort', $_GET['dsq_sort']); - $dsq_sort = $_GET['dsq_sort']; - } - - // Call "get_thread" API method. - $dsq_response = $dsq_api->get_thread($post, $permalink, $title, $excerpt); - if( $dsq_response < 0 ) { - return false; - } - // Sync comments with database. - dsq_sync_comments($post, $dsq_response['posts']); - - // TODO: If a disqus-comments.php is found in the current template's - // path, use that instead of the default bundled comments.php - //return TEMPLATEPATH . '/disqus-comments.php'; - - return dirname(__FILE__) . '/comments.php'; -} - -// Mark entries in index to replace comments link. -function dsq_comments_number($comment_text) { - global $post; - - if ( dsq_can_replace() ) { - return 'View Comments'; - } else { - return $comment_text; - } -} - -function dsq_bloginfo_url($url) { - if ( get_feed_link('comments_rss2') == $url ) { - return 'http://' . strtolower(get_option('disqus_forum_url')) . '.' . DISQUS_DOMAIN . DISQUS_RSS_PATH; - } else { - return $url; - } -} - -function dsq_plugin_action_links($links, $file) { - $plugin_file = basename(__FILE__); - if (basename($file) == $plugin_file) { - $settings_link = ''.__('Settings', 'disqus-comment-system').''; - array_unshift($links, $settings_link); - } - return $links; -} -add_filter('plugin_action_links', 'dsq_plugin_action_links', 10, 2); - -// Always add Disqus management page to the admin menu -function dsq_add_pages() { - add_submenu_page( - 'edit-comments.php', - 'Disqus', - 'Disqus', - 'moderate_comments', - 'disqus', - 'dsq_manage' - ); -} -add_action('admin_menu', 'dsq_add_pages', 10); - -// a little jQuery goodness to get comments menu working as desired -function sdq_menu_admin_head() { -?> - -get_results(" - SELECT comment_approved, COUNT( * ) AS num_comments - FROM {$wpdb->comments} - WHERE comment_type != 'trackback' - AND comment_type != 'pingback' - GROUP BY comment_approved - ", ARRAY_A ); - $total = 0; - $approved = array('0' => 'moderated', '1' => 'approved', 'spam' => 'spam'); - $known_types = array_keys( $approved ); - foreach( (array) $count as $row_num => $row ) { - $total += $row['num_comments']; - if ( in_array( $row['comment_approved'], $known_types ) ) - $stats[$approved[$row['comment_approved']]] = $row['num_comments']; - } - - $stats['total_comments'] = $total; - foreach ( $approved as $key ) { - if ( empty($stats[$key]) ) - $stats[$key] = 0; - } - $stats = (object) $stats; -?> - - - - - - -"; - } - } -} -add_action('admin_head', 'dsq_admin_head'); - -function dsq_warning() { - if ( !get_option('disqus_forum_url') && !isset($_POST['forum_url']) && $_GET['page'] != 'disqus' ) { - dsq_manage_dialog('You must configure the plugin to enable Disqus Comments.', true); - } - - if ( dsq_legacy_mode() && $_GET['page'] == 'disqus' ) { - dsq_manage_dialog('Disqus Comments has not yet been configured. (Click here to configure)'); - } -} - -// catch original query -function dsq_parse_query($query) { - add_action('the_posts', 'dsq_add_request_post_ids', 999); -} -add_action('parse_request', 'dsq_parse_query'); - -// track the original request post_ids, only run once -function dsq_add_request_post_ids($posts) { - dsq_add_query_posts($posts); - remove_action('the_posts', 'dsq_log_request_post_ids', 999); - return $posts; -} - -function dsq_maybe_add_post_ids($posts) { - global $DSQ_QUERY_COMMENTS; - if ($DSQ_QUERY_COMMENTS) { - dsq_add_query_posts($posts); - } - return $posts; -} -add_action('the_posts', 'dsq_maybe_add_post_ids'); - -function dsq_add_query_posts($posts) { - global $DSQ_QUERY_POST_IDS; - if (count($posts)) { - foreach ($posts as $post) { - $post_ids[] = intval($post->ID); - } - $DSQ_QUERY_POST_IDS[md5(serialize($post_ids))] = $post_ids; - } -} - -// check to see if the posts in the loop match the original request or an explicit request, if so output the JS -function dsq_loop_end($query) { - if ( get_option('disqus_cc_fix') == '1' || !count($query->posts) || is_single() || is_page() || is_feed() ) { - return; - } - global $DSQ_QUERY_POST_IDS; - foreach ($query->posts as $post) { - $loop_ids[] = intval($post->ID); - } - $posts_key = md5(serialize($loop_ids)); - if (isset($DSQ_QUERY_POST_IDS[$posts_key])) { - dsq_output_loop_comment_js($DSQ_QUERY_POST_IDS[$posts_key]); - } -} -add_action('loop_end', 'dsq_loop_end'); - -function dsq_js_comment_count_url() { - return 'http://'.strtolower(get_option('disqus_forum_url')).'.'.DISQUS_DOMAIN.'/get_num_replies_from_wpid.js?v=2.2&t=span'; -} - -function dsq_output_loop_comment_js($post_ids = null) { - if (count($post_ids)) { - $post_id_str = ''; - $i = 0; - foreach ($post_ids as $post_id) { - $post_id_str .= '&wpid'.$i.'='.$post_id; - $i++; - } -?> - - - -post_status != 'publish') { - return; - } - global $dsq_prev_permalinks; - $dsq_prev_permalinks['post_'.$post_id] = get_permalink($post_id); -} -add_action('pre_post_update', 'dsq_prev_permalink'); - -function dsq_check_permalink($post_id) { - global $dsq_prev_permalinks; - if (!empty($dsq_prev_permalinks['post_'.$post_id]) && $dsq_prev_permalinks['post_'.$post_id] != get_permalink($post_id)) { -// API request to get old DSQ ID - get_thread_by_url - $post = get_post($post_id); - global $dsq_api; - $thread = $dsq_api->get_thread( - $post, - $dsq_prev_permalinks['post_'.$post_id], - get_the_title($post_id), - get_the_excerpt($post_id) - ); -// API request to update DSQ ID to new permalink - update_thread - if (is_array($thread) && !empty($thread['thread_id'])) { - $http = new WP_Http; - $response = $http->request( - DISQUS_API_URL . '/api/update_thread/', - array( - 'method' => 'POST', - 'body' => array( - 'thread_id' => $thread['thread_id'], - 'url' => get_permalink($post_id), - 'forum_api_key' => $dsq_api->forum_api_key, - ) - ) - ); - } - } -} -add_action('edit_post', 'dsq_check_permalink'); - -add_action('admin_notices', 'dsq_warning'); - -// Only replace comments if the disqus_forum_url option is set. -add_filter('comments_template', 'dsq_comments_template'); -add_filter('comments_number', 'dsq_comments_number'); -add_filter('bloginfo_url', 'dsq_bloginfo_url'); - -/** - * JSON ENCODE for PHP < 5.2.0 - * Checks if json_encode is not available and defines json_encode - * to use php_json_encode in its stead - * Works on iteratable objects as well - stdClass is iteratable, so all WP objects are gonna be iteratable - */ -if(!function_exists('cf_json_encode')) { - function cf_json_encode($data) { -// json_encode is sending an application/x-javascript header on Joyent servers -// for some unknown reason. -// if(function_exists('json_encode')) { return json_encode($data); } -// else { return cfjson_encode($data); } - return cfjson_encode($data); - } - - function cfjson_encode_string($str) { - if(is_bool($str)) { - return $str ? 'true' : 'false'; - } - - return str_replace( - array( - '"' - , '/' - , "\n" - , "\r" - ) - , array( - '\"' - , '\/' - , '\n' - , '\r' - ) - , $str - ); - } - - function cfjson_encode($arr) { - $json_str = ''; - if (is_array($arr)) { - $pure_array = true; - $array_length = count($arr); - for ( $i = 0; $i < $array_length ; $i++) { - if (!isset($arr[$i])) { - $pure_array = false; - break; - } - } - if ($pure_array) { - $json_str = '['; - $temp = array(); - for ($i=0; $i < $array_length; $i++) { - $temp[] = sprintf("%s", cfjson_encode($arr[$i])); - } - $json_str .= implode(',', $temp); - $json_str .="]"; - } - else { - $json_str = '{'; - $temp = array(); - foreach ($arr as $key => $value) { - $temp[] = sprintf("\"%s\":%s", $key, cfjson_encode($value)); - } - $json_str .= implode(',', $temp); - $json_str .= '}'; - } - } - else if (is_object($arr)) { - $json_str = '{'; - $temp = array(); - foreach ($arr as $k => $v) { - $temp[] = '"'.$k.'":'.cfjson_encode($v); - } - $json_str .= implode(',', $temp); - $json_str .= '}'; - } - else if (is_string($arr)) { - $json_str = '"'. cfjson_encode_string($arr) . '"'; - } - else if (is_numeric($arr)) { - $json_str = $arr; - } - else if (is_bool($arr)) { - $json_str = $arr ? 'true' : 'false'; - } - else { - $json_str = '"'. cfjson_encode_string($arr) . '"'; - } - return $json_str; - } -} - -// Single Sign-on Integration - -function dsq_sso() { - if (!$partner_key = get_option('disqus_partner_key')) { - return; - } - global $current_user, $dsq_api; - get_currentuserinfo(); - if ($current_user->ID) { - $avatar_tag = get_avatar($current_user->ID); - $avatar_data = array(); - preg_match('/(src)=((\'|")[^(\'|")]*(\'|"))/i', $avatar_tag, $avatar_data); - $avatar = str_replace(array('"', "'"), '', $avatar_data[2]); - $user_data = array( - 'username' => $current_user->display_name, - 'id' => $current_user->ID, - 'avatar' => $avatar, - 'email' => $current_user->user_email, - ); - } - else { - $user_data = array(); - } - $user_data = base64_encode(cf_json_encode($user_data)); - $time = time(); - $hmac = dsq_hmacsha1($user_data.' '.$time, $partner_key); - - $payload = $user_data.' '.$hmac.' '.$time; - echo ''; -} -add_action('wp_head', 'dsq_sso'); - -// from: http://www.php.net/manual/en/function.sha1.php#39492 -//Calculate HMAC-SHA1 according to RFC2104 -// http://www.ietf.org/rfc/rfc2104.txt -function dsq_hmacsha1($data, $key) { - $blocksize=64; - $hashfunc='sha1'; - if (strlen($key)>$blocksize) - $key=pack('H*', $hashfunc($key)); - $key=str_pad($key,$blocksize,chr(0x00)); - $ipad=str_repeat(chr(0x36),$blocksize); - $opad=str_repeat(chr(0x5c),$blocksize); - $hmac = pack( - 'H*',$hashfunc( - ($key^$opad).pack( - 'H*',$hashfunc( - ($key^$ipad).$data - ) - ) - ) - ); - return bin2hex($hmac); -} - - -?> diff --git a/blog/wp-content/plugins/disqus-comment-system/export.php b/blog/wp-content/plugins/disqus-comment-system/export.php deleted file mode 100644 index 99b67ec..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/export.php +++ /dev/null @@ -1,289 +0,0 @@ -term_id] = $category->parent; - - $parents = array_unique(array_diff($parents, array_keys($parents))); - - if ( $zero = array_search('0', $parents) ) - unset($parents[$zero]); - - return $parents; -} - -while ( $parents = wxr_missing_parents($categories) ) { - $found_parents = get_categories("include=" . join(', ', $parents)); - if ( is_array($found_parents) && count($found_parents) ) - $categories = array_merge($categories, $found_parents); - else - break; -} - -// Put them in order to be inserted with no child going before its parent -$pass = 0; -$passes = 1000 + count($categories); -while ( ( $cat = array_shift($categories) ) && ++$pass < $passes ) { - if ( $cat->parent == 0 || isset($cats[$cat->parent]) ) { - $cats[$cat->term_id] = $cat; - } else { - $categories[] = $cat; - } -} -unset($categories); - -/** - * Place string in CDATA tag. - * - * @since unknown - * - * @param string $str String to place in XML CDATA tag. - */ -function wxr_cdata($str) { - if ( seems_utf8($str) == false ) - $str = utf8_encode($str); - - // $str = ent2ncr(esc_html($str)); - - $str = ""; - - return $str; -} - -/** - * {@internal Missing Short Description}} - * - * @since unknown - * - * @return string Site URL. - */ -function wxr_site_url() { - global $current_site; - - // mu: the base url - if ( isset($current_site->domain) ) { - return 'http://'.$current_site->domain.$current_site->path; - } - // wp: the blog url - else { - return get_bloginfo_rss('url'); - } -} - -/** - * {@internal Missing Short Description}} - * - * @since unknown - * - * @param object $c Category Object - */ -function wxr_cat_name($c) { - if ( empty($c->name) ) - return; - - echo '' . wxr_cdata($c->name) . ''; -} - -/** - * {@internal Missing Short Description}} - * - * @since unknown - * - * @param object $c Category Object - */ -function wxr_category_description($c) { - if ( empty($c->description) ) - return; - - echo '' . wxr_cdata($c->description) . ''; -} - -/** - * {@internal Missing Short Description}} - * - * @since unknown - * - * @param object $t Tag Object - */ -function wxr_tag_name($t) { - if ( empty($t->name) ) - return; - - echo '' . wxr_cdata($t->name) . ''; -} - -/** - * {@internal Missing Short Description}} - * - * @since unknown - * - * @param object $t Tag Object - */ -function wxr_tag_description($t) { - if ( empty($t->description) ) - return; - - echo '' . wxr_cdata($t->description) . ''; -} - -/** - * {@internal Missing Short Description}} - * - * @since unknown - */ -function wxr_post_taxonomy() { - $categories = get_the_category(); - $tags = get_the_tags(); - $the_list = ''; - $filter = 'rss'; - - if ( !empty($categories) ) foreach ( (array) $categories as $category ) { - $cat_name = sanitize_term_field('name', $category->name, $category->term_id, 'category', $filter); - // for backwards compatibility - $the_list .= "\n\t\t\n"; - // forwards compatibility: use a unique identifier for each cat to avoid clashes - // http://trac.wordpress.org/ticket/5447 - $the_list .= "\n\t\tslug}\">\n"; - } - - if ( !empty($tags) ) foreach ( (array) $tags as $tag ) { - $tag_name = sanitize_term_field('name', $tag->name, $tag->term_id, 'post_tag', $filter); - $the_list .= "\n\t\t\n"; - // forwards compatibility as above - $the_list .= "\n\t\tslug}\">\n"; - } - - echo $the_list; -} - -// start catching output - ob_start(); - - -echo '\n"; - -?> - - - - - - - - - - - - - - - - - - - - - <?php bloginfo_rss('name'); ?> - - - - http://wordpress.org/?v= - - - - - - slug; ?>parent ? $cats[$c->parent]->name : ''; ?> - - - slug; ?> - -in_the_loop = true; // Fake being in the loop. - foreach ($posts as $post) { - setup_postdata($post); ?> - -<?php echo apply_filters('the_title_rss', $post->post_title); ?> - - - - - - - -post_content) ); ?> -post_excerpt) ); ?> -ID; ?> -post_date; ?> -post_date_gmt; ?> -comment_status; ?> -ping_status; ?> -post_name; ?> -post_status; ?> -post_parent; ?> -menu_order; ?> -post_type; ?> -get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_agent NOT LIKE 'Disqus/%%'", $post->ID) ); -if ( $comments ) { foreach ( $comments as $c ) { ?> - -comment_ID; ?> -comment_author); ?> -comment_author_email; ?> -comment_author_url; ?> -comment_author_IP; ?> -comment_date; ?> -comment_date_gmt; ?> -comment_content) ?> -comment_approved; ?> -comment_type; ?> -comment_parent; ?> -user_id; ?> - - - - - - - diff --git a/blog/wp-content/plugins/disqus-comment-system/images/logo.png b/blog/wp-content/plugins/disqus-comment-system/images/logo.png deleted file mode 100644 index 2f361f3..0000000 Binary files a/blog/wp-content/plugins/disqus-comment-system/images/logo.png and /dev/null differ diff --git a/blog/wp-content/plugins/disqus-comment-system/lib/api.php b/blog/wp-content/plugins/disqus-comment-system/lib/api.php deleted file mode 100644 index a97f8da..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/lib/api.php +++ /dev/null @@ -1,149 +0,0 @@ - - * @copyright 2007-2008 Big Head Labs - * @link http://disqus.com/ - * @package Disqus - * @subpackage lib - * @version 2.0 - */ - -require_once('url.php'); -require_once(ABSPATH.WPINC.'/http.php'); - -/** @#+ - * Constants - */ -/** - * Base URL for Disqus. - */ -define('ALLOWED_HTML', '



'); - -/** - * Helper methods for all of the Disqus v2 API methods. - * - * @package Disqus - * @author DISQUS.com - * @copyright 2007-2008 Big Head Labs - * @version 2.0 - */ -class DisqusAPI { - var $short_name; - var $forum_api_key; - - function DisqusAPI($short_name=NULL, $forum_api_key=NULL) { - $this->short_name = $short_name; - $this->forum_api_key = $forum_api_key; - } - - function get_forum_list($username, $password) { - $credentials = base64_encode($username . ':' . $password); - $response = dsq_urlopen(DISQUS_API_URL . '/api/v2/get_forum_list/', array( - 'credentials' => $credentials, - 'response_type' => 'php' - )); - $data = unserialize($response['data']); - if(!$data || $data['stat'] == 'fail') { - if($data['err']['code'] == 'bad-credentials') { - return -2; - } else { - return -1; - } - } - return $data['forums']; - } - - function get_forum_api_key($username, $password, $short_name) { - $credentials = base64_encode($username . ':' . $password); - $response = dsq_urlopen(DISQUS_API_URL . '/api/v2/get_forum_api_key/', array( - 'credentials' => $credentials, - 'short_name' => $short_name, - 'response_type' => 'php' - )); - $data = unserialize($response['data']); - if(!$data || $data['stat'] == 'fail') { - if($data['err']['code'] == 'bad-credentials') { - return -2; - } else { - return -1; - } - } - - return $data['forum_api_key']; - } - - function get_thread($post, $permalink, $title, $excerpt) { - $title = strip_tags($title, ALLOWED_HTML); - $title = urlencode($title); - - $excerpt = strip_tags($excerpt, ALLOWED_HTML); - $excerpt = urlencode($excerpt); - $excerpt = substr($excerpt, 0, 300); - - $thread_meta = $post->ID . ' ' . $post->guid; - - $response = @dsq_urlopen(DISQUS_API_URL . '/api/v2/get_thread/', array( - 'short_name' => $this->short_name, - 'thread_url' => $permalink, - 'thread_meta' => $thread_meta, - 'response_type' => 'php', - 'title' => $title, - 'message' => $excerpt, - 'api_key' => $this->forum_api_key, - 'source' => 'DsqWordPress20', - 'state_closed' => ($post->comment_status == 'closed') ? '1' : '0' - )); - - $data = unserialize($response['data']); - if(!$data || $data['stat'] == 'fail') { - if($data['err']['code'] == 'bad-key') { - return -2; - } else { - return -1; - } - } - - return $data; - } - - function import_wordpress_comments($wxr) { - $http = new WP_Http(); - $response = $http->request( - DISQUS_IMPORTER_URL . '/api/import-wordpress-comments/', - array( - 'method' => 'POST', - 'body' => array( - 'forum_url' => $this->short_name, - 'forum_api_key' => $this->forum_api_key, - 'response_type' => 'php', - 'wxr' => $wxr, - ) - ) - ); - $data = unserialize($response['body']); - if (!$data || $data['stat'] == 'fail') { - return -1; - } - return $data['import_id']; - } - - function get_import_status($import_id) { - $response = @dsq_urlopen(DISQUS_IMPORTER_URL . '/api/get-import-status/', array( - 'forum_url' => $this->short_name, - 'forum_api_key' => $this->forum_api_key, - 'import_id' => $import_id, - 'response_type' => 'php' - )); - - $data = unserialize($response['data']); - if(!$data || $data['stat'] == 'fail') { - return -1; - } - return $data; - } - -} - -?> diff --git a/blog/wp-content/plugins/disqus-comment-system/lib/url.php b/blog/wp-content/plugins/disqus-comment-system/lib/url.php deleted file mode 100644 index 63f3f1e..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/lib/url.php +++ /dev/null @@ -1,265 +0,0 @@ -$value) { - $postdata_str .= urlencode($key) . '=' . urlencode($value) . '&'; - } - } - - return $postdata_str; -} - - -function dsq_get_post_content($boundary, $postdata, $file_name, $file_field) { - if(!$file_name || !$file_field) { - return dsq_get_query_string($postdata); - } - - $content = array(); - $content[] = '--' . $boundary; - foreach($postdata as $key=>$value) { - $content[] = 'Content-Disposition: form-data; name="' . $key . '"' . "\r\n\r\n" . $value; - $content[] = '--' . $boundary; - } - $content[] = 'Content-Disposition: form-data; name="' . $file_field . '"; filename="' . $file_name . '"'; - // HACK: We only need to handle text/plain files right now. - $content[] = "Content-Type: text/plain\r\n"; - $content[] = file_get_contents($file_name); - $content[] = '--' . $boundary . '--'; - $content = implode("\r\n", $content); - return $content; -} - - -function dsq_get_http_headers_for_request($boundary, $content, $file_name, $file_field) { - $headers = array(); - $headers[] = 'User-Agent: ' . USER_AGENT; - $headers[] = 'Connection: close'; - if($content) { - $headers[] = 'Content-Length: ' . strlen($content); - if($file_name && $file_field) { - $headers[] = 'Content-Type: multipart/form-data; boundary=' . $boundary; - } else { - $headers[] = 'Content-Type: application/x-www-form-urlencoded'; - } - } - return implode("\r\n", $headers); -} - - -function _dsq_curl_urlopen($url, $postdata, &$response, $file_name, $file_field) { - $c = curl_init($url); - $postdata_str = dsq_get_query_string($postdata); - - $c_options = array( - CURLOPT_USERAGENT => USER_AGENT, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_POST => ($postdata_str ? 1 : 0), - CURLOPT_HTTPHEADER => array('Expect:') - ); - if($postdata) { - $c_options[CURLOPT_POSTFIELDS] = $postdata_str; - } - if($file_name && $file_field) { - $postdata[$file_field] = '@' . $file_name; - $c_options[CURLOPT_POSTFIELDS] = $postdata; - $c_options[CURLOPT_RETURNTRANSFER] = 1; - } - curl_setopt_array($c, $c_options); - - $response['data'] = curl_exec($c); - $response['code'] = curl_getinfo($c, CURLINFO_HTTP_CODE); -} - - -function _dsq_fsockopen_urlopen($url, $postdata, &$response, $file_name, $file_field) { - $buf = ''; - $req = ''; - $length = 0; - $boundary = '----------' . md5(time()); - $postdata_str = dsq_get_post_content($boundary, $postdata, $file_name, $file_field); - $url_pieces = parse_url($url); - - // Set default port for supported schemes if none is provided. - if(!isset($url_pieces['port'])) { - switch($url_pieces['scheme']) { - case 'http': - $url_pieces['port'] = 80; - break; - case 'https': - $url_pieces['port'] = 443; - $url_pieces['host'] = 'ssl://' . $url_pieces['host']; - break; - } - } - - // Set default path if trailing slash is not provided. - if(!isset($url_pieces['path'])) { $url_pieces['path'] = '/'; } - - // Determine if we need to include the port in the Host header or not. - if(($url_pieces['port'] == 80 && $url_pieces['scheme'] == 'http') || - ($url_pieces['port'] == 443 && $url_pieces['scheme'] == 'https')) { - $host = $url_pieces['host']; - } else { - $host = $url_pieces['host'] . ':' . $url_pieces['port']; - } - - $fp = @fsockopen($url_pieces['host'], $url_pieces['port']); - if(!$fp) { return false; } - $req .= ($postdata_str ? 'POST' : 'GET') . ' ' . $url_pieces['path'] . " HTTP/1.1\r\n"; - $req .= 'Host: ' . $host . "\r\n"; - $req .= dsq_get_http_headers_for_request($boundary, $postdata_str, $file_name, $file_field); - if($postdata_str) { - $req .= "\r\n\r\n" . $postdata_str; - } - $req .= "\r\n\r\n"; - - fwrite($fp, $req); - while(!feof($fp)) { - $buf .= fgets($fp, 4096); - } - - // Parse headers from the response buffers. - list($headers, $response['data']) = explode("\r\n\r\n", $buf, 2); - - // Get status code from headers. - $headers = explode("\r\n", $headers); - list($unused, $response['code'], $unused) = explode(' ', $headers[0], 3); - $headers = array_slice($headers, 1); - - // Convert headers into associative array. - foreach($headers as $unused=>$header) { - $header = explode(':', $header); - $header[0] = trim($header[0]); - $header[1] = trim($header[1]); - $headers[strtolower($header[0])] = strtolower($header[1]); - } - - // If transfer-coding is set to chunked, we need to join the message body - // together. - if(isset($headers['transfer-encoding']) && 'chunked' == $headers['transfer-encoding']) { - $chunk_data = $response['data']; - $joined_data = ''; - while(true) { - // Strip length from body. - list($chunk_length, $chunk_data) = explode("\r\n", $chunk_data, 2); - $chunk_length = hexdec($chunk_length); - if(!$chunk_length || !strlen($chunk_data)) { break; } - - $joined_data .= substr($chunk_data, 0, $chunk_length); - $chunk_data = substr($chunk_data, $chunk_length + 1); - $length += $chunk_length; - } - $response['data'] = $joined_data; - } else { - $length = $headers['content-length']; - } -} - - -function _dsq_fopen_urlopen($url, $postdata, &$response, $file_name, $file_field) { - $params = array(); - if($file_name && $file_field) { - $boundary = '----------' . md5(time()); - $content = dsq_get_post_content($boundary, $postdata, $file_name, $file_field); - $header = dsq_get_http_headers_for_request($boundary, $content, $file_name, $file_field); - - $params = array('http' => array( - 'method' => 'POST', - 'header' => $header, - 'content' => $content, - )); - } else { - if($postdata) { - $params = array('http' => array( - 'method' => 'POST', - 'header' => 'Content-Type: application/x-www-form-urlencoded', - 'content' => dsq_get_query_string($postdata) - )); - } - } - - ini_set('user_agent', USER_AGENT); - $ctx = stream_context_create($params); - $fp = fopen($url, 'rb', false, $ctx); - if(!$fp) { - return false; - } - - // Get status code from headers. - list($unused, $response['code'], $unused) = explode(' ', $http_response_header[0], 3); - $headers = array_slice($http_response_header, 1); - - // Convert headers into associative array. - foreach($headers as $unused=>$header) { - $header = explode(':', $header); - $header[0] = trim($header[0]); - $header[1] = trim($header[1]); - $headers[strtolower($header[0])] = strtolower($header[1]); - } - - $response['data'] = stream_get_contents($fp); -} - - -/** - * Wrapper to provide a single interface for making an HTTP request. - * - * Attempts to use cURL, fopen(), or fsockopen(), whichever is available - * first. - * - * @param string $url URL to make request to. - * @param array $postdata (optional) If postdata is provided, the request - * method is POST with the key/value pairs as - * the data. - * @param array $file (optional) Should provide associative array - * with two keys: name and field. Name should - * be the name of the file and field is the name - * of the field to POST. - */ -function dsq_urlopen($url, $postdata=false, $file=false) { - $response = array( - 'data' => '', - 'code' => 0 - ); - - if($file) { - extract($file, EXTR_PREFIX_ALL, 'file'); - } - if(!$file_name || !$file_field) { - $file_name = false; - $file_field = false; - } - -// - - // Try curl, fsockopen, fopen + stream (PHP5 only), exec wget - if(function_exists('curl_init')) { - if (!function_exists('curl_setopt_array')) { - function curl_setopt_array(&$ch, $curl_options) - { - foreach ($curl_options as $option => $value) { - if (!curl_setopt($ch, $option, $value)) { - return false; - } - } - return true; - } - } - _dsq_curl_urlopen($url, $postdata, $response, $file_name, $file_field); - } else if(ini_get('allow_url_fopen') && function_exists('stream_get_contents')) { - _dsq_fopen_urlopen($url, $postdata, $response, $file_name, $file_field); - } else { - // TODO: Find the failure condition for fsockopen() (sockets?) - _dsq_fsockopen_urlopen($url, $postdata, $response, $file_name, $file_field); - } - -// returns array with keys data and code (from headers) - - return $response; -} -?> diff --git a/blog/wp-content/plugins/disqus-comment-system/manage.php b/blog/wp-content/plugins/disqus-comment-system/manage.php deleted file mode 100644 index 017bc3e..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/manage.php +++ /dev/null @@ -1,272 +0,0 @@ -get_forum_api_key($_POST['dsq_username'], $_POST['dsq_password'], $_POST['dsq_forum_url']); - update_option('disqus_forum_url', $_POST['dsq_forum_url']); - - if ( is_numeric($api_key) && $api_key < 0 ) { - update_option('disqus_replace', 'replace'); - dsq_manage_dialog('There was an error completing the installation of Disqus. If you are still having issues, refer to the WordPress help page.', true); - } else { - update_option('disqus_api_key', $api_key); - update_option('disqus_replace', 'all'); - } - - if (!empty($_POST['disqus_partner_key'])) { - $partner_key = trim(stripslashes($_POST['disqus_partner_key'])); - if (!empty($partner_key)) { - update_option('disqus_partner_key', $partner_key); - } - } -} - -// Handle advanced options. -if ( isset($_POST['disqus_forum_url']) && isset($_POST['disqus_replace']) ) { - $disqus_forum_url = $_POST['disqus_forum_url']; - if ( $dot_pos = strpos($disqus_forum_url, '.') ) { - $disqus_forum_url = substr($disqus_forum_url, 0, $dot_pos); - } - update_option('disqus_forum_url', $disqus_forum_url); - update_option('disqus_partner_key', trim(stripslashes($_POST['disqus_partner_key']))); - update_option('disqus_replace', $_POST['disqus_replace']); - update_option('disqus_cc_fix', isset($_POST['disqus_cc_fix'])); - dsq_manage_dialog('Your settings have been changed.'); -} - -// Get installation step process (or 0 if we're already installed). -$step = @intval($_GET['step']); -$step = ($step > 0 && isset($_POST['dsq_username'])) ? $step : 1; -$step = (dsq_is_installed()) ? 0 : $step; - -if ( 2 == $step && isset($_POST['dsq_username']) && isset($_POST['dsq_password']) ) { - $dsq_sites = $dsq_api->get_forum_list($_POST['dsq_username'], $_POST['dsq_password']); - if ( $dsq_sites < 0 ) { - $step = 1; - if ( -2 == $dsq_sites ) { - dsq_manage_dialog('Invalid password.', true); - } else { - dsq_manage_dialog('Unexpected error.', true); - } - } -} - -?> -
-
    -
  • -
  • Advanced Options
  • -
- -
- -
-

Install Disqus Comments

- -
- - - - - - -
Select a website - $dsq_site ): -?> - - -
- -
- Or register a new one on the Disqus website. -
- -

- - "> - -

-
-
- -
-

Install Disqus Comments

- -
- - - - - - - - - - -
Username - - (don't have a Disqus Profile yet?) -
Password - - (forgot your password?) -
- -

- -

- - -
-
- -
-

Comments

- -
- -
- - - - -
diff --git a/blog/wp-content/plugins/disqus-comment-system/readme.txt b/blog/wp-content/plugins/disqus-comment-system/readme.txt deleted file mode 100644 index 9ba5efa..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/readme.txt +++ /dev/null @@ -1,70 +0,0 @@ -=== Disqus Comment System === -Contributors: disqus, alexkingorg, crowdfavorite -Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget -Requires at least: 2.8 -Tested up to: 2.9.2 -Stable tag: 2.33.8752 - -The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. - -== Description == - -Disqus, pronounced "discuss", is a service and tool for web comments and -discussions. Disqus makes commenting easier and more interactive, -while connecting websites and commenters across a thriving discussion -community. - -The Disqus for WordPress plugin seamlessly integrates using the Disqus API and by syncing with WordPress comments. - -= Disqus for WordPress = - -* Uses the Disqus API -* Comments indexable by search engines (SEO-friendly) -* Support for importing existing comments -* Auto-sync (backup) of comments with Disqus and WordPress database - -= Disqus Features = - -* Threaded comments and replies -* Notifications and reply by email -* Subscribe and RSS options -* Aggregated comments and social mentions -* Powerful moderation and admin tools -* Full spam filtering, blacklists and whitelists -* Support for Disqus community widgets -* Connected with a large discussion community -* Increased exposure and readership - -== Installation == - -**NOTE: It is recommended that you backup your database before installing the plugin.** - -1. Unpack archive to this archive to the 'wp-content/plugins/' directory inside - of WordPress - - * Maintain the directory structure of the archive (all extracted files - should exist in 'wp-content/plugins/disqus-comment-system/' - -2. From your blog administration, click on Comments to change settings - (WordPress 2.0 users can find the settings under Options > Disqus.) - -= More documentation = - -Go to [http://disqus.com/help/wordpress](http://disqus.com/help/wordpress) - -== Upgrading == - -1. Replace the old plugin with the new plugin (the plugin must stay in - the disqus directory). - -2. Your blog will be in legacy mode until you complete the configuration. - This just means that it is using JavaScript to pull the comments instead - of the API. - -== Support == - -* Visit http://disqus.com/help/wordpress for help documentation. - -* Visit http://help.disqus.com for help from our support team. - -* Disqus also recommends the [WordPress HelpCenter](http://wphelpcenter.com/) for extended help. Disqus is not associated with the WordPress HelpCenter in any way. diff --git a/blog/wp-content/plugins/disqus-comment-system/scripts/manage.js b/blog/wp-content/plugins/disqus-comment-system/scripts/manage.js deleted file mode 100644 index 4a64943..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/scripts/manage.js +++ /dev/null @@ -1,38 +0,0 @@ -var dsq_old_onload = window.onload; - -function dsq_tab_func(clicked_tab) { - function _dsq_tab_func(e) { - var tabs = document.getElementById('dsq-tabs').getElementsByTagName('li'); - var contents = document.getElementById('dsq-wrap').getElementsByTagName('div'); - - for(var i = 0; i < tabs.length; i++) { - tabs[i].className = ''; - } - - for(var i = 0; i < contents.length; i++) { - if(contents[i].className == 'dsq-content') { - contents[i].style.display = 'none'; - } - } - - document.getElementById('dsq-tab-' + clicked_tab).className = 'selected'; - document.getElementById('dsq-' + clicked_tab).style.display = 'block'; - - } - - return _dsq_tab_func; -} - -window.onload = function(e) { - // Tabs have an ID prefixed with "dsq-tab-". - // Content containers have an ID prefixed with "dsq-" and a class name of "dsq-content". - var tabs = document.getElementById('dsq-tabs').getElementsByTagName('li'); - - for(var i = 0; i < tabs.length; i++) { - tabs[i].onclick = dsq_tab_func(tabs[i].id.substr(tabs[i].id.lastIndexOf('-') + 1)); - } - - if(dsq_old_onload) { - dsq_old_onload(e); - } -} diff --git a/blog/wp-content/plugins/disqus-comment-system/styles/manage-pre25.css b/blog/wp-content/plugins/disqus-comment-system/styles/manage-pre25.css deleted file mode 100644 index 47950c1..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/styles/manage-pre25.css +++ /dev/null @@ -1,67 +0,0 @@ -/* Selectors required for pre-WordPress 2.5 */ - -.form-table { - border-collapse: collapse; - margin-top: 1em; - width: 100%; - color: #333; -} - -.form-table tr { - background-color: #eaf3fa; -} - -.form-table td { - margin-bottom: 9px; - padding: 10px; - line-height: 20px; - font-size: 11px; - border-bottom-width: 8px; - border-bottom-style: solid; - border-color: #fff; -} - -.form-table th { - vertical-align: top; - text-align: left; - padding: 10px; - width: 150px; - border-bottom-width: 8px; - border-bottom-style: solid; - border-color: #fff; -} - -.form-table th.th-full { - width: auto; -} - -.form-table input, .form-table textarea { - border-width: 1px; - border-style: solid; -} - -.form-table div.color-option { - display: block; - clear: both; -} - -.form-table input.tog { - margin-top: 2px; - margin-right: 2px; - float: left; -} - -.form-table table.color-palette { - vertical-align: bottom; - float: left; - margin: -3px 3px 8px; -} - -.form-table .color-palette td { - border-bottom: none; - border: 1px solid #fff; - font-size: 1px; - line-height: 1px; -} - -#disqus_warning{ background-color:#ff0000; } diff --git a/blog/wp-content/plugins/disqus-comment-system/styles/manage.css b/blog/wp-content/plugins/disqus-comment-system/styles/manage.css deleted file mode 100644 index 7cf762a..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/styles/manage.css +++ /dev/null @@ -1,35 +0,0 @@ -ul#dsq-tabs li { -} -ul#dsq-tabs li.selected { - border-bottom: 3px solid #ffa100; -} -ul#dsq-tabs li { - float: left; - color: #333; - padding: 0.25em; - height: 16px; - cursor: pointer; - margin-right: 8px; -} - -ul#dsq-tabs { - display: block; - height: 20px; - list-style: none; - margin: 15px 0; - padding: 0; - border: 0; - position: absolute; - right: 10px; -} - -select.disqus-replace { - border-color: #C6D9E9; -} - -.dsq-content h2 { - background: url(../images/logo.png) no-repeat; - line-height: 41px; - margin: 15px 0 10px; - padding: 0 0 0 150px; -} \ No newline at end of file diff --git a/blog/wp-content/plugins/disqus-comment-system/xd_receiver.htm b/blog/wp-content/plugins/disqus-comment-system/xd_receiver.htm deleted file mode 100644 index 72edcbc..0000000 --- a/blog/wp-content/plugins/disqus-comment-system/xd_receiver.htm +++ /dev/null @@ -1 +0,0 @@ - diff --git a/blog/wp-content/plugins/extra-feed-links/admin.php b/blog/wp-content/plugins/extra-feed-links/admin.php deleted file mode 100755 index 25aee43..0000000 --- a/blog/wp-content/plugins/extra-feed-links/admin.php +++ /dev/null @@ -1,120 +0,0 @@ -options = $GLOBALS['EFL_options']; - - $this->defaults = array( - 'home' => array(FALSE, '%site_title% Comments'), - 'comments' => array(TRUE, 'Comments: %title%'), - 'category' => array(TRUE, 'Category: %title%'), - 'tag' => array(TRUE, 'Tag: %title%'), - 'author' => array(TRUE, 'Author: %title%'), - 'search' => array(TRUE, 'Search: %title%') - ); - - $this->args = array( - 'page_title' => 'Extra Feed Links', - 'short_title' => 'Extra Feed Links', - 'page_slug' => 'extra-feed-links' - ); - - $this->nonce = 'efl-settings'; - } - - protected function form_handler() { - if ( empty($_POST['action']) ) - return false; - - check_admin_referer($this->nonce); - - // Update options - if ( 'Save Changes' == $_POST['action'] ) { - foreach (array_keys($this->options->get()) as $name) { - $new_format[$name][0] = $_POST['show-' . $name]; - $new_format[$name][1] = $_POST['format-' . $name]; - } - - $this->options->update($new_format); - $this->admin_msg('Settings saved.'); - } - - // Reset options - if ( 'Reset' == $_POST['action'] ) { - $this->options->reset(); - $this->admin_msg('Settings reset.'); - } - } - - public function page_head() { -?> - -page_header(); -?> -

The table below allows you to select which page types get an extra header link and the format of the link text.

- -
-
- nonce); ?> - - - - - - - - - - options->get() as $name => $value) { ?> - - - - - - - -
Page typeText format
input(array( - 'type' => 'checkbox', - 'names' => 'show-'.$name, - 'desc_pos' => 'none' - ), array('show-'.$name => $value[0])); - ?>input(array( - 'type' => 'text', - 'names' => 'format-'.$name, - 'desc_pos' => 'none' - ), array('format-'.$name => $value[1])); - ?>
- -
-
- - -
-
- -
-
- -
-

Available substitution tags:

-
    -
  • %title% - displays the corresponding title for each page type
  • -
  • %site_title% - displays the title of the site
  • -
-
-page_footer(); - } -} - diff --git a/blog/wp-content/plugins/extra-feed-links/inc/scbForms.php b/blog/wp-content/plugins/extra-feed-links/inc/scbForms.php deleted file mode 100644 index 97fe41c..0000000 --- a/blog/wp-content/plugins/extra-feed-links/inc/scbForms.php +++ /dev/null @@ -1,189 +0,0 @@ - any valid type - 'names' => string | array - 'values' => string | array (default: 1 or $options['name']) - 'check' => true | false (default: true) - 'extra' => string (default: class="widefat") - 'desc' => string (default: name) - 'desc_pos' => 'before' | 'after' | 'none' (default: after) - ); - $options = array('name' => 'value'...) - */ - - public function input($args, $options = array()) { - $token = '%input%'; - - extract(wp_parse_args($args, array( - 'desc_pos' => 'after', - 'check' => true, - 'extra' => 'class="widefat"' - ))); - - // Check required fields - if ( empty($type) ) - trigger_error('No type specified', E_USER_WARNING); - - if ( empty($names) ) { - trigger_error('No name specified', E_USER_WARNING); - return; - } - - // Check for defined options - if ( $check && 'submit' != $type && !empty($options) ) - self::check_names($names, $options); - - $f1 = is_array($names); - $f2 = is_array($values); - - // Set default values - if ( !isset($values) ) - if ( 'text' == $type && !$f1 ) - $values = stripslashes(wp_specialchars($options[$names], ENT_QUOTES)); - elseif ( in_array($type, array('checkbox', 'radio')) ) - $values = true; - - // Expand names or values - if ( !$f1 && !$f2 ) - $a = array($names => $values); - elseif ( $f1 && !$f2 ) - $a = array_fill_keys($names, $values); - elseif ( !$f1 && $f2 ) - $a = array_fill_keys($values, $names); - else - $a = array_combine($names, $values); - - // Determine what goes where - if ( !$f1 && $f2 ) { - $i1 = 'val'; - $i2 = 'name'; - } else { - $i1 = 'name'; - $i2 = 'val'; - } - - if ( $f1 || $f2 ) - $l1 = 'name'; - else - $l1 = 'desc'; - - // Generate output - foreach ( $a as $name => $val ) { - // Build extra string - $extra_s = $extra; - - if ( in_array($type, array('checkbox', 'radio')) && $options[$$i1] == $$i2) - $extra_s .= " checked='checked'"; - - // Build the item - $input = " "; - - // Add description - $desc = $$l1; - $desc = str_replace('[]', '', $desc); - if ( FALSE == stripos($desc, $token) ) - if ( 'before' == $desc_pos ) - $desc .= ' ' . $token; - elseif ( 'after' == $desc_pos ) - $desc = $token . ' ' . $desc; - $desc = str_replace($token, $input, $desc); - $desc = trim($desc); - - // Add label - if ( 'none' == $desc_pos || empty($desc) ) - $output[] = $input . "\n"; - else - $output[] = "\n"; - } - - return implode("\n", $output); - } - - public static function select($args, $options) { - extract(wp_parse_args($args, array( - 'name' => '', - 'selected' => NULL, - 'extra' => '' - ))); - - if ( empty($name) ) - trigger_error('No name specified', E_USER_NOTICE); - - if ( !is_array($options) ) { - trigger_error("Second argument is expected to be an associative array", E_USER_WARNING); - return; - } - - foreach ( $options as $key => $value ) { - $extra_s = $extra; - if ( $name === $selected ) - $extra_s = " selected='selected'"; - else - $extra_s = ""; - - $opts .= "\t\n"; - } - - return "\n"; - } - - // Creates a textarea - public static function textarea($args, $content) { - extract(wp_parse_args($args, array( - 'name' => '', - 'extra' => 'class="widefat"', - 'escaped' => 'false' - ))); - - if ( !$escaped ) - $content = stripslashes(wp_specialchars($content, ENT_QUOTES)); - - if ( empty($name) ) - trigger_error('No name specified', E_USER_NOTICE); - - return "\n"; - } - - // Adds a form around the $content, including a hidden nonce field - public function form_wrap($content, $nonce = 'update_options') { - $output .= "\n
\n"; - $output .= $content; - $output .= wp_nonce_field($action = $nonce, $name = "_wpnonce", $referer = true , $echo = false); - $output .= "\n
\n"; - - return $output; - } - - -//_____HELPER METHODS (SHOULD NOT BE CALLED DIRECTLY)_____ - - - // Checks if selected $names have equivalent in $options. Used by form_row() - protected static function check_names($names, $options) { - $names = (array) $names; - - foreach ( $names as $i => $name ) - $names[$i] = str_replace('[]', '', $name); - - foreach ( array_diff($names, array_keys($options)) as $key ) - trigger_error("Option not defined: {$key}", E_USER_WARNING); - } -} - -// < PHP 5.2 -if ( !function_exists('array_fill_keys') ) : -function array_fill_keys($keys, $value) { - $r = array(); - - foreach($keys as $key) - $r[$key] = $value; - - return $r; -} -endif; - diff --git a/blog/wp-content/plugins/extra-feed-links/inc/scbOptions.php b/blog/wp-content/plugins/extra-feed-links/inc/scbOptions.php deleted file mode 100755 index bc285ed..0000000 --- a/blog/wp-content/plugins/extra-feed-links/inc/scbOptions.php +++ /dev/null @@ -1,67 +0,0 @@ -key = $key; - $this->data = get_option($this->key); - } - - public function setup($file, $defaults) { - $this->defaults = $defaults; - register_activation_hook($file, array($this, 'reset'), false); - register_uninstall_hook($file, array($this, 'delete')); - } - - // Get all data or a certain field - public function get($field = '') { - if ( empty($field) === true ) - return $this->data; - - return @$this->data[$field]; - } - - // Update a portion of the data - public function update_part($newdata) { - if ( !is_array($this->data) || !is_array($newdata) ) - return false; - - $this->update(array_merge($this->data, $newdata)); - } - - // Update option - public function update($newdata) { - if ( $this->data === $newdata ) - return; - - $this->data = $newdata; - - add_option($this->key, $this->data) or - update_option($this->key, $this->data); - } - - // Reset option to defaults - public function reset($override = true) { - if ( !$override && is_array($this->defaults) && is_array($this->data) ) - $newdata = array_merge($this->defaults, $this->data); - else - $newdata = $this->defaults; - - $this->update($newdata); - } - - // Delete option - public function delete() { - delete_option($this->key); - } -} - -// < WP 2.7 -if ( !function_exists('register_uninstall_hook') ) : -function register_uninstall_hook() {} -endif; diff --git a/blog/wp-content/plugins/extra-feed-links/inc/scbOptionsPage.php b/blog/wp-content/plugins/extra-feed-links/inc/scbOptionsPage.php deleted file mode 100644 index 155260b..0000000 --- a/blog/wp-content/plugins/extra-feed-links/inc/scbOptionsPage.php +++ /dev/null @@ -1,195 +0,0 @@ - '', - 'short_title' => '', - 'page_slug' => '', - 'type' => 'settings' - ); - - // Hook string created at page init - protected $pagehook; - - // Nonce string - protected $nonce; - - // Plugin dir url - protected $plugin_url; - - // scbOptions object holder - protected $options; - - // Form actions - protected $actions = array(); - - -//_____MAIN METHODS_____ - - - // Main constructor - public function __construct($file = '') { - $this->set_url($file); - - $this->setup(); - $this->check_args(); - - if ( isset($this->options) ) - $this->options->setup($file, $this->defaults); - - add_action('admin_menu', array($this, 'page_init')); - } - - // This is where all the page args goes - abstract protected function setup(); - - // This is where the css and js go - public function page_head() {} - - // This is where the page content goes - abstract public function page_content(); - - // To be used in ::page_head() - protected function admin_msg($msg, $class = "updated") { - echo "

$msg

\n"; - } - - // Wraps a string in a \n"; - } - - // Wraps a string in a \n"; - } - - // Generates a standard page head - protected function page_header() { - $this->form_handler(); - - echo "
\n"; - echo "

".$this->args['page_title']."

\n"; - } - - // Generates a standard page footer - protected function page_footer() { - echo "
\n"; - } - - public function form_wrap($content) { - return parent::form_wrap($content, $this->nonce); - } - - // Wrap a field in a table row - public function form_row($args, $options) { - return "\n\n\t{$args['title']}\n\t\n\t\t". parent::input($args, $options) ."\n\t\n\n"; - } - - // Generates multiple rows and wraps them in a form table - protected function form_table($rows, $action = 'Save Changes') { - $output .= "\n"; - - $options = $this->options->get(); - foreach ( $rows as $row ) - $output .= $this->form_row($row, $options); - - $output .= "\n
\n"; - $output .= $this->submit_button($action); - - return parent::form_wrap($output, $this->nonce); - } - - // Generates a submit form button - protected function submit_button($action = 'Save Changes', $class = "button") { - if ( in_array($action, $this->actions) ) - trigger_error("Duplicate action for submit button: {$action}", E_USER_WARNING); - - $args = array( - 'type' => 'submit', - 'names' => 'action', - 'values' => $action, - 'extra' => '', - 'desc_pos' => 'none' - ); - - if ( ! empty($class) ) - $args['extra'] = "class='{$class}'"; - - $this->actions[] = $action; - $output .= "

\n"; - $output .= parent::input($args); - $output .= "

\n"; - - return $output; - } - - -//_____HELPER METHODS (SHOULD NOT BE CALLED DIRECTLY)_____ - - - // Checks and sets default args - protected function check_args() { - if ( empty($this->args['page_title']) ) - trigger_error('Page title cannot be empty', E_USER_ERROR); - - if ( empty($this->args['type']) ) - $this->args['type'] = 'settings'; - - if ( empty($this->args['short_title']) ) - $this->args['short_title'] = $this->args['page_title']; - - if ( empty($this->args['page_slug']) ) - $this->args['page_slug'] = sanitize_title_with_dashes($this->args['short_title']); - - if ( empty($this->nonce) ) - $this->nonce = $this->args['page_slug']; - } - - // Registers a page - public function page_init() { - if ( !current_user_can('manage_options') ) - return false; - - extract($this->args); - - if ( 'settings' == $type ) - $this->pagehook = add_options_page($short_title, $short_title, 8, $page_slug, array($this, 'page_content')); - elseif ( 'tools' == $type ) - $this->pagehook = add_management_page($short_title, $short_title, 8, $page_slug, array($this, 'page_content')); - else - trigger_error("Unknown page type: $page", E_USER_WARNING); - - add_action('admin_print_styles-' . $this->pagehook, array($this, 'page_head')); - } - - // Update options - protected function form_handler() { - if ( 'Save Changes' != $_POST['action'] ) - return false; - - check_admin_referer($this->nonce); - - foreach ( $this->options->get() as $name => $value ) - $new_options[$name] = $_POST[$name]; - - $this->options->update($new_options); - - $this->admin_msg('Settings saved.'); - } - - // Set plugin_dir - protected function set_url($file) { - if ( function_exists('plugins_url') ) - $this->plugin_url = plugins_url(plugin_basename(dirname($file))); - else - // < WP 2.6 - $this->plugin_url = get_option('siteurl') . '/wp-content/plugins/' . plugin_basename(dirname($file)); - } -} diff --git a/blog/wp-content/plugins/extra-feed-links/main.php b/blog/wp-content/plugins/extra-feed-links/main.php deleted file mode 100755 index d4e456a..0000000 --- a/blog/wp-content/plugins/extra-feed-links/main.php +++ /dev/null @@ -1,142 +0,0 @@ -. -*/ - -class extraFeedLink { - var $format; - var $format_name; - var $url; - var $title; - var $text; - - function __construct() { - $this->format = $GLOBALS['EFL_options']->get(); - add_action('wp_head', array($this, 'head_link')); - } - - function head_link() { - $this->generate(); - - if( !$this->url || !$this->text ) - return; - - echo "\n" . '' . "\n"; - } - - function theme_link($input) { - $this->generate(TRUE); - - if( !$this->url ) - return; - - if ( substr($input, 0, 4) == 'http' ) - echo 'rss icon'; - elseif ( $input == '' ) - echo '' . $this->text . ''; - elseif ( $input == 'raw' ) - echo $this->url; - else - echo '' . $input . ''; - } - - function generate($for_theme = FALSE) { - $this->title = $this->url = NULL; - - if ( is_home() && ($this->format['home'][0] || $for_theme) ) { - $this->url = get_bloginfo('comments_rss2_url'); - $this->format_name = 'home'; - } - elseif ( (is_single() || is_page()) && ($this->format['comments'][0] || $for_theme) ) { - global $post; - if ( $post->comment_status == 'open' ) { - $this->url = get_post_comments_feed_link($post->ID); - $this->title = $post->post_title; - $this->format_name = 'comments'; - } - } - elseif ( is_category() && ($this->format['category'][0] || $for_theme) ) { - global $wp_query; - $cat_obj = $wp_query->get_queried_object(); - - $this->url = get_category_feed_link($cat_obj->term_id); - $this->title = $cat_obj->name; - $this->format_name = 'category'; - } - elseif ( is_tag() && ($this->format['tag'][0] || $for_theme) ) { - global $wp_query; - $tag_obj = $wp_query->get_queried_object(); - - $this->url = get_tag_feed_link($tag_obj->term_id); - $this->title = $tag_obj->name; - $this->format_name = 'tag'; - } - elseif ( is_author() && ($this->format['author'][0] || $for_theme) ) { - global $wp_query; - $author_obj = $wp_query->get_queried_object(); - - $this->url = get_author_feed_link($author_obj->ID); - $this->title = $author_obj->user_nicename; - $this->format_name = 'author'; - } - elseif ( is_search() && ($this->format['search'][0] || $for_theme) ) { - $search = attribute_escape(get_search_query()); - - $this->url = get_search_feed_link($search); - $this->title = $search; - $this->format_name = 'search'; - } - - // Set the appropriate format - $this->text = $this->format[$this->format_name][1]; - - // Convert substitution tags - $this->text = str_replace('%title%', $this->title, $this->text); - $this->text = str_replace('%site_title%', get_option('blogname'), $this->text); - } -} - -// Init -function efl_init() { - if ( !class_exists('scbOptions_06') ) - require_once(dirname(__FILE__) . '/inc/scbOptions.php'); - - $GLOBALS['EFL_options'] = new scbOptions_06('efl-format'); - $GLOBALS['extraFeedLink'] = new extraFeedLink(); - - if ( is_admin() ) { - require_once (dirname(__FILE__) . '/admin.php'); - new extraFeedLinkAdmin(__FILE__); - } -} - -efl_init(); - -remove_action('wp_head', 'feed_links_extra', 3); - -// Template tag -function extra_feed_link($input = '') { - global $extraFeedLink; - - $extraFeedLink->theme_link($input); -} diff --git a/blog/wp-content/plugins/extra-feed-links/readme.txt b/blog/wp-content/plugins/extra-feed-links/readme.txt deleted file mode 100644 index e58e8ed..0000000 --- a/blog/wp-content/plugins/extra-feed-links/readme.txt +++ /dev/null @@ -1,66 +0,0 @@ -=== Extra Feed Links === -Contributors: scribu -Donate link: http://scribu.net/wordpress -Tags: archive, comments, feed, rss, aton -Requires at least: 2.5 -Tested up to: 2.8 -Stable tag: 1.1.5.1 - -Adds extra feed auto-discovery links to various page types (categories, tags, search results etc.) - -== Description == - -This plugin adds feed auto-discovery links to any page type: - -* Category page -* Tag page -* Search page -* Author page -* Comments feed for single articles and pages - -It also has a template tag that you can use in your theme. - -== Installation == - -1. Unzip the archive and put the folder into your plugins folder (/wp-content/plugins/). -1. Activate the plugin from the Plugins admin menu. -1. Customize the links in the settings page. - -**Usage** - -You can use `extra_feed_link()` inside your theme to display a link to the feed corresponding to the type of page: - -* `` (creates a link with the default text) -* `` (creates a link with the text you choose) -* `` (creates an image tag linked to the feed URL) -* `` (just displays the feed URL) - -== Frequently Asked Questions == - -= "Parse error: syntax error, unexpected T_CLASS..." Help! = - -Make sure your new host is running PHP 5. Add this line to wp-config.php: - -`var_dump(PHP_VERSION);` - -== Changelog == - -= 1.1.5 = -* WP 2.8 compatibility - -= 1.1.1 = -* italian translation - -= 1.1 = -* more flexible link text format -* [more info](http://scribu.net/wordpress/extra-feed-links/efl-1-1.html) - -= 1.0 = -* added options page - -= 0.6 = -* extra_feed_link() template tag - -= 0.5 = -* initial release - diff --git a/blog/wp-content/plugins/front-end-editor/admin.php b/blog/wp-content/plugins/front-end-editor/admin.php deleted file mode 100755 index 7009bcd..0000000 --- a/blog/wp-content/plugins/front-end-editor/admin.php +++ /dev/null @@ -1,147 +0,0 @@ -textdomain = 'front-end-editor'; - - $this->args = array('page_title' => __('Front-end Editor', $this->textdomain)); - - $this->boxes = array( - array('fields', __('Fields', $this->textdomain), 'normal'), - array('settings', __('Settings', $this->textdomain), 'side'), - ); - } - - function page_head() { -?> - -options->disabled = $disabled; - - $this->admin_msg(); - } - - function fields_box() { - // Separate fields - $post_fields = $other_fields = array(); - foreach ( FEE_Core::get_fields() as $field => $args ) - if ( 'post' == call_user_func(array($args['class'], 'get_object_type') ) ) - $post_fields[$field] = $args; - else - $other_fields[$field] = $args; - - echo html('p', __('Enable or disable editable fields', $this->textdomain)); - - $tables = self::fields_table(__('Post fields', $this->textdomain), $post_fields); - $tables .= self::fields_table(__('Other fields', $this->textdomain), $other_fields); - - echo $this->form_wrap($tables, '', 'manage_fields'); - } - - private function fields_table($title, $fields) { - $thead = - html('thead', - html('tr', - html('th scope="col" class="check-column"', '') - .html('th scope="col"', $title) - ) - ); - - $tbody = ''; - foreach ( $fields as $field => $args ) - $tbody .= - html('tr', - html('th scope="row" class="check-column"', - $this->input(array( - 'type' => 'checkbox', - 'name' => $field, - 'checked' => ! @in_array($field, $this->options->disabled) - )) - ) - .html('td', $args['title']) - ); - - return html('table class="widefat"', $thead . $tbody); - } - - function settings_handler() { - if ( !isset($_POST['save_settings']) ) - return; - - foreach ( array('rich', 'chunks', 'reset_date', 'highlight', 'tooltip') as $key ) - $this->options->$key = (bool) @$_POST[$key]; - - $this->admin_msg(); - } - - function settings_box() { - $rows = array( - array( - 'desc' => __('Enable the WYSIWYG editor', $this->textdomain), - 'type' => 'checkbox', - 'name' => 'rich', - ), - - array( - 'desc' => __('Edit one paragraph at a time, instead of an entire post', $this->textdomain), - 'type' => 'checkbox', - 'name' => 'chunks', - ), - - array( - 'desc' => __('Reset the post date on each edit', $this->textdomain), - 'type' => 'checkbox', - 'name' => 'reset_date', - ), - - array( - 'desc' => __('Highlight editable elements', $this->textdomain), - 'type' => 'checkbox', - 'name' => 'highlight', - ), - array( - 'desc' => __('Display a tooltip above editable elements', $this->textdomain), - 'type' => 'checkbox', - 'name' => 'tooltip', - ), - ); - - $out = ''; - foreach ( $rows as $row ) - $out .= html('p', $this->input($row)); - - echo $this->form_wrap($out, '', 'save_settings'); - } -} - diff --git a/blog/wp-content/plugins/front-end-editor/core.php b/blog/wp-content/plugins/front-end-editor/core.php deleted file mode 100644 index 3cd0fe8..0000000 --- a/blog/wp-content/plugins/front-end-editor/core.php +++ /dev/null @@ -1,240 +0,0 @@ -highlight ) - add_action('wp_head', array(__CLASS__, 'highlight')); - } - - static function highlight() { -?> - - $args ) - $field_types[$name] = $args['type']; - - $data = array( - 'save_text' => __('Save', 'front-end-editor'), - 'cancel_text' => __('Cancel', 'front-end-editor'), - 'fields' => $field_types, - 'ajax_url' => admin_url('admin-ajax.php'), - 'spinner' => admin_url('images/loading.gif'), - 'nonce' => wp_create_nonce(self::$nonce), - ); - - $css_dependencies = array(); - $js_dependencies = array('jquery'); - - // qTip - if ( self::$options->tooltip ) { - $data['tooltip'] = array( - 'icon' => $url . 'editor.png', - 'text' => __('Double-click to edit', 'front-end-editor') - ); - - wp_register_script('jquery-qtip', $url . "jquery.qtip$js_dev.js", array(), '1.0-rc3', true); - $js_dependencies[] = 'jquery-qtip'; - } - - // Autosuggest - if ( array_key_exists('terminput', $wrapped) ) { - $js_dependencies[] = 'suggest'; - } - - // Rich Editor - if ( array_key_exists('rich', $wrapped) ) { - $data['nicedit'] = apply_filters('front_end_editor_nicedit', array( - 'iconsPath' => $url . 'nicedit/nicEditorIcons.gif', - 'buttonList' => array( - 'bold', 'italic', 'strikethrough', - 'left','center', 'right', - 'fontFormat', 'fontFamily', 'forecolor', - 'removeformat', - 'ul', 'ol', - 'link', 'image', - 'xhtml' - ) - )); - - wp_register_script('nicedit', $url . "nicedit/nicEdit$js_dev.js", array(), '0.9r23', true); - $js_dependencies[] = 'nicedit'; - } - - // Thickbox - if ( array_key_exists('image', $wrapped) || array_key_exists('thumbnail', $wrapped) ) { - $data['admin_url'] = admin_url(); - - $data['image'] = array( - 'change' => __('Change Image', 'front-end-editor'), - 'revert' => '(' . __('Clear', 'front-end-editor') . ')', - 'tb_close' => get_bloginfo('wpurl') . '/wp-includes/js/thickbox/tb-close.png', - ); - - $css_dependencies[] = 'thickbox'; - $js_dependencies[] = 'thickbox'; - - wp_register_script('livequery', $url . 'livequery.js', array('jquery'), '1.1.0-pre', true); - $js_dependencies[] = 'livequery'; - } - - // Core script - wp_register_style('front-end-editor', $url . "editor$css_dev.css", $css_dependencies, self::$version); - wp_register_script('front-end-editor', $url . "editor$js_dev.js", $js_dependencies, self::$version, true); - -?> - - ucfirst(str_replace('_', ' ', $filter)), - 'type' => 'input', - 'priority' => 11, - 'argc' => 1 - )); - - self::$fields[$filter] = $args; - - return true; - } - - static function make_instances() { - self::$active_fields = self::get_fields(); - foreach ( (array) self::$options->disabled as $name ) - unset(self::$active_fields[$name]); - - foreach ( self::$active_fields as $name => $args ) { - extract($args); - - self::$instances[$name] = new $class($name, $type); - } - } - - static function add_filters() { - foreach ( self::$active_fields as $name => $args ) { - extract($args); - - $instance = self::$instances[$name]; - - add_filter($name, array($instance, 'wrap'), $priority, $argc); - } - } - - static function get_fields() { - return self::$fields; - } - - static function get_args($filter) { - return self::$fields[$filter]; - } - - static function ajax_response() { - // Is user trusted? - check_ajax_referer(self::$nonce, 'nonce'); - - $id = $_POST['item_id']; - $name = $_POST['name']; - $type = $_POST['type']; - $action = $_POST['callback']; - - // Is the current field defined? - if ( ! $instance = self::$instances[$name] ) - die(-1); - - // Does the user have the right to do this? - if ( ! $instance->check($id) || ! $instance->allow($id) ) - die(-1); - - $args = self::get_args($name); - - if ( $action == 'save' ) { - $content = stripslashes_deep($_POST['content']); - $result = $instance->save($id, $content); - $result = @apply_filters($name, $result); - } - elseif ( $action == 'get' ) { - $result = $instance->get($id); - - if ( $type == 'rich' ) - $result = wpautop($result); - } - - die($result); - } -} - -/* -Registers a new editable field - -@param string $filter -@param array $args( - 'class' => string The name of the field handler class (mandatory) - 'title' => string The user-friendly title (optional) - 'type' => string: 'input' | 'textarea' | 'rich' | 'image' (default: input) - 'priority' => integer (default: 11) - 'argc' => integer (default: 1) -) -*/ -function register_fronted_field() { - return FEE_Core::register(func_get_args()); -} - diff --git a/blog/wp-content/plugins/front-end-editor/editor/editor.css b/blog/wp-content/plugins/front-end-editor/editor/editor.css deleted file mode 100644 index 780d3de..0000000 --- a/blog/wp-content/plugins/front-end-editor/editor/editor.css +++ /dev/null @@ -1 +0,0 @@ -.fee-field,.fee-form{margin:0!important;padding:0!important;border-width:0!important;}div.fee-form,textarea.fee-form-content{clear:both!important;width:100%!important;}.fee-form-spinner{border:0!important;width:16px!important;height:16px!important;}div.fee-form button{margin-top:5px;}span.fee-form input{margin-right:5px;}.fee-form button+button{margin-left:5px;}.fee-form button{text-decoration:none!important;line-height:14px!important;font-size:11px!important;vertical-align:middle!important;padding:2px 8px!important;cursor:pointer!important;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;-khtml-box-sizing:content-box;box-sizing:content-box;}button.fee-form-save{background-color:#23779f;color:#fff;border:1px solid #1c5e7f;font-weight:bold;}.fee-form-save:hover{border:1px solid #000!important;}button.fee-form-cancel{background-color:#fcfcfc;color:#808080;border:1px solid #ddd;}.fee-form-cancel:hover{border:1px solid #666!important;}.nicEdit-selected:focus{outline:none;}.fee-suggest-results{padding:0;margin:0;list-style:none;position:absolute;display:none;z-index:10000;border-width:1px;border-style:solid;}.fee-suggest-results li{padding:2px 5px;white-space:nowrap;text-align:left;}.fee-suggest-match{text-decoration:underline;}.fee-suggest-over{cursor:pointer;}.fee-suggest-results{background-color:#fff;border-color:#808080;}.fee-suggest-results li{color:#101010;}.fee-suggest-match{color:#000;}.fee-suggest-over{background-color:#f0f0b8;}#TB_window #TB_title{background-color:#222;color:#CFCFCF;height:27px;}#fee-img-revert{display:block;float:left;padding:6px 10px 0;}#fee-img-revert:link,#fee-img-revert:active,#fee-img-revert:visited{color:#21759B!important;}#fee-img-revert:hover{color:#D54E21!important;} \ No newline at end of file diff --git a/blog/wp-content/plugins/front-end-editor/editor/editor.dev.css b/blog/wp-content/plugins/front-end-editor/editor/editor.dev.css deleted file mode 100644 index 1cc9024..0000000 --- a/blog/wp-content/plugins/front-end-editor/editor/editor.dev.css +++ /dev/null @@ -1,104 +0,0 @@ -/* Main */ -.fee-field, .fee-form { - margin: 0 !important; - padding: 0 !important; - border-width: 0 !important; -} -div.fee-form, textarea.fee-form-content { - clear: both !important; - width: 100% !important; -} -.fee-form-spinner { - border: 0 !important; - width: 16px !important; - height: 16px !important; -} - -/* Buttons */ -div.fee-form button {margin-top: 5px} -span.fee-form input {margin-right: 5px} -.fee-form button + button {margin-left: 5px} - -.fee-form button { - text-decoration: none !important; - line-height: 14px !important; - font-size: 11px !important; - vertical-align: middle !important; - padding: 2px 8px !important; - cursor: pointer !important; - -moz-border-radius: 11px; - -khtml-border-radius: 11px; - -webkit-border-radius: 11px; - border-radius: 11px; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; - -khtml-box-sizing: content-box; - box-sizing: content-box; -} - -button.fee-form-save { - background-color: #23779f; - color: #fff; - border: 1px solid #1c5e7f; - font-weight: bold; -} - -.fee-form-save:hover { - border: 1px solid #000 !important; -} - -button.fee-form-cancel { - background-color: #fcfcfc; - color: #808080; - border: 1px solid #ddd; -} - -.fee-form-cancel:hover { - border: 1px solid #666 !important; -} - -/* Rich Editor */ -.nicEdit-selected:focus { - outline: none; -} - -/* Suggest */ -.fee-suggest-results { - padding: 0; - margin: 0; - list-style: none; - position: absolute; - display: none; - z-index: 10000; - border-width: 1px; - border-style: solid; -} -.fee-suggest-results li {padding: 2px 5px; white-space: nowrap; text-align: left} -.fee-suggest-match {text-decoration: underline} -.fee-suggest-over {cursor: pointer} - -/* Suggest colors */ -.fee-suggest-results {background-color: #fff; border-color: #808080} -.fee-suggest-results li {color: #101010} -.fee-suggest-match {color: #000} -.fee-suggest-over {background-color: #f0f0b8} - -/* Image */ -#TB_window #TB_title { - background-color: #222; - color: #CFCFCF; - height: 27px; -} - -#fee-img-revert { - display: block; - float: left; - padding: 6px 10px 0; -} -#fee-img-revert:link, #fee-img-revert:active, #fee-img-revert:visited { - color: #21759B !important; -} -#fee-img-revert:hover { - color: #D54E21 !important; -} - diff --git a/blog/wp-content/plugins/front-end-editor/editor/editor.dev.js b/blog/wp-content/plugins/front-end-editor/editor/editor.dev.js deleted file mode 100644 index 8778e32..0000000 --- a/blog/wp-content/plugins/front-end-editor/editor/editor.dev.js +++ /dev/null @@ -1,669 +0,0 @@ -(function($){ - - if ( FrontEndEditor._loaded ) - return; - FrontEndEditor._loaded = true; - - // http://ejohn.org/blog/simple-javascript-inheritance/ - // Inspired by base2 and Prototype - (function(){ - var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; - - // The base Class implementation (does nothing) - this.Class = function(){}; - - // Create a new Class that inherits from this class - Class.extend = function(prop) { - var _super = this.prototype; - - // Instantiate a base class (but only create the instance, - // don't run the init constructor) - initializing = true; - var prototype = new this(); - initializing = false; - - // Copy the properties over onto the new prototype - for (var name in prop) { - // Check if we're overwriting an existing function - prototype[name] = ( typeof prop[name] == "function" && - typeof _super[name] == "function" && fnTest.test(prop[name]) ) ? - (function(name, fn){ - return function() { - var tmp = this._super; - - // Add a new ._super() method that is the same method - // but on the super-class - this._super = _super[name]; - - // The method only need to be bound temporarily, so we - // remove it when we're done executing - var ret = fn.apply(this, arguments); - this._super = tmp; - - return ret; - }; - })(name, prop[name]) : - prop[name]; - } - - // The dummy class constructor - function Class() { - // All construction is actually done in the init method - if ( !initializing && this.init ) - this.init.apply(this, arguments); - } - - // Populate our constructed prototype object - Class.prototype = prototype; - - // Enforce the constructor to be what we expect - Class.constructor = Class; - - // And make this class extendable - Class.extend = arguments.callee; - - return Class; - }; - })(); - - -// _____Actual code starts here_____ - - - var spinner = $('').attr({ - 'src': FrontEndEditor.data.spinner, - 'class': 'front-editor-spinner' - }); - - var is_overlay = function($el) { - var attr = [$el.attr('id'), $el.attr("class"), $el.attr("rel")]; - - var tokens = ['lightbox', 'thickbox', 'shutter', 'awppost_link']; - - for ( var i in tokens ) - for ( var j in attr ) - if ( attr[j].indexOf(tokens[i]) != -1 ) - return true; - - return false; - }; - - var resume = function() { - if ( FrontEndEditor._trap ) - return; - - var $link = FrontEndEditor._to_click; - - if ( typeof $link == 'undefined' ) - return; - -/* - var ev_reference; - var ev_capture = function(ev) { ev_reference = ev; } - - var onClick = $link.attr('onclick'); - - $link.bind('click', ev_capture); - - if ( typeof onClick == 'function' ) - $link.bind('click', onClick); - - $link.click(); - - $link.unbind('click', ev_capture); - - if ( typeof onClick == 'function' ) - $link.unbind('click', onClick); - - if ( ev_reference.isDefaultPrevented() ) - return; -*/ - - if ( typeof $link.attr('href') != 'undefined' && $link.attr('href') != '#' ) { - if ( $link.attr('target') == '_blank' ) - window.open($link.attr('href')); - else - window.location.href = $link.attr('href'); - } - - delete FrontEndEditor._to_click; - }; - - var fieldTypes = {}; - - fieldTypes['base'] = Class.extend({ - - init: function($el, type, name, id) { - var self = this; - - self.set_el($el); - self.type = type; - self.name = name; - self.id = id; - - self.bind(self.el, 'click', self.click); - self.bind(self.el, 'dblclick', self.dblclick); - }, - - set_el: function($el) { - var self = this; - - self.el = $el; - - // From a > .front-ed > content - // To .front-ed > a > content - var $parent = self.el.parents('a'); - - if ( ! $parent.length ) - return; - - var $link = $parent.clone(true) - .html(self.el.html()); - - var $wrap = self.el.clone(true) - .html($link); - - $parent.replaceWith($wrap); - - self.el = $wrap; - self.switched = true; - }, - - click: function(ev) { -// if ( typeof FrontEndEditor._to_click != 'undefined' ) -// return; - - var $el = $(ev.target).closest('a'); - - if ( ! $el.length ) - return; - - if ( is_overlay($el) ) - return; - - ev.stopImmediatePropagation(); - ev.preventDefault(); - - FrontEndEditor._to_click = $el; - - setTimeout(resume, 300); - }, - - dblclick: function(ev) { - var self = this; - - ev.stopPropagation(); - ev.preventDefault(); - - FrontEndEditor._trap = true; - }, - - get_content: null /* function() */, - set_content: null /* function(content) */, - - ajax_get_handler: null /* function(content) */, - ajax_set_handler: null /* function(content) */, - - ajax_get: function() { - var self = this; - - var data = { - 'nonce': FrontEndEditor.data.nonce, - 'action': 'front-editor', - 'callback': 'get', - 'name': self.name, - 'type': self.type, - 'item_id': self.id - }; - - $.post(FrontEndEditor.data.ajax_url, data, function(response){ - self.ajax_get_handler(response); - }); - }, - - ajax_set: function(content) { - var self = this; - - content = content || self.get_content(); - - var data = { - 'nonce': FrontEndEditor.data.nonce, - 'action': 'front-editor', - 'callback': 'save', - 'name': self.name, - 'type': self.type, - 'item_id': self.id, - 'content': content - }; - - $.post(FrontEndEditor.data.ajax_url, data, function(response){ - self.ajax_set_handler(response); - }); - }, - - // Event utility: this = self - bind: function(element, event, callback) { - var self = this; - - element.bind(event, function(ev) { - callback.call(self, ev); - }); - } - }); - - fieldTypes['image'] = fieldTypes['base'].extend({ - - dblclick: function(ev) { - var self = this; - - self._super(ev); - - self.open_box(); - }, - - open_box: function() { - var self = this; - - tb_show(FrontEndEditor.data.image.change, FrontEndEditor.data.admin_url + - '/media-upload.php?post_id=0&type=image&TB_iframe=true&width=640&editable_image=1'); - - var $revert = $('').text(FrontEndEditor.data.image.revert); - - $revert.click(function(ev){ - self.ajax_set(-1); - }); - - $('#TB_ajaxWindowTitle').after($revert); - $('#TB_closeWindowButton img').attr('src', FrontEndEditor.data.image.tb_close); - - self.bind($('#TB_iframeContent'), 'load', self.replace_button); - }, - - replace_button: function(ev) { - var self = this; - - var $frame = $(ev.target).contents(); - - $('.media-item', $frame).livequery(function(){ - var $item = $(this); - var $button = $('').text(FrontEndEditor.data.image.change); - - $button.click(function(ev){ - self.ajax_set(self.get_content($item)); - }); - - $(this).find(':submit, #go_button').replaceWith($button); - }); - }, - - get_content: function($item) { - var $field; - - // Media library - $field = $item.find('.urlfile'); - if ( $field.length ) - return $field.attr('title'); - - // From URL (embed) - $field = $item.find('#embed-src'); - if ( $field.length ) - return $field.val(); - - // From URL - $field = $item.find('#src'); - if ( $field.length ) - return $field.val(); - - return false; - }, - - ajax_set_handler: function(url) { - var self = this; - - if ( url == -1 ) { - window.location.reload(true); - } else { - self.el.find('img').attr('src', url); - tb_remove(); - } - } - }); - - fieldTypes['thumbnail'] = fieldTypes['image'].extend({ - - replace_button: function(ev) { - var self = this; - - var $frame = $(ev.target).contents(); - - $frame.find('#tab-type_url').remove(); - - self._super(ev); - }, - - get_content: function($item) { - return $item.attr('id').replace('media-item-', ''); - } - }); - - fieldTypes['input'] = fieldTypes['base'].extend({ - - init: function($el, type, name, id) { - var self = this; - - self.spinner = spinner.clone(); - - self._super($el, type, name, id); - }, - - input_tag: '', - - create_input: function() { - var self = this; - - self.input = $(self.input_tag); - - self.input.attr({ - 'id': 'edit_' + self.el.attr('id'), - 'class': 'fee-form-content' - }).prependTo(self.form); - }, - - set_input: function(content) { - var self = this; - - self.input.val(content); - }, - - get_content: function() { - var self = this; - return self.input.val(); - }, - - set_content: function(content) { - var self = this; - - if ( self.switched ) - self.el.find('a').html(content); - else - self.el.html(content); - }, - - ajax_get: function() { - var self = this; - - self.el.hide().after(self.spinner.show()); - - self.create_input(); - - self._super(); - }, - - ajax_set: function() { - var self = this; - - self.el.before(self.spinner.show()); - - self._super(); - }, - - ajax_get_handler: function(content) { - var self = this; - - self.spinner.hide().replaceWith(self.form); - - self.set_input(content); - - self.input.focus(); - }, - - ajax_set_handler: function(content) { - var self = this; - - self.set_content(content); - - self.spinner.hide(); - self.el.show(); - }, - - dblclick: function(ev) { - var self = this; - - self._super(ev); - - self.form_handler(); - }, - - form_handler: function() { - var self = this; - - // Button actions - var form_remove = function(with_spinner) { - FrontEndEditor._trap = false; - - self.form.remove(); - - if ( with_spinner === true ) - self.el.before(self.spinner.show()); - else - self.el.show(); - - self.el.trigger('fee_remove_form'); - }; - - var form_submit = function() { - self.ajax_set(); - form_remove(true); - }; - - // Button markup - self.save_button = $('
- -
- -

- -
- -

Minify URI

-

Place this URI in your HTML to serve the files above combined, minified, compressed and -with cache headers.

- - - -
URI/min (opens in new window)
HTML
- -

How to serve these files as a group

-

For the best performance you can serve these files as a pre-defined group with a URI -like: /min/?g=keyName

-

To do this, add a line like this to /min/groupsConfig.php:

- -
return array(
-    ... your existing groups here ...
-
-);
- -

Make sure to replace keyName with a unique key for this group.

-
- -
-

Find URIs on a Page

-

You can use the bookmarklet below to fetch all CSS & Javascript URIs from a page -on your site. When you active it, this page will open in a new window with a list of -available URIs to add.

- -

Create Minify URIs (right-click, add to bookmarks)

-
- -

Combining CSS files that contain @import

-

If your CSS files contain @import declarations, Minify will not -remove them. Therefore, you will want to remove those that point to files already -in your list, and move any others to the top of the first file in your list -(imports below any styles will be ignored by browsers as invalid).

-

If you desire, you can use Minify URIs in imports and they will not be touched -by Minify. E.g. @import "/min/?g=css2";

- - - -
-

Need help? Search or post to the Minify discussion list.

-

This app is minified :) view -source

- - - - - - - ob_get_contents() - ,'id' => __FILE__ - ,'lastModifiedTime' => max( - // regenerate cache if either of these change - filemtime(__FILE__) - ,filemtime(dirname(__FILE__) . '/../config.php') - ) - ,'minifyAll' => true - ,'encodeOutput' => $encodeOutput -); -ob_end_clean(); - -set_include_path(dirname(__FILE__) . '/../lib' . PATH_SEPARATOR . get_include_path()); - -require 'Minify.php'; - -if (0 === stripos(PHP_OS, 'win')) { - Minify::setDocRoot(); // we may be on IIS -} -Minify::setCache(isset($min_cachePath) ? $min_cachePath : null); -Minify::$uploaderHoursBehind = $min_uploaderHoursBehind; - -Minify::serve('Page', $serveOpts); diff --git a/blog/wp-content/plugins/wp-minify/min/builder/ocCheck.php b/blog/wp-content/plugins/wp-minify/min/builder/ocCheck.php deleted file mode 100644 index c47baa3..0000000 --- a/blog/wp-content/plugins/wp-minify/min/builder/ocCheck.php +++ /dev/null @@ -1,36 +0,0 @@ - 'World!' - ,'method' => 'deflate' - )); - $he->encode(); - $he->sendAll(); - -} else { - // echo status "0" or "1" - header('Content-Type: text/plain'); - echo (int)$_oc; -} diff --git a/blog/wp-content/plugins/wp-minify/min/builder/rewriteTest.js b/blog/wp-content/plugins/wp-minify/min/builder/rewriteTest.js deleted file mode 100644 index 56a6051..0000000 --- a/blog/wp-content/plugins/wp-minify/min/builder/rewriteTest.js +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-minify/min/config.php b/blog/wp-content/plugins/wp-minify/min/config.php deleted file mode 100644 index 34f3c84..0000000 --- a/blog/wp-content/plugins/wp-minify/min/config.php +++ /dev/null @@ -1,158 +0,0 @@ - - * array('//symlink' => '/real/target/path') // unix - * array('//static' => 'D:\\staticStorage') // Windows - * - */ -$min_symlinks = array(); - - -/** - * If you upload files from Windows to a non-Windows server, Windows may report - * incorrect mtimes for the files. This may cause Minify to keep serving stale - * cache files when source file changes are made too frequently (e.g. more than - * once an hour). - * - * Immediately after modifying and uploading a file, use the touch command to - * update the mtime on the server. If the mtime jumps ahead by a number of hours, - * set this variable to that number. If the mtime moves back, this should not be - * needed. - * - * In the Windows SFTP client WinSCP, there's an option that may fix this - * issue without changing the variable below. Under login > environment, - * select the option "Adjust remote timestamp with DST". - * @link http://winscp.net/eng/docs/ui_login_environment#daylight_saving_time - */ -$min_uploaderHoursBehind = 0; - - -/** - * Path to Minify's lib folder. If you happen to move it, change - * this accordingly. - */ -$min_libPath = dirname(__FILE__) . '/lib'; - - -// try to disable output_compression (may not have an effect) -ini_set('zlib.output_compression', '0'); diff --git a/blog/wp-content/plugins/wp-minify/min/groupsConfig.php b/blog/wp-content/plugins/wp-minify/min/groupsConfig.php deleted file mode 100644 index 9e2514d..0000000 --- a/blog/wp-content/plugins/wp-minify/min/groupsConfig.php +++ /dev/null @@ -1,34 +0,0 @@ - array('//js/file1.js', '//js/file2.js'), - // 'css' => array('//css/file1.css', '//css/file2.css'), - - // custom source example - /*'js2' => array( - dirname(__FILE__) . '/../min_unit_tests/_test_files/js/before.js', - // do NOT process this file - new Minify_Source(array( - 'filepath' => dirname(__FILE__) . '/../min_unit_tests/_test_files/js/before.js', - 'minifier' => create_function('$a', 'return $a;') - )) - ),//*/ - - /*'js3' => array( - dirname(__FILE__) . '/../min_unit_tests/_test_files/js/before.js', - // do NOT process this file - new Minify_Source(array( - 'filepath' => dirname(__FILE__) . '/../min_unit_tests/_test_files/js/before.js', - 'minifier' => array('Minify_Packer', 'minify') - )) - ),//*/ -); \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-minify/min/index.php b/blog/wp-content/plugins/wp-minify/min/index.php deleted file mode 100644 index 51c3525..0000000 --- a/blog/wp-content/plugins/wp-minify/min/index.php +++ /dev/null @@ -1,66 +0,0 @@ - - * - * - * - * - * If you do not want ampersands as HTML entities, set Minify_Build::$ampersand = "&" - * before using this function. - * - * @param string $group a key from groupsConfig.php - * @param boolean $forceAmpersand (default false) Set to true if the RewriteRule - * directives in .htaccess are functional. This will remove the "?" from URIs, making them - * more cacheable by proxies. - * @return string - */ -function Minify_groupUri($group, $forceAmpersand = false) -{ - $path = $forceAmpersand - ? "/g={$group}" - : "/?g={$group}"; - return _Minify_getBuild($group)->uri( - '/' . basename(dirname(__FILE__)) . $path - ,$forceAmpersand - ); -} - - -/** - * Get the last modification time of the source js/css files used by Minify to - * build the page. - * - * If you're caching the output of Minify_groupUri(), you'll want to rebuild - * the cache if it's older than this timestamp. - * - * - * // simplistic HTML cache system - * $file = '/path/to/cache/file'; - * if (! file_exists($file) || filemtime($file) < Minify_groupsMtime(array('js', 'css'))) { - * // (re)build cache - * $page = buildPage(); // this calls Minify_groupUri() for js and css - * file_put_contents($file, $page); - * echo $page; - * exit(); - * } - * readfile($file); - * - * - * @param array $groups an array of keys from groupsConfig.php - * @return int Unix timestamp of the latest modification - */ -function Minify_groupsMtime($groups) -{ - $max = 0; - foreach ((array)$groups as $group) { - $max = max($max, _Minify_getBuild($group)->lastModified); - } - return $max; -} - -/** - * @param string $group a key from groupsConfig.php - * @return Minify_Build - * @private - */ -function _Minify_getBuild($group) -{ - static $builds = array(); - static $gc = false; - if (false === $gc) { - $gc = (require dirname(__FILE__) . '/groupsConfig.php'); - } - if (! isset($builds[$group])) { - $builds[$group] = new Minify_Build($gc[$group]); - } - return $builds[$group]; -} diff --git a/blog/wp-content/plugins/wp-minify/options-generic.php b/blog/wp-content/plugins/wp-minify/options-generic.php deleted file mode 100644 index 8934119..0000000 --- a/blog/wp-content/plugins/wp-minify/options-generic.php +++ /dev/null @@ -1,136 +0,0 @@ - -
-name); - $advanced_toggle_state = 'visible'; - } - else { - $advanced_style = 'style="display:none"'; - $advanced_toggle_text = __('Show Advanced Options', $this->name); - $advanced_toggle_state = 'hidden'; - } - - printf(' -

%s

-

-

- ', - __('Support this plugin!', $this->name), - __('Display "Page optimized by WP Minify" link in the footer', $this->name), - __('Do not display "Page optimized by WP Minify" link.', $this->name), - __('I will donate and/or write about this plugin', $this->name) - ); - - printf(' -

%s

-

-

- ', - __('General Configuration', $this->name), - __('Enable JavaScript Minification', $this->name), - __('Enable CSS Minification', $this->name) - ); - - printf(' -

-

- ', - __('Enable Minification on External Files', $this->name), - __('Not recommended unless you want to excluding a bunch of external .js/.css files', $this->name), - __('Place Minified JavaScript in footer', $this->name), - __('Not recommended if you have embedded JS code referring to code that\'s been minified', $this->name) - ); - - printf(' -

-

- ', - __('Combine files but do not minify', $this->name), - __('Debug mode', $this->name), - __('Cache expires after every', $this->name), - __('seconds', $this->name), - __('Manually Clear Cache', $this->name) - ); - - - printf(' -

-

-

-

-

- ', - __('Additional Javascript files to minify (line delimited)', $this->name), - __('Javascript files to exclude from minify (line delimited)', $this->name), - __('Additional CSS files to minify (line delimited)', $this->name), - __('CSS files to exclude from minify (line delimited)', $this->name), - __('Extra arguments to pass to minify engine. This value will get append to calls to URL "wp-minify/min/?f=file1.js,file2.js,...,fileN.js".', $this->name), - __('e.g. You can specify this value to be b=somepath to specify the base path for all files passed into Minify.', $this->name) - ); - - if ( function_exists( 'wp_nonce_field' ) && wp_nonce_field( $this->name ) ) { - printf(' -

- - - -

- ', - __('Update Options', $this->name), - __('Reset ALL Options', $this->name) - ); - } -?> -
diff --git a/blog/wp-content/plugins/wp-minify/options-sidebar.php b/blog/wp-content/plugins/wp-minify/options-sidebar.php deleted file mode 100644 index 18714ee..0000000 --- a/blog/wp-content/plugins/wp-minify/options-sidebar.php +++ /dev/null @@ -1,48 +0,0 @@ - - -
- - - -
-

Other useful plugins

-
-
    -
  • WP Greet Box helps you show a different greeting message to your new visitors depending on their referrer url. For example, when a Digg user clicks through from Digg, they will see a message reminding them to digg your post if they like it. Learn more »
  • -
  • SEO No Duplicate helps you get rid of duplicate content by telling search engine bots the preferred version of your pages (via canonical properly within your head tag). Learn more »
  • -
  • Buy Sell Ads WordPress plugin helps you easily integrate your Buy Sell Ads zones and includes anti-AdBlock measures to prevent AdBlock from blocking Buy Sell Ads advertisements on your site. Learn more »
  • -
  • Anti-AdBlock helps detects if a visitor has AdBlock software enabled. If so, it will display a customizable floating notification message to your visitor. By default, this message box will never show up again for that visitor. Learn more »
  • -
-
-
- -
-

Need support?

-Feel free to find answers and post any questions in the plugin support forum. -
- - - -
diff --git a/blog/wp-content/plugins/wp-minify/readme.txt b/blog/wp-content/plugins/wp-minify/readme.txt deleted file mode 100644 index a8b5cde..0000000 --- a/blog/wp-content/plugins/wp-minify/readme.txt +++ /dev/null @@ -1,172 +0,0 @@ -=== WP Minify === -Tags: minify, js, css, javascript, cascading style sheets, optimize, performance, speed, http request, phpspeedy -Contributors: madeinthayaland -Donate link: http://omninoggin.com/donate/ -Requires at least: 2.7 -Tested up to: 2.9.2 -Stable Tag: 0.7.4 - -This plugin uses the Minify engine to combine and compress JS and CSS files -to improve page load time. - -== Description == -This plugin integrates the [Minify engine](http://code.google.com/p/minify/) -into your WordPress blog. Once enabled, this plugin will combine and compress -JS and CSS files to improve page load time. - -= How Does it Work? = - -WP Minify grabs JS/CSS files in your generated WordPress page and passes that -list to the Minify engine. The Minify engine then returns a consolidated, -minified, and compressed script or style for WP Minify to reference in the -WordPress header. - -= Features = - -* Easily integrate Minify into your WordPress blog. -* Debug mode lets you combine files without Minifying them. -* Ability to include extra JS and CSS files for Minifying. -* Ability to exclude certain JS and CSS files for Minifying. -* Minification on external files via caching. -* Place JavaScript in footer. -* Ability pass extra arguments to Minify engine. -* Expire headers for combined JS and CSS files. - -== Changelog == - -= 0.7.4 = -* Fixed detecting if script is local or not. - -= 0.7.3 = -* Fixed corner case on expire headers implementation. - -= 0.7.2 = -* Add expire headers to combined JS and CSS files (Thanks Jan Seidl!). - -= 0.7.1 = -* Fixed extra arguments for Minify engine. - -= 0.7.0 = -* Added advanced options: - - Minification on external files - - Place JavaScript in footer - - Extra arguments for Minify engine -* Removed wp_path option (Thanks Jan Seidl!) -* Fixed Output Buffer conflicts with other plugins that use output buffering - such as All-in-One SEO and Anarchy Media Player. - -= 0.6.5 = -* Fixed URL building (bug introduced by last release). -* Brought back WordPress path settings as some people with .htaccess issues - may still need this. - -= 0.6.4 = -* Fixed CSS regex to catch "media=''" case. (Thanks forum user bobmarkl33!) -* Modified minified JavaScript injection to the end of (Thanks forum - user bobmarl33!) -* Fixed WP Minify working with blogs installed in subdirectory of webroot. - (Thanks forum user Luke!) -* Removed WordPress path settings as this is no longer needed per Luke's fix. - -= 0.6.3 = -* Fixed JavaScript minification failure for large number of files. - -= 0.6.2 = -* Fixed admin array_keys() bug -* Updated .pot file. - -= 0.6.1 = -* Added .pot file. - -= 0.6 = -* Upgraded to Minify engine 2.1.3. -* Added automatic Minify engine cache configuration. -* Fixed HTML5
conflict. -* Fixed bug from blog installed in subdirectory. -* Fixed localization. - -= 0.5 = -* Added option to disable JS or CSS minification. -* Fixed a few bugs. -* Admin facelift - -= 0.4.1 = -* Fixed non-replaced tag for valid XHTML usage. - -= 0.4 = -* Automatically exclude CSS conditionals. -* Automatically exclude CSS media != all, or screen. -* Automatically exclude https URLs. -* Added sanity checking for buffer start & stop. -* Moved buffer start to init with priority 99999. -* Fixed "strpos()" warnings when settings have empty lines. - -= 0.3.1 = -* Fixed "URL file-access disabled" errors. -* Fixed "implode()" warnings. - -= 0.3 = -* WP 2.8 Compatibility - -= 0.2.1 = -* Fixed another CSS exclusion bug (src_match -> href_match). -* Fixed JS WP Minify bug passing double forward slashes when not needed. -* Added media="screen" for minified CSS reference. - -= 0.2 = -* Changed the way CSS and JS files are picked up. No more wp_enqueue_* - requirements! -* Fixed exclusion bug where specified files are not excluded from - minification. -* Removed OMNINOGGIN dashboard widget. - -= 0.1.1 = -* Fixed array_slice() warning in the admin dashboard. -* Fixed version check to not break page when $wp_version is empty. - -= 0.1 = -* Initial release - -= Credits = -This plugin utilizes the [Minify engine](http://code.google.com/p/minify/) -coded by [Steve Clay](http://mrclay.org/) and [Ryan Grove](http://wonko.com) -to perform all JS & CSS Minifying. - -== Installation == - -1. Upload the plugin to your plugins folder: 'wp-content/plugins/' -2. Make sure 'wp-content/plugins/wp-minify/cache' is writeable by the - web server. (try 'chmod 777 wp-content/plugins/wp-minify/cache') -3. Activate the 'WP Minify' plugin from the Plugins admin panel. -4. You will probably have broken JavaScript calls, so following the following - [tutorial](http://omninoggin.com/wordpress-posts/how-to-troubleshoot-wp-minify/) - and exclude problematic JavaScripts from WP Minify. -5. (optional) For better performance, modify "$min_cachePath" in - "wp-content/plugins/wp-minify/min/config.php" to point to - "/full/path/to/wp-content/plugins/wp-minify/cache". - -== Frequently Asked Questions == - -= Where is the documentation? = -If you are having problems with this plugin, please first take a look at the -various links under the "Documentation" section of the -[plugin page](http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/). - -= I still can't get it to work after reading the documentation! = -Please take a look at documentation available on the -[plugin page](http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/). -to see if any of them can help you. If not, feel free to post your issues -on the appropriate [plugin support forum](http://omninoggin.com/forum). -I will try my best to help you resolve any issues that you are having. - -== License == -All contents under the wp-minify/min/ directory is licensed under -[New BSD License](http://www.opensource.org/licenses/bsd-license.php) (which is -[GPL](http://www.gnu.org/copyleft/gpl.html) compatible). All other -contents within this package is licensed under GPLv3. - -== Screenshots == - -1. Options -2. Before WP Minify (11 JS requests @ 111KB) -3. After WP Minify (1 JS request @ 30KB) diff --git a/blog/wp-content/plugins/wp-minify/screenshot-1.png b/blog/wp-content/plugins/wp-minify/screenshot-1.png deleted file mode 100644 index a20366a..0000000 Binary files a/blog/wp-content/plugins/wp-minify/screenshot-1.png and /dev/null differ diff --git a/blog/wp-content/plugins/wp-minify/screenshot-2.png b/blog/wp-content/plugins/wp-minify/screenshot-2.png deleted file mode 100644 index b3084b0..0000000 Binary files a/blog/wp-content/plugins/wp-minify/screenshot-2.png and /dev/null differ diff --git a/blog/wp-content/plugins/wp-minify/screenshot-3.png b/blog/wp-content/plugins/wp-minify/screenshot-3.png deleted file mode 100644 index ac11717..0000000 Binary files a/blog/wp-content/plugins/wp-minify/screenshot-3.png and /dev/null differ diff --git a/blog/wp-content/plugins/wp-minify/wp-minify.php b/blog/wp-content/plugins/wp-minify/wp-minify.php deleted file mode 100644 index 122f709..0000000 --- a/blog/wp-content/plugins/wp-minify/wp-minify.php +++ /dev/null @@ -1,733 +0,0 @@ -. -*/ - -if (!class_exists('WPMinify')) { - - class WPMinify { - - var $author_homepage = 'http://omninoggin.com/'; - var $homepage = 'http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/'; - var $name = 'wp_minify'; - var $name_dashed = 'wp-minify'; - var $name_proper = 'WP Minify'; - var $required_wp_version = '2.7'; - var $version = '0.7.4'; - - var $c = null; - var $debug = true; - var $cache_location = 'wp-content/plugins/wp-minify/cache/'; - var $url_len_limit = 2000; - var $minify_limit = 50; - var $buffer_started = false; - var $default_exclude = array('https://'); - - function WPMinify() { - // initialize common functions - $this->c = new WPMinifyCommon($this); - - // load translation - $this->c->load_text_domain(); - - // register admin scripts - add_action('admin_init', array($this->c, 'a_register_scripts')); - add_action('admin_init', array($this->c, 'a_register_styles')); - - // check wp version - add_action('admin_head', array($this->c, 'a_check_version')); - - // load admin menu - add_action('admin_menu', array($this, 'a_menu')); - - // register ajax handler - add_action('wp_ajax_wpm', array($this, 'a_ajax_handler')); - - if (!is_admin()) { - // No need to minify admin stuff - add_action('init', array($this, 'pre_content'), 99999); - add_action('wp_footer', array($this, 'post_content')); - // advertise hook - add_action('wp_footer', array($this, 'advertise')); - } - } - - // admin functions - - function a_default_options() { - return array( - 'cache_external' => false, - 'cache_interval' => 900, - 'css_exclude' => array(), - 'css_include' => array(), - 'debug' => false, - 'enable_css' => true, - 'enable_js' => true, - 'extra_minify_options' => '', - 'js_exclude' => array(), - 'js_include' => array(), - 'js_in_footer' => false, - 'show_link' => true, - 'show_advanced' => false, - 'version' => $this->version, - 'deprecated' => array( - 'wp_path' - ) - ); - } - - function a_update_options() { - // new options - $wpm_new_options = stripslashes_deep($_POST['wpm_options_update']); - - // current options - $wpm_current_options = get_option($this->name); - - // convert "on" to true and "off" to false for checkbox fields - // and set defaults for fields that are left blank - if ( isset($wpm_new_options['show_link']) && $wpm_new_options['show_link'] == "on") - $wpm_new_options['show_link'] = true; - else - $wpm_new_options['show_link'] = false; - - if ( isset($wpm_new_options['enable_js']) ) - $wpm_new_options['enable_js'] = true; - else - $wpm_new_options['enable_js'] = false; - - if ( isset($wpm_new_options['enable_css']) ) - $wpm_new_options['enable_css'] = true; - else - $wpm_new_options['enable_css'] = false; - - if ( isset($wpm_new_options['cache_external']) ) - $wpm_new_options['cache_external'] = true; - else - $wpm_new_options['cache_external'] = false; - - if ( isset($wpm_new_options['js_in_footer']) ) - $wpm_new_options['js_in_footer'] = true; - else - $wpm_new_options['js_in_footer'] = false; - - if ( isset($wpm_new_options['debug']) ) - $wpm_new_options['debug'] = true; - else - $wpm_new_options['debug'] = false; - - if ( strlen(trim($wpm_new_options['js_include'])) > 0 ) - $wpm_new_options['js_include'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['js_include']))); - else - $wpm_new_options['js_include'] = array(); - - if ( strlen(trim($wpm_new_options['js_exclude'])) > 0 ) - $wpm_new_options['js_exclude'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['js_exclude']))); - else - $wpm_new_options['js_exclude'] = array(); - - if ( strlen(trim($wpm_new_options['css_include'])) > 0 ) - $wpm_new_options['css_include'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['css_include']))); - else - $wpm_new_options['css_include'] = array(); - - if ( strlen(trim($wpm_new_options['css_exclude'])) > 0 ) - $wpm_new_options['css_exclude'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['css_exclude']))); - else - $wpm_new_options['css_exclude'] = array(); - - // Update options - foreach($wpm_new_options as $key => $value) { - $wpm_current_options[$key] = $value; - } - - update_option($this->name, $wpm_current_options); - } - - function a_set_advanced_options($val) { - $wpm_options = get_option($this->name); - $wpm_options['show_advanced'] = $val; - update_option($this->name, $wpm_options); - } - - function a_ajax_handler() { - check_ajax_referer($this->name); - if(isset($_POST['wpm_action'])){ - if ( strtolower($_POST['wpm_action']) == 'show_advanced' ) { - $this->a_set_advanced_options(true); - } - elseif ( strtolower($_POST['wpm_action']) == 'hide_advanced' ) { - $this->a_set_advanced_options(false); - } - else { - echo 'Invalid wpm_action.'; - } - } - exit(); - } - - function a_request_handler() { - if (isset($_POST['wpm_options_update_submit'])) { - check_admin_referer($this->name); - $this->a_update_options(); - add_action('admin_notices', array($this->c, 'a_notify_updated')); - } - elseif (isset($_POST['wpm_options_clear_cache_submit'])) { - // if user wants to regenerate nonce - check_admin_referer($this->name); - $this->c->a_clear_cache(); - add_action('admin_notices', array($this->c, 'a_notify_cache_cleared')); - } - elseif (isset($_POST['wpm_options_upgrade_submit'])) { - // if user wants to upgrade options (for new options on version upgrades) - check_admin_referer($this->name); - $this->c->a_upgrade_options(); - add_action('admin_notices', array($this->c, 'a_notify_upgraded')); - } - elseif (isset($_POST['wpm_options_reset_submit'])) { - // if user wants to reset all options - check_admin_referer($this->name); - $this->c->a_reset_options(); - add_action('admin_notices', array($this->c, 'a_notify_reset')); - } - - // only check these on plugin settings page - $this->c->a_check_dir_writable($this->c->get_plugin_dir().'cache/', array($this, 'a_notify_cache_not_writable')); - $this->c->a_check_orphan_options(array($this, 'a_notify_orphan_options')); - if ($this->c->a_check_dir_writable($this->c->get_plugin_dir().'min/config.php', array($this, 'a_notify_config_not_writable'))) { - $this->a_check_minify_config(); - } - } - - function a_check_minify_config() { - $fname = $this->c->get_plugin_dir().'min/config.php'; - $fhandle = fopen($fname,'r'); - $content = fread($fhandle,filesize($fname)); - - preg_match('/\/\/###WPM-CACHE-PATH-BEFORE###(.*)\/\/###WPM-CACHE-PATH-AFTER###/s', $content, $matches); - $cache_path_code = $matches[1]; - if (!preg_match('/\$min_cachePath.*?/', $cache_path_code)) { - $content = preg_replace( - '/\/\/###WPM-CACHE-PATH-BEFORE###(.*)\/\/###WPM-CACHE-PATH-AFTER###/s', - "//###WPM-CACHE-PATH-BEFORE###\n".'$min_cachePath = \''.$this->c->get_plugin_dir()."cache/';\n//###WPM-CACHE-PATH-AFTER###", - $content); - $this->a_notify_modified_minify_config(); - } - - $fhandle = fopen($fname,"w"); - fwrite($fhandle,$content); - fclose($fhandle); - } - - function a_notify_cache_not_writable() { - $this->c->a_notify( - sprintf('%s: %s', - __('Cache directory is not writable. Please grant your server write permissions to the directory', $this->name), - $this->c->get_plugin_dir().'cache/'), - true); - } - - function a_notify_config_not_writable() { - $this->c->a_notify( - sprintf('%s: %s', - __('Minify Engine config.php is not writable. Please grant your server write permissions to file', $this->name), - $this->c->get_plugin_dir().'min/config.php')); - } - - function a_notify_orphan_options() { - $this->c->a_notify( - sprintf('%s', - __('Some option settings are missing (possibly from plugin upgrade). Please reactivate.', $this->name))); - } - - function a_notify_modified_minify_config() { - $this->c->a_notify( __('Minify Engine config.php was configured automatically.', $this->name)); - } - - function a_menu() { - $options_page = add_options_page($this->name_proper, $this->name_proper, 'manage_options', 'wp-minify', array($this, 'a_page')); - add_action('admin_head-'.$options_page, array($this, 'a_request_handler')); - add_action('admin_print_scripts-'.$options_page, array($this->c, 'a_enqueue_scripts')); - add_action('admin_print_styles-'.$options_page, array($this->c, 'a_enqueue_styles')); - } - - function a_page() { - $wpm_options = get_option($this->name); - printf(' -
-

%s

-
- %s |  - %s -
', - __('WP Minify Options', $this->name), - __('General Configuration', $this->name), - __('Documentation', $this->name) - ); - printf('
'); - if ( isset($_GET['wpm-page']) ) { - if ( $_GET['wpm-page'] || !$_GET['wpm-page'] ) { - require_once('options-generic.php'); - } - } - else { - require_once('options-generic.php'); - } - printf('
'); // omni_admin_main - require_once('options-sidebar.php'); - printf('
'); // wrap - - } // admin_page() - - // other functions - - function fetch_and_cache($url, $cache_file) { - $ch = curl_init(); - $timeout = 5; // set to zero for no timeout - curl_setopt ($ch, CURLOPT_URL, $url); - curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); - $content = curl_exec($ch); - curl_close($ch); - if ( $content ) { - if ( is_array($content) ) { - $content = implode($content); - } - - // save cache file - $fh = fopen($cache_file, 'w'); - if ( $fh ) { - fwrite($fh, $content); - fclose($fh); - } - else { - // cannot open for write. no error b/c something else is probably writing to the file. - } - - return $content; - } - else { - printf( - '%s: '.$url.'. %s
', - __('Error: Could not fetch and cache URL'), - __('You might need to exclude this file in WP Minify options.') - ); - return ''; - } - } - - function refetch_cache_if_expired($url, $cache_file) { - $wpm_options = get_option($this->name); - $cache_file_mtime = filemtime($cache_file); - if ( (time() - $cache_file_mtime) > $wpm_options['cache_interval'] ) { - $this->fetch_and_cache($url, $cache_file); - } - } - - function tiny_filename($str) { - $f = __FILE__; - // no fancy shortening for Windows - return ('/' === $f[0]) ? strtr(base64_encode(md5($str, true)), '+/=', '-_(') : md5($str); - } - - function array_trim($arr, $charlist=null){ - foreach($arr as $key => $value){ - if (is_array($value)) $result[$key] = array_trim($value, $charlist); - else $result[$key] = trim($value, $charlist); - } - return $result; - } - - function check_and_split_url($url) { - $wpm_options = get_option($this->name); - - // append &debug if we need to - if ( $wpm_options['debug'] ) { - $debug_url = '&debug=true'; - } - else { - $debug_url = ''; - } - - $url_chunk = explode('?f=', $url); - $base_url = array_shift($url_chunk); - $files = explode(',', array_shift($url_chunk)); - $num_files = sizeof($files); - if ( $url > $this->url_len_limit or $num_files > $this->minify_limit ) { - $first_half = $this->check_and_split_url($base_url . '?f=' . implode(',', array_slice($files, 0, $num_files/2))); - $second_half = $this->check_and_split_url($base_url . '?f=' . implode(',', array_slice($files, $num_files/2))); - return $first_half + $second_half; - } - else { - return array($base_url . '?f=' . implode(',', $files) . $debug_url . '&' . $wpm_options['extra_minify_options']); - } - } - - function fetch_content($url, $type) { - $wpm_options = get_option($this->name); - $cache_file = $this->c->get_plugin_dir().'cache/'.md5($url).$type; - $content = ''; - if ( file_exists($cache_file) ) { - // check cache expiration - $this->refetch_cache_if_expired($url, $cache_file); - - $fh = fopen($cache_file, 'r'); - if ( $fh && filesize($cache_file) > 0 ) { - $content = fread($fh, filesize($cache_file)); - fclose($fh); - } - else { - // cannot open cache file so fetch it - $content = $this->fetch_and_cache($url, $cache_file); - } - } - else { - // no cache file. fetch from internet and save to local cache - $content = $this->fetch_and_cache($url, $cache_file); - } - return $content; - } - - function get_script_src_from_handle($handle) { - global $wp_scripts; - $ver = $wp_scripts->registered[$handle]->ver ? $wp_scripts->registered[$handle]->ver : $wp_scripts->default_version; - if ( isset($wp_scripts->args[$handle]) ) - $ver .= '&' . $wp_scripts->args[$handle]; - - $src = $wp_scripts->registered[$handle]->src; - if ( !preg_match('|^https?://|', $src) && !preg_match('|^' . preg_quote(WP_CONTENT_URL) . '|', $src) ) { - $src = $wp_scripts->base_url . $src; - } - - $src = add_query_arg('ver', $ver, $src); - $src = clean_url(apply_filters( 'script_loader_src', $src, $handle )); - - $wp_scripts->print_scripts_l10n( $handle ); - - return $src; - } - - function local_version($url) { - $site_url = trailingslashit(get_option('siteurl')); - $num_matches = preg_match('/^https?:\/\/.*?\//', $site_url, $matches); - $domain = $num_matches>0? $matches[0] : $site_url; // domain if found; the "slashed" site url otherwise - $url = str_replace($domain, '', $url); // relative paths only for local urls - $url = preg_replace('/^\//', '', $url); // strip front / if any - $url = preg_replace('/\?.*/i', '', $url); // throws away parameters, if any - return $url; - } - - function is_external($url, $localize=true) { - if ($localize) { - $url = $this->local_version($url); - } - - if (substr($url, 0, 4) != 'http' - && (substr($url, -3, 3) == '.js' || substr($url, -4, 4) == '.css')) { - return false; - } else { - return true; - } - } - - function get_js_location($src) { - if ( $this->debug ) - echo 'Script URL:'.$src."
\n"; - - $script_path = $this->local_version($src); - if ($this->is_external($script_path, false)) { - // fetch scripts if necessary - $this->fetch_content($src, '.js'); - $location = $this->cache_location . md5($src) . '.js'; - if ( $this->debug ) - echo 'External script detected, cached as:'. md5($src) . "
\n"; - } else { - // if script is local to server - $location = $script_path; - if ( $this->debug ) - echo 'Local script detected:'.$script_path."
\n"; - } - - return $location; - } - - function get_css_location($src) { - if ( $this->debug ) - echo 'Style URL:'.$src."
\n"; - - $css_path = $this->local_version($src); - if ($this->is_external($css_path, false)) { - // fetch scripts if necessary - $this->fetch_content($src, '.css'); - $location = $this->cache_location . md5($src) . '.css'; - if ( $this->debug ) - echo 'External css detected, cached as:'. md5($src) . "
\n"; - } else { - $location = $css_path; - // if css is local to server - if ( $this->debug ) - echo 'Local css detected:'.$css_path."
\n"; - } - - return $location; - } - - function build_minify_urls($locations) { - $minify_url = $this->c->get_plugin_url().'min/?f='; - $minify_url .= implode(',', $locations); - return $this->check_and_split_url($minify_url); - } - - function get_base_from_minify_args() { - $wpm_options = get_option($this->name); - if (!empty($wpm_options['extra_minify_options'])) { - if (preg_match('/\bb=([^&]*?)(&|$)/', trim($wpm_options['extra_minify_options']), $matches)) { - return trim($matches[1]); - } - } - return ''; - } - - function extract_css($content) { - $wpm_options = get_option($this->name); - $css_locations = array(); - - preg_match_all('/]*?)>/i', $content, $link_tags_match); - - foreach ($link_tags_match[0] as $link_tag) { - if ( strpos(strtolower($link_tag), 'stylesheet') ) { - // check CSS media type - if ( !strpos(strtolower($link_tag), 'media=' ) - || preg_match('/media=["\'](?:["\']|[^"\']*?(all|screen)[^"\']*?["\'])/', $link_tag ) - ) { - preg_match('/href=[\'"]([^\'"]+)/', $link_tag, $href_match); - if ( $href_match[1] ) { - // support external files? - if (!$wpm_options['cache_external'] && $this->is_external($href_match[1])) { - continue; // skip if we don't cache externals and this file is external - } - - // do not include anything in excluded list - $skip = false; - $exclusions = array_merge($this->default_exclude, $wpm_options['css_exclude']); - foreach ($exclusions as $exclude_pat) { - $exclude_pat = trim($exclude_pat); - if ( strlen($exclude_pat) > 0 && strpos($href_match[1], $exclude_pat) !== false ) { - $skip = true; - break; - } - } - if ( $skip ) continue; - - $content = str_replace($link_tag . '', '', $content); - $content = str_replace($link_tag, '', $content); - $css_locations[] = $this->get_css_location($href_match[1]); - } - } - } - } - - foreach ($wpm_options['css_include'] as $src) { - $css_locations[] = $this->get_css_location($src); - } - - return array($content, $css_locations); - } - - function inject_css($content, $css_locations) { - if ( count($css_locations) > 0 ) { - // build minify URLS - $css_tags = ''; - $minify_urls = $this->build_minify_urls($css_locations); - - $latest_modified = 0; - $base_path = trailingslashit($_SERVER['DOCUMENT_ROOT']); - $base_path .= trailingslashit($this->get_base_from_minify_args()); - - foreach ($css_locations as $location) { - $path = $base_path.$location; - $mtime = filemtime($path); - if ($latest_modified < $mtime) - $latest_modified = $mtime; - } - - foreach ($minify_urls as $minify_url) { - if ( $this->debug ) - echo 'Minify URL:'.$minify_url; - $css_tags .= ""; - } - - // HTML5 has
tags so account for those in regex - $content = preg_replace('/|\s[^>]*?>)/', "\\0\n$css_tags", $content, 1); // limit 1 replacement - } - return $content; - } - - function extract_conditionals($content) { - preg_match_all('//is', $content, $conditionals_match); - $content = preg_replace('//is', '###WPM-CSS-CONDITIONAL###', $content); - - $conditionals = array(); - foreach ($conditionals_match[0] as $conditional) { - $conditionals[] = $conditional; - } - - return array($content, $conditionals); - } - - function inject_conditionals($content, $conditionals) { - while (count($conditionals) > 0 && strpos($content, '###WPM-CSS-CONDITIONAL###')) { - $conditional = array_shift($conditionals); - $content = preg_replace('/###WPM-CSS-CONDITIONAL###/', $conditional, $content, 1); - } - - return $content; - } - - function extract_js($content) { - $wpm_options = get_option($this->name); - $js_locations = array(); - - preg_match_all('/]*?)><\/script>/i', $content, $script_tags_match); - - foreach ($script_tags_match[0] as $script_tag) { - if(strpos(strtolower($script_tag), 'text/javascript') !== false) { - preg_match('/src=[\'"]([^\'"]+)/', $script_tag, $src_match); - if ( $src_match[1] ) { - // support external files? - if (!$wpm_options['cache_external'] && $this->is_external($src_match[1])) { - continue; // skip if we don't cache externals and this file is external - } - - // do not include anything in excluded list - $skip = false; - $exclusions = array_merge($this->default_exclude, $wpm_options['js_exclude']); - foreach ($exclusions as $exclude_pat) { - $exclude_pat = trim($exclude_pat); - if ( strlen($exclude_pat) > 0 && strpos($src_match[1], $exclude_pat) !== false ) { - $skip = true; - break; - } - } - if ( $skip ) continue; - - $content = str_replace($script_tag, '', $content); - $js_locations[] = $this->get_js_location($src_match[1]); - } - } - } - - foreach ($wpm_options['js_include'] as $src) { - $js_locations[] = $this->get_js_location($src); - } - - return array($content, $js_locations); - } - - function inject_js($content, $js_locations) { - if ( count($js_locations) > 0 ) { - // build minify URLS - $js_tags = ''; - $minify_urls = $this->build_minify_urls($js_locations); - - $latest_modified = ''; - $base_path = trailingslashit($_SERVER['DOCUMENT_ROOT']); - $base_path .= trailingslashit($this->get_base_from_minify_args()); - - foreach ($js_locations as $location) { - $path = $base_path.$location; - $mtime = filemtime($path); - if ($latest_modified < $mtime) - $latest_modified = $mtime; - } - - foreach ($minify_urls as $minify_url) { - if ( $this->debug ) - echo 'Minify URL:'.$minify_url; - $js_tags .= ""; - } - - $wpm_options = get_option($this->name); - if ($wpm_options['js_in_footer']) { - $content = preg_replace('/<\/body>/', "$js_tags\n", $content, 1); // limit 1 replacement - } else { - // HTML5 has
tags so account for those in regex - $content = preg_replace('/|\s[^>]*?>)/', "\\0\n$js_tags", $content, 1); // limit 1 replacement - } - } - return $content; - } - - function pre_content() { - ob_start(array($this, 'modify_buffer')); - - // variable for sanity checking - $this->buffer_started = true; - } - - function modify_buffer($buffer) { - $wpm_options = get_option($this->name); - - // minify JS - if($wpm_options['enable_js']) { - list($buffer, $js_locations) = $this->extract_js($buffer); - $buffer= $this->inject_js($buffer, $js_locations); - } - - // minify CSS (make sure to exclude CSS conditionals) - if($wpm_options['enable_css']) { - list($buffer, $conditionals) = $this->extract_conditionals($buffer); - list($buffer, $css_locations) = $this->extract_css($buffer); - $buffer = $this->inject_css($buffer, $css_locations); - $buffer = $this->inject_conditionals($buffer, $conditionals); - } - - return $buffer; - } - - function post_content() { - // sanity checking - if($this->buffer_started) { - ob_end_flush(); - } - } - - function advertise() { - $wpm_options = get_option($this->name); - if ($wpm_options['show_link']) { - printf("

Page optimized by $this->name_proper WordPress Plugin

"); - } - } - - } // class wpm - -} // if !class_exists('WPMinify') - -require_once('common.php'); - -if (class_exists('WPMinify')) { - $wp_minify = new WPMinify(); -} - -?> diff --git a/blog/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css b/blog/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css deleted file mode 100644 index 1aff65a..0000000 --- a/blog/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css +++ /dev/null @@ -1,33 +0,0 @@ -/* @override - http://wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css - http://www.wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css -*/ - -/* ColorPicker & FancyBox Compressed */ - -/* @group Colorpicker */ - -.colorpicker{width:356px;height:176px;overflow:hidden;position:absolute;background:url(../images/colorpicker/colorpicker_background.png);font-family:Arial,Helvetica,sans-serif;display:none;}.colorpicker_color{width:150px;height:150px;left:14px;top:13px;position:absolute;background:#f00;overflow:hidden;cursor:crosshair;}.colorpicker_color div{position:absolute;top:0;left:0;width:150px;height:150px;background:url(../images/colorpicker/colorpicker_overlay.png);}.colorpicker_color div div{position:absolute;top:0;left:0;width:11px;height:11px;overflow:hidden;background:url(../images/colorpicker/colorpicker_select.gif);margin:-5px 0 0 -5px;}.colorpicker_hue{position:absolute;top:13px;left:171px;width:35px;height:150px;cursor:n-resize;}.colorpicker_hue div{position:absolute;width:35px;height:9px;overflow:hidden;background:url(../images/colorpicker/colorpicker_indic.gif) left top;margin:-4px 0 0 0;left:0px;}.colorpicker_new_color{position:absolute;width:60px;height:30px;left:213px;top:13px;background:#f00;}.colorpicker_current_color{position:absolute;width:60px;height:30px;left:283px;top:13px;background:#f00;}.colorpicker input{background-color:transparent;border:1px solid transparent;position:absolute;font-size:10px;font-family:Arial,Helvetica,sans-serif;color:#898989;top:4px;right:11px;text-align:right;margin:0;padding:0;height:11px;}.colorpicker_hex{position:absolute;width:72px;height:22px;background:url(../images/colorpicker/colorpicker_hex.png) top;left:212px;top:142px;}.colorpicker_hex input{right:6px;}.colorpicker_field{height:22px;width:62px;background-position:top;position:absolute;}.colorpicker_field span{position:absolute;width:12px;height:22px;overflow:hidden;top:0;right:0;cursor:n-resize;}.colorpicker_rgb_r{background-image:url(../images/colorpicker/colorpicker_rgb_r.png);top:52px;left:212px;}.colorpicker_rgb_g{background-image:url(../images/colorpicker/colorpicker_rgb_g.png);top:82px;left:212px;}.colorpicker_rgb_b{background-image:url(../images/colorpicker/colorpicker_rgb_b.png);top:112px;left:212px;}.colorpicker_hsb_h{background-image:url(../images/colorpicker/colorpicker_hsb_h.png);top:52px;left:282px;}.colorpicker_hsb_s{background-image:url(../images/colorpicker/colorpicker_hsb_s.png);top:82px;left:282px;}.colorpicker_hsb_b{background-image:url(../images/colorpicker/colorpicker_hsb_b.png);top:112px;left:282px;}.colorpicker_submit{position:absolute;width:22px;height:22px;background:url(../images/colorpicker/colorpicker_submit.png) top;left:322px;top:142px;overflow:hidden;}.colorpicker_focus{background-position:center;}.colorpicker_hex.colorpicker_focus{background-position:bottom;}.colorpicker_submit.colorpicker_focus{background-position:bottom;}.colorpicker_slider{background-position:bottom;} - -/* @end */ - -/* @group Fancybox */ - -div#fancy_overlay{position:fixed;top:0;left:0;width:100%;height:100%;display:none;z-index:30;}div#fancy_loading{position:absolute;height:40px;width:40px;cursor:pointer;display:none;overflow:hidden;background:transparent;z-index:100;}div#fancy_loading div{position:absolute;top:0;left:0;width:40px;height:480px;background:transparent url('../images/fancybox/fancy_progress.png') no-repeat;}div#fancy_outer{position:absolute;top:0;left:0;z-index:90;padding:20px 20px 25px;margin:0;background:transparent;display:none;}div#fancy_inner{position:relative;width:100%;height:100%;background:#FFF;}div#fancy_content{z-index:100;position:absolute;margin-top:0;margin-right:0;margin-bottom:0;}div#fancy_div{background:#eee;color:#444;height: 100%;width: 100%;z-index:100;text-shadow:#fff 0 1px 0;position:relative; - margin: 0; - border: 1px solid #c0ccce; -} -div#fancy_div p {padding: 5px;} -div#fancy_div h2 { - background-color: #cee6ef; - padding-bottom: 10px; - padding-top: 10px; - padding-left: 10px; - margin: 0; - border-bottom: 1px solid #c5d2d8; - letter-spacing: -1px; -}img#fancy_img{position:absolute;top:0;left:0;border:0;padding:0;margin:0;z-index:100;width:100%;height:100%;}div#fancy_close{position:absolute;top: -15px;height:30px;width:30px;background:url('../images/fancybox/fancy_closebox.png') top left no-repeat;cursor:pointer;z-index:181;display:none;left: -15px;}#fancy_frame{position:relative;width:100%;height:100%;display:none;}#fancy_ajax{width:100%;height:100%;overflow:auto;}a#fancy_left,a#fancy_right{position:absolute;bottom:0px;height:100%;width:35%;cursor:pointer;z-index:111;display:none;background-image:url("data:image/gif;base64,AAAA");outline:none;overflow:hidden;}a#fancy_left{left:0px;}a#fancy_right{right:0px;}span.fancy_ico{position:absolute;top:50%;margin-top:-15px;width:30px;height:30px;z-index:112;cursor:pointer;display:block;}span#fancy_left_ico{left:-9999px;background:transparent url('../images/fancybox/fancy_left.png') no-repeat;}span#fancy_right_ico{right:-9999px;background:transparent url('../images/fancybox/fancy_right.png') no-repeat;}a#fancy_left:hover,a#fancy_right:hover{visibility:visible;background-color:transparent;}a#fancy_left:hover span{left:20px;}a#fancy_right:hover span{right:20px;}#fancy_bigIframe{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;}div#fancy_bg{position:absolute;top:0;left:0;width:100%;height:100%;z-index:70;border:0;padding:0;margin-top:0;margin-right:0;margin-bottom:0;}div.fancy_bg{position:absolute;display:block;z-index:70;border:0;padding:0;margin:0;}div#fancy_bg_n{top:-20px;width:100%;height:20px;background:transparent url('../images/fancybox/fancy_shadow_n.png') repeat-x;}div#fancy_bg_ne{top:-20px;right:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_ne.png') no-repeat;}div#fancy_bg_e{right:-20px;height:100%;width:20px;background:transparent url('../images/fancybox/fancy_shadow_e.png') repeat-y;}div#fancy_bg_se{bottom:-20px;right:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_se.png') no-repeat;}div#fancy_bg_s{bottom:-20px;width:100%;height:20px;background:transparent url('../images/fancybox/fancy_shadow_s.png') repeat-x;}div#fancy_bg_sw{bottom:-20px;left:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_sw.png') no-repeat left bottom;}div#fancy_bg_w{left:-20px;height:100%;width:20px;background:transparent url('../images/fancybox/fancy_shadow_w.png') repeat-y;}div#fancy_bg_nw{top:-20px;left:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_nw.png') no-repeat;} - - - -/* @end */ \ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/admin-css/bnc-global.css b/blog/wp-content/plugins/wptouch/admin-css/bnc-global.css deleted file mode 100644 index 507e44a..0000000 --- a/blog/wp-content/plugins/wptouch/admin-css/bnc-global.css +++ /dev/null @@ -1,222 +0,0 @@ -/* @override - http://wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-global.css - http://www.wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-global.css -*/ - -/* Global styles applied to BraveNewCode plugins */ - -/* @group Global Plugin Styles */ - -#bnc-global { - color: #444; - margin-bottom: 35px; - width: 98%; -} - -#bnc-global .postbox { - padding: 10px; - position: relative; - overflow: hidden; - -webkit-box-shadow: #ccc 0px 1px 6px; -} - -#bnc-global .postbox h3 { - margin: -10px -10px 0; - cursor: default; -} - -#bnc-global a { - text-decoration: none; - font-size: 11px; -} - -#bnc-global a.orange-link { - color: #d54e21; -} - -#bnc-global a.orange-link:hover { - color: #3c627f; -} - -#bnc-global a.fancylink { - color: red; - font-weight: bold; - text-decoration: underline; -} - -#bnc-global, #bnc-global .postbox, #bnc-global .postbox ul, #bnc-global .postbox p, #bnc-global p { - margin-top: 10px; - font-size: 11px; -} - -#bnc-global .left-content { - width: 28%; - float: left; - padding-right: 10px; - margin-top: 10px; - position: relative; -} - -#bnc-global .left-content h4 { - margin: 2px 0 0; - padding: 0 0 4px; - letter-spacing: 0; - color: #d54e21; - font-size: 11px; - line-height: 13px; -} - -#bnc-global .left-content p { - margin-top: 0; -} - -#bnc-global .left-content ul { - -webkit-border-radius: 5px; - -moz-border-radius: 5px; -} - -#bnc-global .left-content li { - color: #536e90; - margin: 0 5px; - padding: 1px 0; - list-style-type: circle; - list-style-position: inside; -} - -#bnc-global .right-content li { - list-style-type: none; -} - -#bnc-global .right-content { - width: 63%; - float: left; - margin-left: 3%; - border-left: 1px solid #e6e6e6; - padding-bottom: 45px; - padding-left: 10px; - margin-bottom: -30px; -} - -#bnc-global .bnc-clearer { - clear: both; -} - -#bnc-global select { - vertical-align: baseline; - width: 176px; - margin-right: 5px; - border: 1px solid #6caccd; -} - -#bnc-global input.checkbox { - margin-right: 5px; - vertical-align: middle; - width: auto; - border-style: none; -} - -#bnc-global input { - border: 2px solid #a4c6d3; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - margin-right: 7px; - width: 177px; - color: #555; - font-size: 11px; - background-color: #ebf1ff; - margin-left: 5px; -} - -#bnc-global ul.wptouch-make-li-italic li { - font-style: italic; -} - -/* @end */ - -/* @group Global H3 Icons */ - -#bnc-global h3 span { - background: no-repeat 0 0; - height: 16px; - margin-right: 5px; - width: 16px; - display: block; - float: left; - bottom: 2px; - position: relative; -} - -#bnc-global h3 span.global-settings { - background: url(../images/h3_icons/general.png); -} - -#bnc-global h3 span.advanced-options { - background: url(../images/h3_icons/advanced.png); -} - -#bnc-global h3 span.push-options { - background: url(../images/h3_icons/push.png); -} - -#bnc-global h3 span.style-options { - background: url(../images/h3_icons/style.png); -} - -#bnc-global h3 span.icon-options { - background: url(../images/h3_icons/iconpool.png); -} - -#bnc-global h3 span.page-options { - background: url(../images/h3_icons/page.png); -} - -#bnc-global h3 span.adsense-options { - background: url(../images/h3_icons/adsense.png); -} - -#bnc-global h3 span.plugin-options { - background: url(../images/h3_icons/plugin.png); -} - -#bnc-global h3 span.rss-head { - background: url(../images/h3_icons/rss.png) 0 1px; -} - -/* @end */ - -/* @group Save/Restore Button Area */ - -#bnc-global .bnc-plugin-version { - float: right; - font: 18px Georgia, "Times New Roman", Times, serif; - color: #70777a; - text-shadow: #fff -1px -1px 0; - letter-spacing: -1px; - margin-top: 2px; - position: relative; - left: 10px; - margin-bottom: 25px; -} - -#bnc-global input#bnc-button { - color: #fff; -} - -#bnc-global input#bnc-button, #bnc-global input#bnc-button-reset { - border: 2px solid #b2cfe4; - float: left; - width: 12%; - padding: 4px; -} - -#bnc-global input#bnc-button-reset:hover { - border-color: red; - color: red; -} - -#bnc-global input#bnc-button:hover { - border: 2px solid #305769; - color: #cdebfd; -} - -/* @end */ \ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/admin-css/wptouch-admin.css b/blog/wp-content/plugins/wptouch/admin-css/wptouch-admin.css deleted file mode 100644 index 69424d6..0000000 --- a/blog/wp-content/plugins/wptouch/admin-css/wptouch-admin.css +++ /dev/null @@ -1,475 +0,0 @@ -/* @override - http://wptouch.com/wp-content/plugins/wptouch/admin-css/wptouch-admin.css - http://www.wptouch.com/wp-content/plugins/wptouch/admin-css/wptouch-admin.css -*/ - -/* WPtouch 1.9 Admin CSS */ - -/* @group head-area.php */ - -#wptouch-head .postbox { - background: #fff url(../images/wptouch-icon.jpg) no-repeat 101% 100%; - overflow: hidden; - position: relative; -} - -#wptouch-head #wptouch-head-colour { - background-color: #b7c9d6; - padding: 10px; - margin: -10px -10px -20px; - -webkit-border-top-right-radius: 5px; - -webkit-border-top-left-radius: 5px; - -moz-border-radius-topright: 5px; - -moz-border-radius-topleft: 5px; - border: 1px solid #e5f0f2; - border-bottom: 1px solid #a2bdbf; -} - -#wptouch-head-title { - font: bold 22px Georgia, "Times New Roman", Times, serif; - color: #333c42; - text-shadow: #deeefa 0 1px 0; - letter-spacing: -1px; - margin: 0; - padding: 0; - float: left; -} - -#wptouch-head .postbox img.ajax-load { - margin-left: 5px; - margin-bottom: -2px; -} - -#wptouch-head-links { - float: right; - position: relative; - bottom: 6px; -} - -#wptouch-head-links a { - color: #333c42; - font-weight: bold; - text-shadow: #cddce8 0 1px 0; -} - -#wptouch-head-links a:hover { - color: #d54e21; - text-shadow: #cedeea 0 1px 0; -} - -#wptouch-head-links li { - display: inline; - color: #618299; - text-shadow: #bfdfe8 1px 1px 0; -} - -#wptouch-news-support { - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - margin-top: 30px; - width: 100%; - height: 170px; - text-transform: capitalize; -} - -#wptouch-head h3 { - color: #444; - -webkit-border-radius: 0px; - -moz-border-radius: 0px; -} - -/* @group Latest News */ - -#wptouch-news-wrap { - float: left; - width: 45%; - margin: 0; - padding: 0; -} - -#wptouch-news-wrap h3 { - padding-left: 10px; - display: block; - width: 100%; -} - -#wptouch-support-wrap { - color: #777; - float: left; - width: 55%; - padding: 0; - margin: 0; - -} - -#wptouch-support-wrap ul { -} - -#wptouch-support-wrap ul li { - width: 70%; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; -} - -#wptouch-support-wrap ul li a{ - text-overflow: ellipsis; -} - -#wptouch-support-wrap h3 { - display: block; - width: 100%; - position: relative; - padding-right: 12px; -} - -#wptouch-news-support li { - border-bottom: 1px solid #e6e6e6; - margin: 0; - padding: 3px 0; - list-style-type: circle; - list-style-position: inside; - color: #c1cfd1; - width: 80%; -} - -#wptouch-news-support li:last-child { - border-bottom-style: none; -} - -/* @end */ - -/* @end */ - -/* @group general-settings.php */ - -input.no-right-margin { - position: relative; - right: 5px; -} - -#bnc-global strong.no-pages { - color: red; - padding: 6px 15px 7px 25px; - display: inline-block; - margin-bottom: 15px; - border: 1px dashed #cf931d; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - background: #fee8b9 url(../images/sortof.png) no-repeat 5px center; - margin-top: 5px; -} - -/* @end */ - -/* @group advanced-area.php */ - -em.supported { - color: #8a9ba8; - display: block; - line-height: 16px; - margin-top: 3px; -} - -/* @end */ - -/* @group push-area.php */ - -#push-area li input { - position: relative; - right: 5px; - width: 275px; -} - -#push-area li input.checkbox { - position: relative; - left: 0; -} - -#push-area li select { - width: auto; -} - -/* @end */ - -/* @group style-area.php */ - -#bnc-global ul.wptouch-select-options li { - margin-left: 6px; -} - -/* @group Skins-Menu */ - -#bnc-global .skins-desc input { - width: 54px; -} - -#bnc-global .skins-desc select { - width: 120px; - margin-left: 12px; -} - -/* @end */ - -/* @end */ - -/* @group icons-area.php */ - -#bnc-global ul.wptouch-iconblock { - width: auto; - height: auto; -} - -#bnc-global ul.wptouch-iconblock li { - width: 80px; - color: #666; - font-size: 9px; - text-align: center; - margin: 3px; - height: 55px; - padding-top: 10px; - position: relative; - float: left; -} - -#bnc-global .default ul.wptouch-iconblock li { - background-color: #fefae7; - border: 1px dashed #dcdcdc; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; -} - -#bnc-global .custom ul.wptouch-iconblock li { - background-color: #e6f4fe; - border: 1px dashed #becbcf; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; -} - -#bnc-global .custom ul.wptouch-iconblock li:hover { - border-style: solid; - border-color: #c58989; - background-color: #fba7a7; - color: #000; -} - -#bnc-global .custom ul.wptouch-iconblock li a { - color: red; -} - -#bnc-global ul.wptouch-iconblock img { - width: 32px; - height: 32px; -} - -#bnc-global #upload_button { - background: url(../images/upload.png) 0 0; - width: 174px; - height: 45px; - cursor: pointer !important; - display: block; - margin-bottom: 10px; -} - -#bnc-global #upload_progress { - position: relative; - display: block; - font-weight: bold; - color: #1a4977; - margin-top: 10px; -} - -#bnc-global #upload_progress img { - position: relative; - top: 4px; -} - -#bnc-global #extras_button { - display: block; - border-top: 1px solid #eee; - padding-top: 10px; -} - -/* @end */ - -/* @group page-area.php */ - -#bnc-global .wptouch-pages span { - display: block; - margin-top: 5px; - text-align: left; - width: 68%; - float: right; -} - -#bnc-global .wptouch-pages strong { - color: red; - padding: 6px 15px 7px 25px; - display: inline-block; - margin-bottom: 15px; - border: 1px dashed #cf931d; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - background: #fee8b9 url(../images/sortof.png) no-repeat 5px center; - margin-top: 5px; -} - -#bnc-global .wptouch-pages select { - width: 30%; -} - -#bnc-global .wptouch-pages .checkbox { - margin-left: -1px; -} - -/* @end */ - -/* @group ads-stats-area.php */ - -textarea#wptouch-stats { - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - width: 95%; - margin-left: 5px; - margin-top: 45px; - height: 100px; - margin-bottom: 15px; - color: #444; - font-size: 11px; - border-width: 2px; - border-color: #a4c6d3; - background-color: #ebf1ff; -} - -/* @end */ - -/* @group plugin-compat-area.php */ - -#bnc-global .all-good { - border: 1px solid #8aceff; - padding: 3px 15px 4px 27px; - display: block; - margin-bottom: 5px; - font-size: 11px; - line-height: 15px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - background: #e2f5fe url(../images/good.png) no-repeat 5px center; -} - -#bnc-global .sort-of { - border: 1px solid #f8c44f; - background: #fee8b9 url(../images/sortof.png) no-repeat 5px center; - padding: 3px 15px 4px 27px; - display: block; - margin-bottom: 5px; - font-size: 11px; - line-height: 15px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; -} - -#bnc-global .too-bad { - border: 1px solid #f96764; - padding: 3px 15px 4px 27px; - display: block; - margin-bottom: 5px; - font-size: 11px; - line-height: 15px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - background: #fcb2b5 url(../images/bad.png) no-repeat 5px center; -} - -#bnc-global img.support { - position: relative !important; - top: 4px; - margin-right: 1px; -} - -#bnc-global .left-content p.wpv { - margin: 2px 0 5px; - padding: 0; - font-weight: bold; -} - -#bnc-global .left-content p.wptv { - padding: 0 0 10px; - border-bottom: 1px solid #dcdcdc; - font-style: italic; -} - -#bnc-global .left-content span.go, #bnc-global .right-content p.valid { - font-weight: bold; - color: green; -} - -#bnc-global .left-content span.caution { - color: #f8b615; - font-weight: bold; -} - -#bnc-global .left-content span.red, .right-content p.invalid { - color: red; - font-weight: bold; -} - -/* @end */ - -/* @group Settings/Reset Updated */ - -#bnc-global #wptouchupdated { - position: fixed; - top: 0; - left: 0; - z-index: 1000; - overflow: hidden; - margin-left: auto; - margin-right: auto; - opacity: 0.9; - height: auto; - width: 100%; -} - -#bnc-global #wptouchupdated p.saved { - color: #daeffe; - -webkit-border-radius: 22px; - -moz-border-radius: 22px; - text-align: center; - text-shadow: #000 -1px -1px 1px; - letter-spacing: -1px; - font: bold 22px "Myriad Pro", "Trebuchet MS", "Lucida Sans Unicode", sans-serif; - height: 155px; - background: #222 url(../images/saved.png) no-repeat center 10px; - width: 170px; - margin-top: 15%; - margin-left: auto; - margin-right: auto; - padding: 12px; - -webkit-box-shadow: #000 0px 0px 32px; -} - -#bnc-global #wptouchupdated p.reset { - color: #dcdcdc; - -webkit-border-radius: 22px; - -moz-border-radius: 22px; - text-align: center; - text-shadow: #000 -1px -1px 1px; - letter-spacing: -1px; - font: bold 22px "Myriad Pro", "Trebuchet MS", "Lucida Sans Unicode", sans-serif; - height: 155px; - background: #222 url(../images/reset.png) no-repeat center 10px; - width: 170px; - margin-top: 15%; - margin-left: auto; - margin-right: auto; - padding: 12px; - -webkit-box-shadow: #000 0px 0px 32px; -} - -#bnc-global #wptouchupdated p span { - display: block; - margin-top: 110px; -} - -/* @end */ \ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/ajax/file_upload.php b/blog/wp-content/plugins/wptouch/ajax/file_upload.php deleted file mode 100644 index 4096c4e..0000000 --- a/blog/wp-content/plugins/wptouch/ajax/file_upload.php +++ /dev/null @@ -1,36 +0,0 @@ -There seems to have been an error.

Please try your upload again.

'); - } else { - echo __( '

File has been saved!

'); - echo '

'; - echo sprintf(__( "%sClick here to refresh the page%s and see your icon.", "wptouch" ), '',''); - echo '

'; - } - } else { - echo __( '

Sorry, only PNG, GIF and JPG images are supported.

', 'wptouch' ); - } - } else echo __( '

Image too large. try something like 59x60.

', 'wptouch' ); - } - } else echo __( '

Insufficient priviledges.

You need to either be an admin or have more control over your server.

', 'wptouch' ); -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/ajax/load-plugins.php b/blog/wp-content/plugins/wptouch/ajax/load-plugins.php deleted file mode 100644 index 7367cf2..0000000 --- a/blog/wp-content/plugins/wptouch/ajax/load-plugins.php +++ /dev/null @@ -1,12 +0,0 @@ -offsiteok = true; /* allow a redirect to different domain */ - $result = $snoopy->fetch( 'http://www.bravenewcode.com/custom/wptouch-plugin-compat-list.php' ); -if($result) { - echo $snoopy->results; -} else { - echo '

We were not able to load the Wire panel on your server.

'; -} -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/ads-stats-area.php b/blog/wp-content/plugins/wptouch/html/ads-stats-area.php deleted file mode 100644 index 1048b79..0000000 --- a/blog/wp-content/plugins/wptouch/html/ads-stats-area.php +++ /dev/null @@ -1,35 +0,0 @@ - - -
-
-

 

- -
-

-

-

-
-

-


-

-

?

- - -
- -
-
    -
  • -
  • -
- - - -
-
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/advanced-area.php b/blog/wp-content/plugins/wptouch/html/advanced-area.php deleted file mode 100644 index 21d1f27..0000000 --- a/blog/wp-content/plugins/wptouch/html/advanced-area.php +++ /dev/null @@ -1,136 +0,0 @@ - - -
-
-

 

- -
-

-

-
-

-

-

%s", "wptouch" ), implode( ", ", bnc_wptouch_get_user_agents() ) ); ?>

- -
- -
-
    -
  • - /> - - -
  • - -
  • - /> - - -
  • - -
  • - /> - - -
  • - -
  • - /> - - -
  • - -
  • - disabled="true" name="enable-gigpress-button" /> - - -
  • -
  • - disabled="true" name="enable-show-tweets" /> - -

    -
  • - - -
  • - /> - - -
  • - - -
  • - /> - -
  • - - -
  • - /> - - -
  • - - -

  • - /> - - -
  • - -
  • - /> - - - -
      -
    • -
    -
  • - -
-
-
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/general-settings-area.php b/blog/wp-content/plugins/wptouch/html/general-settings-area.php deleted file mode 100644 index f81729d..0000000 --- a/blog/wp-content/plugins/wptouch/html/general-settings-area.php +++ /dev/null @@ -1,103 +0,0 @@ - - -
-
-

 

- -
-

-

', '' ); ?>

- -

-

- - -

-

- -

-

- - -

-

-

-

-
- -
-

- - - - - - - -


- -
    -
  • -
- -
- -
    -
  • -
- -
- -
    - -
  • - -
  • -
- -
- -
    -
    • - -
    • - () ? - - -
    • -
    -
  • -
  • - /> - -
  • -
  • - /> - -
  • -
  • - /> - -
  • -
  • - /> - -
  • -
-
- -
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/head-area.php b/blog/wp-content/plugins/wptouch/html/head-area.php deleted file mode 100644 index 169fa56..0000000 --- a/blog/wp-content/plugins/wptouch/html/head-area.php +++ /dev/null @@ -1,57 +0,0 @@ - - -
-
-
-
- - ajax -
- -
-
- -
- -
-

 

- -
- -
-

 

- -
- -
- -
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/icon-area.php b/blog/wp-content/plugins/wptouch/html/icon-area.php deleted file mode 100644 index d9e5f01..0000000 --- a/blog/wp-content/plugins/wptouch/html/icon-area.php +++ /dev/null @@ -1,37 +0,0 @@ - - - -
-
-

 

- -
-

- -

- -

-

", "" ); ?>

-

%s%s/wptouch/custom-icons%s
folder we create.", "wptouch"), "", str_replace( ABSPATH, "", compat_get_upload_dir() ), "" ); ?>

-

", "" ); ?>

- -
- - - -
- - -
- -
- -
- -
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/page-area.php b/blog/wp-content/plugins/wptouch/html/page-area.php deleted file mode 100644 index a654402..0000000 --- a/blog/wp-content/plugins/wptouch/html/page-area.php +++ /dev/null @@ -1,61 +0,0 @@ - - -
-
-

 

- -
-

& Default Menu Items", "wptouch" ); ?>

-

-

-

-

-

-

-

-
- -
-
    -
  • - -
    -
  • -
-
    -
  • />
  • -
  • />
  • -
  • />


  • - - -


  • - - -
  • - - - - -
  • - ID] ) ) echo " checked"; ?> /> - - - - -
  • - - - - -
-
-
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/plugin-compat-area.php b/blog/wp-content/plugins/wptouch/html/plugin-compat-area.php deleted file mode 100644 index 4fed1d5..0000000 --- a/blog/wp-content/plugins/wptouch/html/plugin-compat-area.php +++ /dev/null @@ -1,74 +0,0 @@ - - - - -
-
-

 

- -
-
- '; - echo __( 'WordPress version: ', 'wptouch' ); - echo '' . get_bloginfo('version') . ''; - echo '

'; - echo __( '' . wptouch() . ' support: ', 'wptouch' ); - if ($version > 2.91) { - echo sprintf(__( "%Unverified%s", "wptouch" ), '',''); - } elseif ($version >= 2.7) { - echo sprintf(__( "%sFully Supported%s", "wptouch" ), '',''); - } else { - echo sprintf(__( "%Unsupported. Upgrade Required.%s", "wptouch" ), '',''); - } - echo '

'; - ?> -
-

-

',''); ?>

-

', '' ); ?>

-
- -
- -

- - post->ID) { - echo '
' . __( "All of your WP links will automatically show on your page called 'Links'.", "wptouch" ) . '
'; - } else { - echo '
' . __( "If you create a page called 'Links', all your WP links would display in WPtouch style.", "wptouch" ) . '
'; } ?> - - post->ID && function_exists('get_flickrRSS')) { - echo '
' . __( 'All your FlickrRSS images will automatically show on your page called \'Photos\'.', 'wptouch' ) . '
'; - } elseif ($photos_page_check->post->ID && !function_exists('get_flickrRSS')) { - echo '
' . __( 'You have a page called \'Photos\', but don\'t have FlickrRSS installed.', 'wptouch' ) . '
'; - } elseif (!$photos_page_check->post->ID && function_exists('get_flickrRSS')) { - echo '
' . __( 'If you create a page called \'Photos\', all your FlickrRSS photos would display in WPtouch style.', 'wptouch' ) . '
'; - } else { - - echo '
' . __( 'If you create a page called \'Photos\', and install the FlickrRSS plugin, your photos would display in WPtouch style.', 'wptouch' ) . '
'; - } - ?> - - post->ID) { - echo '
' . __( 'Your tags and your monthly listings will automatically show on your page called \'Archives\'.', 'wptouch' ) . '
'; - } else { - echo '
' . __( 'If you had a page called \'Archives\', your tags and monthly listings would display in WPtouch style.', 'wptouch' ) . '
'; - } - ?> - -

- -
-
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/push-area.php b/blog/wp-content/plugins/wptouch/html/push-area.php deleted file mode 100644 index 09f36e5..0000000 --- a/blog/wp-content/plugins/wptouch/html/push-area.php +++ /dev/null @@ -1,61 +0,0 @@ - -
-
-

 

- -
-

',''); ?>

-

',''); ?>

-
- -
-
    - -
  • - (',''); ?> - ?) - - - -

    - -

    -
    - -

    - - -
  • -
- -
    -
  • - /> - -
  • -
  • - disabled="true" type="checkbox" name="enable-prowl-users-button" /> - -
  • -
  • - /> - - -
  • - -
  • ',''); ?>
  • - -
-
-
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/html/style-area.php b/blog/wp-content/plugins/wptouch/html/style-area.php deleted file mode 100644 index 4f73c6f..0000000 --- a/blog/wp-content/plugins/wptouch/html/style-area.php +++ /dev/null @@ -1,76 +0,0 @@ - - -
-
-

 

- -
-

-
- -
- - - - -
-

-
    -
  • - -
  • -
  • - -
  • -
  • #
  • -
  • #
  • -
  • #
  • -
  • #
  • -
-
- -
-
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/wptouch/images/admin-ajax-loader.gif b/blog/wp-content/plugins/wptouch/images/admin-ajax-loader.gif deleted file mode 100644 index f3373e4..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/admin-ajax-loader.gif and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/bad.png b/blog/wp-content/plugins/wptouch/images/bad.png deleted file mode 100644 index e05689e..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/bad.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/blank.gif b/blog/wp-content/plugins/wptouch/images/colorpicker/blank.gif deleted file mode 100644 index 75b945d..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/blank.gif and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_background.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_background.png deleted file mode 100644 index cf55ffd..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_background.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hex.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hex.png deleted file mode 100644 index 888f444..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hex.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_b.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_b.png deleted file mode 100644 index 2f99dae..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_b.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_h.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_h.png deleted file mode 100644 index a217e92..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_h.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_s.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_s.png deleted file mode 100644 index 7826b41..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_s.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_indic.gif b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_indic.gif deleted file mode 100644 index f9fa95e..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_indic.gif and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_overlay.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_overlay.png deleted file mode 100644 index 561cdd9..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_overlay.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_b.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_b.png deleted file mode 100644 index 80764e5..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_b.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_g.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_g.png deleted file mode 100644 index fc9778b..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_g.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_r.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_r.png deleted file mode 100644 index 91b0cd4..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_r.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_submit.png b/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_submit.png deleted file mode 100644 index cd202cd..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/colorpicker_submit.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/select.png b/blog/wp-content/plugins/wptouch/images/colorpicker/select.png deleted file mode 100644 index 2cd2cab..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/select.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/colorpicker/slider.png b/blog/wp-content/plugins/wptouch/images/colorpicker/slider.png deleted file mode 100644 index 8b03da9..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/colorpicker/slider.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/default.jpg b/blog/wp-content/plugins/wptouch/images/default.jpg deleted file mode 100644 index 4182d2d..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/default.jpg and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_closebox.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_closebox.png deleted file mode 100644 index 4de4396..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_closebox.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_progress.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_progress.png deleted file mode 100644 index 06b7c89..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_progress.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_e.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_e.png deleted file mode 100644 index 540de31..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_e.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_n.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_n.png deleted file mode 100644 index 153ade4..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_n.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_ne.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_ne.png deleted file mode 100644 index 492c27c..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_ne.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_nw.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_nw.png deleted file mode 100644 index 505ceaf..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_nw.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_s.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_s.png deleted file mode 100644 index 29023eb..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_s.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_se.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_se.png deleted file mode 100644 index 301ae23..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_se.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_sw.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_sw.png deleted file mode 100644 index f1b77ab..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_sw.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_w.png b/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_w.png deleted file mode 100644 index 05f8de9..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_w.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/good.png b/blog/wp-content/plugins/wptouch/images/good.png deleted file mode 100644 index 25db9f7..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/good.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/adsense.png b/blog/wp-content/plugins/wptouch/images/h3_icons/adsense.png deleted file mode 100644 index 01c6dbe..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/adsense.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/advanced.png b/blog/wp-content/plugins/wptouch/images/h3_icons/advanced.png deleted file mode 100644 index 7062dea..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/advanced.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/general.png b/blog/wp-content/plugins/wptouch/images/h3_icons/general.png deleted file mode 100644 index 52d61be..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/general.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/iconpool.png b/blog/wp-content/plugins/wptouch/images/h3_icons/iconpool.png deleted file mode 100644 index b9b5e45..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/iconpool.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/page.png b/blog/wp-content/plugins/wptouch/images/h3_icons/page.png deleted file mode 100644 index eaed699..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/page.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/plugin.png b/blog/wp-content/plugins/wptouch/images/h3_icons/plugin.png deleted file mode 100644 index 10a5ebb..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/plugin.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/push.png b/blog/wp-content/plugins/wptouch/images/h3_icons/push.png deleted file mode 100644 index bb1d30f..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/push.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/rss.png b/blog/wp-content/plugins/wptouch/images/h3_icons/rss.png deleted file mode 100644 index 91fb679..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/rss.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/h3_icons/style.png b/blog/wp-content/plugins/wptouch/images/h3_icons/style.png deleted file mode 100644 index 941b597..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/h3_icons/style.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Admin.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Admin.png deleted file mode 100644 index 6b73d80..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Admin.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Apps.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Apps.png deleted file mode 100644 index 62fec5f..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Apps.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Archives.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Archives.png deleted file mode 100644 index e010b32..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Archives.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Books.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Books.png deleted file mode 100644 index b09bb59..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Books.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Calendar.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Calendar.png deleted file mode 100644 index 2d1928d..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Calendar.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Camera.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Camera.png deleted file mode 100644 index d84213c..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Camera.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Clock.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Clock.png deleted file mode 100644 index c030f29..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Clock.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Colors.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Colors.png deleted file mode 100644 index 56b6543..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Colors.png and /dev/null differ diff --git a/blog/wp-content/plugins/wptouch/images/icon-pool/Contacts.png b/blog/wp-content/plugins/wptouch/images/icon-pool/Contacts.png deleted file mode 100644 index c2ee334..0000000 Binary files a/blog/wp-content/plugins/wptouch/images/icon-pool/Contacts.png and /dev/null differ