<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Tag: uploadplus</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Tag: uploadplus</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 15:56:33 +0000</pubDate>

<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-1071981</link>
<pubDate>Tue, 12 May 2009 13:37:52 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">1071981@http://wordpress.org/support/</guid>
<description>&#60;p&#62;just replaced all occurances of 'misc' with 'media' and now I have these settings under =&#38;gt; options =&#38;gt; media where I think they fit in well, working with wpmu 2.7.1
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-1013230</link>
<pubDate>Thu, 12 Mar 2009 11:02:18 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">1013230@http://wordpress.org/support/</guid>
<description>&#60;p&#62;somewhat. unfortunately wpmu doesn't have the options menu where you moved the settings to :-( this was a great plugin for wpmu, keeping uploads in a certain format...&#60;/p&#62;
&#60;p&#62;btw. I am also interested how I can change the plugin's defaults :-)
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-1013222</link>
<pubDate>Thu, 12 Mar 2009 10:52:54 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">1013222@http://wordpress.org/support/</guid>
<description>&#60;p&#62;oh, I think wpmu doesn't have that miscellaneous options page!? I have to stick to an older patched version for wpmu :-(
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-1006298</link>
<pubDate>Thu, 05 Mar 2009 14:14:48 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">1006298@http://wordpress.org/support/</guid>
<description>&#60;p&#62;sorry guys, always using the latest version wp 2.7.1 and wpmu 2.7 and have been using your last version until it broke than one patched by a guy in this forum, then upgraded to this version and the menu doesn't show up like I explained above...&#60;br /&#62;
can't add more info to this...
&#60;/p&#62;</description>
</item>
<item>
<title>Bossy on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-1001468</link>
<pubDate>Sat, 28 Feb 2009 23:18:24 +0000</pubDate>
<dc:creator>Bossy</dc:creator>
<guid isPermaLink="false">1001468@http://wordpress.org/support/</guid>
<description>&#60;p&#62;@Ovidiu: It looks like the description isn't updated yet. It still directs to &#60;a href=&#34;http://example.com/wp-admin/options-general.php?page=uploadplus&#34; rel=&#34;nofollow&#34;&#62;http://example.com/wp-admin/options-general.php?page=uploadplus&#60;/a&#62; where it should direct to &#60;a href=&#34;http://example.com/wp-admin/options-misc.php&#34; rel=&#34;nofollow&#34;&#62;http://example.com/wp-admin/options-misc.php&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>pixline on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-1000039</link>
<pubDate>Fri, 27 Feb 2009 13:48:41 +0000</pubDate>
<dc:creator>pixline</dc:creator>
<guid isPermaLink="false">1000039@http://wordpress.org/support/</guid>
<description>&#60;p&#62;this is my first plugin coding attempt after several months without WordPress at all, so I'm probably missing some old good practice. I'm trying to do my best, that's for sure.&#60;/p&#62;
&#60;p&#62;apart from that: which WP/WPMU version? the option panel is supposed to be under the options -&#38;gt; general settings page : &#60;a href=&#34;http://blog/wp-admin/options-misc.php&#34; rel=&#34;nofollow&#34;&#62;http://blog/wp-admin/options-misc.php&#60;/a&#62;&#60;br /&#62;
I'll probably have to triplecheck all this weekend...
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-999809</link>
<pubDate>Fri, 27 Feb 2009 06:51:39 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">999809@http://wordpress.org/support/</guid>
<description>&#60;p&#62;ok, updated, now it activates, but I can't find the settings menu. then I noticed on the plugins page, is a link to the settings: &#60;a href=&#34;http://myblog/wp-admin/options-general.php?page=uploadplus&#34; rel=&#34;nofollow&#34;&#62;http://myblog/wp-admin/options-general.php?page=uploadplus&#60;/a&#62; so I clicked it and get a blank page saying: Cannot load uploadplus.
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-999804</link>
<pubDate>Fri, 27 Feb 2009 06:48:03 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">999804@http://wordpress.org/support/</guid>
<description>&#60;p&#62;ts,ts,ts ;-)
&#60;/p&#62;</description>
</item>
<item>
<title>pixline on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-998831</link>
<pubDate>Thu, 26 Feb 2009 12:41:27 +0000</pubDate>
<dc:creator>pixline</dc:creator>
<guid isPermaLink="false">998831@http://wordpress.org/support/</guid>
<description>&#60;p&#62;my usual commit error, sorry. I forgot the utf8_to_ascii folder, now both in trunk and 2.7.
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] activation error"</title>
<link>http://wordpress.org/support/topic/247691#post-998688</link>
<pubDate>Thu, 26 Feb 2009 07:26:01 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">998688@http://wordpress.org/support/</guid>
<description>&#60;p&#62;getting this error on activation:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Plugin could not be activated because it triggered a fatal error.
Warning: require_once(utf8_to_ascii/utf8_to_ascii.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/web80/web/wp-content/plugins/uploadplus/uploadplus.php on line 37&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;any ideas?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/uploadplus/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/uploadplus/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>pixline on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-998538</link>
<pubDate>Thu, 26 Feb 2009 03:48:16 +0000</pubDate>
<dc:creator>pixline</dc:creator>
<guid isPermaLink="false">998538@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I've just committed a somewhat working version for 2.7. Hope it works for you.
&#60;/p&#62;</description>
</item>
<item>
<title>pixline on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-998149</link>
<pubDate>Wed, 25 Feb 2009 20:28:30 +0000</pubDate>
<dc:creator>pixline</dc:creator>
<guid isPermaLink="false">998149@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm really sorry for disappearing, several personal and work issues on top of each others.  There's a major API change in WordPress 2.7, by the way, so this is another plugin that needs a partial rewrite.&#60;/p&#62;
&#60;p&#62;I'll try to have a look at this and other plugins as soon as I have 5 free minutes, this is the simplest one so I hope it will be easy to fix. &#60;/p&#62;
&#60;p&#62;Thank you for caring&#60;br /&#62;
Paolo
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-885844</link>
<pubDate>Tue, 28 Oct 2008 06:28:14 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">885844@http://wordpress.org/support/</guid>
<description>&#60;p&#62;oh, and I tried this on a wp 2.6.3 blog and on a wpmu 2.6.2 installation, both don't save the values I set.&#60;/p&#62;
&#60;p&#62;besides, with older wp and wpmu versions the plugins used to work flawlessly.
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-885095</link>
<pubDate>Mon, 27 Oct 2008 10:42:32 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">885095@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I set it to:&#60;br /&#62;
spaces to underscores,&#60;br /&#62;
all lowercase&#60;br /&#62;
d_&#60;/p&#62;
&#60;p&#62;and it doesn't save...&#60;/p&#62;
&#60;p&#62;any hints on what I could try to do to debug?
&#60;/p&#62;</description>
</item>
<item>
<title>musnake on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-880291</link>
<pubDate>Mon, 20 Oct 2008 18:33:58 +0000</pubDate>
<dc:creator>musnake</dc:creator>
<guid isPermaLink="false">880291@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hey, yes I can save my settings.&#60;br /&#62;
I have it set to:&#60;br /&#62;
spaces as underscores, prepend YYMMDD_, lowercase
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-877304</link>
<pubDate>Thu, 16 Oct 2008 08:20:18 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">877304@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I have to correct myself, it seems the settings do not get saved :-( but no errors anymore.&#60;/p&#62;
&#60;p&#62;can you actually save your settings? i.e. I set it to make all file names into lowercase, save, it says successful, but the settings still remain on default :-(
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-877302</link>
<pubDate>Thu, 16 Oct 2008 08:15:11 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">877302@http://wordpress.org/support/</guid>
<description>&#60;p&#62;thx a lot, worked beautiful.&#60;/p&#62;
&#60;p&#62;I am in contact with the developer, but he said he has no time to update his plugin, so I'll send him a link to this thread :-)
&#60;/p&#62;</description>
</item>
<item>
<title>musnake on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-867421</link>
<pubDate>Thu, 02 Oct 2008 13:20:42 +0000</pubDate>
<dc:creator>musnake</dc:creator>
<guid isPermaLink="false">867421@http://wordpress.org/support/</guid>
<description>&#60;p&#62;No news...&#60;/p&#62;
&#60;p&#62;Here's a dump of uploadplus.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: Upload+
Plugin URI: &#60;a href=&#34;http://pixline.net/wordpress-plugins/upload-plus/en/&#34; rel=&#34;nofollow&#34;&#62;http://pixline.net/wordpress-plugins/upload-plus/en/&#60;/a&#62;
Description: Security and sanity in file names while uploading. Once activate, please &#38;lt;a href=&#38;quot;options-general.php?page=uploadplus&#38;quot;&#38;gt;define your settings&#38;lt;/a&#38;gt;.
Author: Pixline
Version: 2.5.1.x Patched for 2.6
Author URI: &#60;a href=&#34;http://pixline.net/&#34; rel=&#34;nofollow&#34;&#62;http://pixline.net/&#60;/a&#62;

Copyright (C) 2007/2008 Paolo Tresso / Pixline (&#60;a href=&#34;http://pixline.net/&#34; rel=&#34;nofollow&#34;&#62;http://pixline.net/&#60;/a&#62;)

Includes hints and code by:
	Francesco Terenzani (&#60;a href=&#34;http://terenzani.it/&#34; rel=&#34;nofollow&#34;&#62;http://terenzani.it/&#60;/a&#62;)
	Jennifer Hodgdon (&#60;a href=&#34;http://www.poplarware.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.poplarware.com/&#60;/a&#62;)

Uses UTF8 PHP classes by &#60;a href=&#34;http://phputf8.sourceforge.net/&#34; rel=&#34;nofollow&#34;&#62;http://phputf8.sourceforge.net/&#60;/a&#62;

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

require_once &#38;#39;utf8/utf8.php&#38;#39;;
require_once &#38;#39;utf8/str_ireplace.php&#38;#39;;
require_once UTF8 . &#38;#39;/utils/validation.php&#38;#39;;
require_once UTF8 . &#38;#39;/utils/ascii.php&#38;#39;;
require_once &#38;#39;utf8_to_ascii/utf8_to_ascii.php&#38;#39;;

$version = get_option(&#38;#39;uploadplus_version&#38;#39;);
if ($version == &#38;#39;&#38;#39;) $version = 0;

if ($version &#38;lt; 3) {
	add_option(&#38;#39;uploadplus_style&#38;#39;,&#38;#39;a:1:{i:0;s:1:&#38;quot;1&#38;quot;;}&#38;#39;,&#38;#39;Choose what style will be used&#38;#39;,&#38;#39;yes&#38;#39;);
	add_option(&#38;#39;uploadplus_lettercase&#38;#39;,&#38;#39;a:1:{i:0;s:1:&#38;quot;1&#38;quot;;}&#38;#39;,&#38;#39;Make all lowercase&#38;#39;,&#38;#39;yes&#38;#39;);
	update_option(&#38;#39;uploadplus_version&#38;#39;, 3);
	}

/* add option page */
function upp_add_mangle_options_page(){
	if(function_exists(&#38;#39;add_options_page&#38;#39;)){
		add_options_page(&#38;#39;Upload+ Options&#38;#39;,&#38;#39;Upload+&#38;#39;,8,&#38;#39;uploadplus&#38;#39;,&#38;#39;upp_mangle_options_page&#38;#39;);
	}
}

/* the real option page */
function upp_mangle_options_page(){
global $wp_db_version;

	if (isset($_POST[&#38;#39;info_update&#38;#39;])) {
		$style = serialize($_POST[&#38;#39;uploadplus_style&#38;#39;]);
		update_option(&#38;#39;uploadplus_style&#38;#39;,$style);
		$lettercase = serialize($_POST[&#38;#39;uploadplus_lettercase&#38;#39;]);
		update_option(&#38;#39;uploadplus_lettercase&#38;#39;,$lettercase);

		if( !empty($_POST[&#38;#39;uploadplus_prefix_custom&#38;#39;]) &#38;#38;&#38;#38; $_POST[&#38;#39;uploadplus_prefix&#38;#39;]==&#38;#39;none&#38;#39; ){
			update_option(&#38;#39;uploadplus_prefix_standard&#38;#39;,&#38;#39;none&#38;#39;);
			update_option(&#38;#39;uploadplus_prefix_custom&#38;#39;,$_POST[&#38;#39;uploadplus_prefix_custom&#38;#39;]);
		}elseif($_POST[&#38;#39;uploadplus_prefix&#38;#39;]!=&#38;#39;none&#38;#39;){
			update_option(&#38;#39;uploadplus_prefix_custom&#38;#39;,&#38;#39;&#38;#39;);
			update_option(&#38;#39;uploadplus_prefix_standard&#38;#39;,$_POST[&#38;#39;uploadplus_prefix&#38;#39;]);
		}
		echo(&#38;#39;&#38;lt;div id=&#38;quot;message&#38;quot; class=&#38;quot;updated fade&#38;quot;&#38;gt;&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;Settings saved.&#38;lt;/strong&#38;gt;&#38;lt;/p&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;);
	}

	$flag1 = &#38;quot;&#38;quot;; $flag2 = $flag1; $flag3 = $flag1; $flag4 = $flag1; $flag5 = $flag1;
	$x = get_option(&#38;#39;uploadplus_style&#38;#39;);
	//$x = unserialize($y);
	if($x == 1){ $flag1 = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;; }
	if($x == 2){ $flag2 = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;; }
	if($x == 3){ $flag3 = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;; }

	$new_lettercase = get_option(&#38;#39;uploadplus_lettercase&#38;#39;);
	//$new_lettercase = unserialize($opt_lettercase);
	if($new_lettercase == 1){ $flag4=&#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;; }else{ $flag5=&#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;; }

	$custom		= get_option(&#38;#39;uploadplus_prefix_custom&#38;#39;);
	$standard	= get_option(&#38;#39;uploadplus_prefix_standard&#38;#39;);
	$pref_custom = &#38;quot;&#38;quot;;
	$prefs = array(&#38;quot;none&#38;quot;=&#38;gt;&#38;quot;&#38;quot;,&#38;quot;md&#38;quot;=&#38;gt;&#38;quot;&#38;quot;,&#38;quot;ymd&#38;quot;=&#38;gt;&#38;quot;&#38;quot;,&#38;quot;ymdhi&#38;quot;=&#38;gt;&#38;quot;&#38;quot;,&#38;quot;ymdhis&#38;quot;=&#38;gt;&#38;quot;&#38;quot;,&#38;quot;random&#38;quot;=&#38;gt;&#38;quot;&#38;quot;,&#38;quot;unix&#38;quot;=&#38;gt;&#38;quot;&#38;quot;);

	if($custom!=&#38;quot;&#38;quot;){
		$pref_custom = $custom;
	}elseif($custom==&#38;quot;&#38;quot;){
		$prefs[$standard] = &#38;quot;selected=&#38;#39;selected&#38;#39;&#38;quot;;
	}

	$test_string1 = &#38;quot;WordPress Manual (for dummies, experts and pro&#38;#39;s) 2.2nd Edition.pdf&#38;quot;;
#	$test_string1 = &#38;#39;У беларускіх гарадах працягваецца паказ культавага швэдзкага кіно.pdf&#38;#39;;
#	$test_string3 = &#38;#39;اذاعة شباب اف ام.pdf&#38;#39;;
	$demo_string1 = upp_mangle_filename($test_string1);
#	$demo_string2 = upp_mangle_filename($test_string2);
#	$demo_string3 = upp_mangle_filename($test_string3);

	echo(&#38;quot;&#38;lt;div class=&#38;#39;wrap&#38;#39;&#38;gt;&#38;quot;);
	echo(&#38;quot;&#38;lt;form method=&#38;#39;post&#38;#39; accept-charset=&#38;#39;utf-8&#38;#39;&#38;gt;&#38;quot;);

	echo(&#38;quot;&#38;lt;h2&#38;gt;Upload+ Options&#38;lt;/h2&#38;gt;&#38;quot;);
	echo(&#38;quot;&#38;lt;p&#38;gt;Welcome to Upload+. This plugin allows you to rename every file you upload, and in this page you can define this behaviour.&#38;lt;/p&#38;gt;&#38;quot;);
	echo(&#38;quot;&#38;lt;p&#38;gt; According to your actual ruleset, your files will be renamed like this:&#38;lt;br /&#38;gt;
	&#38;lt;ul&#38;gt;
	&#38;lt;li&#38;gt; &#38;lt;em&#38;gt;&#38;quot;.$test_string1.&#38;quot;&#38;lt;/em&#38;gt;&#38;lt;br /&#38;gt; saved as &#38;amp;rsaquo; &#38;lt;strong&#38;gt;&#38;quot;.$demo_string1.&#38;quot;&#38;lt;/strong&#38;gt;&#38;lt;/li&#38;gt;
	&#38;lt;!-- li&#38;gt; &#38;lt;em&#38;gt;&#38;quot;.$test_string2.&#38;quot;&#38;lt;/em&#38;gt;&#38;lt;br /&#38;gt; saved as &#38;amp;rsaquo; &#38;lt;strong&#38;gt;&#38;quot;.$demo_string2.&#38;quot;&#38;lt;/strong&#38;gt;&#38;lt;/li&#38;gt;
	&#38;lt;li&#38;gt; &#38;lt;em&#38;gt;&#38;quot;.$test_string3.&#38;quot;&#38;lt;/em&#38;gt;&#38;lt;br /&#38;gt; saved as &#38;amp;rsaquo; &#38;lt;strong&#38;gt;&#38;quot;.$demo_string3.&#38;quot;&#38;lt;/strong&#38;gt;&#38;lt;/li --&#38;gt;
	&#38;lt;/ul&#38;gt;
	&#38;lt;/p&#38;gt;&#38;quot;);

	echo(&#38;quot;&#38;lt;p&#38;gt;&#38;lt;small&#38;gt;You can choose to &#38;lt;em&#38;gt;convert spaces and underscores into dashes&#38;lt;/em&#38;gt;, &#38;lt;em&#38;gt;strip all dashes/underscores/spaces&#38;lt;/em&#38;gt;, or &#38;lt;em&#38;gt;convert every spaces into an underscore&#38;lt;/em&#38;gt;. Also, you can choose to &#38;lt;em&#38;gt;lowercase&#38;lt;/em&#38;gt; the file name or leave it with mixed case, and finally you can define a custom prefix to prepend, either a fixed one (like the name of your blog) or a date-based one. Feel free to play with the settings and save them, because you can check in this page what kind of transformation will be applied.&#38;lt;/small&#38;gt;&#38;lt;/p&#38;gt;&#38;quot;);

	if($wp_db_version &#38;lt; 6846) $tableclass = &#38;quot;editform optiontable&#38;quot;; else $tableclass = &#38;quot;form-table&#38;quot;;
	echo(&#38;#39;&#38;lt;fieldset class=&#38;quot;options&#38;quot; name=&#38;quot;set1&#38;quot;&#38;gt;

	&#38;lt;legend&#38;gt;Cleaning rules&#38;lt;/legend&#38;gt;
	&#38;lt;table class=&#38;quot;&#38;#39;.$tableclass.&#38;#39;&#38;quot;&#38;gt;

	&#38;lt;tr&#38;gt;
	&#38;lt;th scope=&#38;quot;row&#38;quot; valign=&#38;quot;top&#38;quot;&#38;gt;Basic cleaning&#38;lt;/th&#38;gt;

	&#38;lt;td&#38;gt;

	&#38;lt;p&#38;gt;&#38;lt;input type=&#38;quot;radio&#38;quot; name=&#38;quot;uploadplus_style[]&#38;quot; id=&#38;quot;uploadplus_style-1&#38;quot; value=&#38;quot;1&#38;quot; &#38;#39;.$flag1.&#38;#39;/&#38;gt;
	&#38;lt;label for=&#38;quot;uploadplus_style-1&#38;quot;&#38;gt;Convert spaces and underscores into dashes.
	&#38;lt;small&#38;gt;[ &#38;amp;rsaquo; &#38;lt;em&#38;gt;wordpress-manual.pdf&#38;lt;/em&#38;gt; ]&#38;lt;/small&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;/p&#38;gt;

	&#38;lt;p&#38;gt;&#38;lt;input type=&#38;quot;radio&#38;quot; name=&#38;quot;uploadplus_style[]&#38;quot; id=&#38;quot;uploadplus_style-2&#38;quot; value=&#38;quot;2&#38;quot; &#38;#39;.$flag2.&#38;#39;/&#38;gt;
	&#38;lt;label for=&#38;quot;uploadplus_style-2&#38;quot;&#38;gt;Strip all spaces/dashes/underscores.
	&#38;lt;small&#38;gt;[ &#38;amp;rsaquo; &#38;lt;em&#38;gt;wordpressmanual.pdf&#38;lt;/em&#38;gt; ]&#38;lt;/small&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;/p&#38;gt;

	&#38;lt;p&#38;gt;&#38;lt;input type=&#38;quot;radio&#38;quot; name=&#38;quot;uploadplus_style[]&#38;quot; id=&#38;quot;uploadplus_style-3&#38;quot; value=&#38;quot;3&#38;quot; &#38;#39;.$flag3.&#38;#39;/&#38;gt;
	&#38;lt;label for=&#38;quot;uploadplus_style-3&#38;quot;&#38;gt;Convert spaces into underscores (dashes allowed).
	&#38;lt;small&#38;gt;[ &#38;amp;rsaquo; &#38;lt;em&#38;gt;wordpress_manual.pdf&#38;lt;/em&#38;gt; ]&#38;lt;/small&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;/p&#38;gt;

	&#38;lt;/td&#38;gt;
	&#38;lt;/tr&#38;gt;

	&#38;lt;tr&#38;gt;
	&#38;lt;th scope=&#38;quot;row&#38;quot; valign=&#38;quot;top&#38;quot;&#38;gt;Lowercase&#38;lt;/th&#38;gt;
	&#38;lt;td&#38;gt;
	&#38;lt;input type=&#38;quot;radio&#38;quot; name=&#38;quot;uploadplus_lettercase[]&#38;quot; id=&#38;quot;uploadplus_lettercase-1&#38;quot; value=&#38;quot;1&#38;quot; &#38;#39;.$flag4.&#38;#39;/&#38;gt;
	Make ALL lowercase.
	&#38;lt;input type=&#38;quot;radio&#38;quot; name=&#38;quot;uploadplus_lettercase[]&#38;quot; id=&#38;quot;uploadplus_lettercase-0&#38;quot; value=&#38;quot;0&#38;quot; &#38;#39;.$flag5.&#38;#39;/&#38;gt;
	Leave untouched.
	&#38;lt;/td&#38;gt;
	&#38;lt;/tr&#38;gt;

	&#38;lt;/table&#38;gt;
	&#38;lt;/fieldset&#38;gt;&#38;#39;);

echo(&#38;#39;&#38;lt;fieldset class=&#38;quot;options&#38;quot; name=&#38;quot;set1&#38;quot;&#38;gt;
	&#38;lt;legend&#38;gt;Prefix&#38;lt;/legend&#38;gt;
	&#38;lt;table class=&#38;quot;&#38;#39;.$tableclass.&#38;#39;&#38;quot;&#38;gt;

	&#38;lt;tr&#38;gt;
	&#38;lt;th scope=&#38;quot;row&#38;quot; valign=&#38;quot;top&#38;quot;&#38;gt;Prefix&#38;lt;/th&#38;gt;
	&#38;lt;td&#38;gt;&#38;lt;p&#38;gt;
	&#38;lt;select name=&#38;quot;uploadplus_prefix&#38;quot; id=&#38;quot;uploadplus_prefix&#38;quot;&#38;gt;
	&#38;lt;option value=&#38;quot;none&#38;quot; label=&#38;quot;No prefix, or custom prefix&#38;quot;&#38;gt;No prefix, or custom prefix&#38;lt;/option&#38;gt;
	&#38;lt;optgroup label=&#38;quot;Human Readable&#38;quot;&#38;gt;
	&#38;lt;option value=&#38;quot;d&#38;quot; label=&#38;quot;dd (like: &#38;#39;.date(&#38;#39;d&#38;#39;).&#38;#39;_)&#38;quot; &#38;#39;.$prefs[&#38;#39;d&#38;#39;].&#38;#39;&#38;gt;d (like: &#38;#39;.date(&#38;#39;d&#38;#39;).&#38;#39;_)&#38;lt;/option&#38;gt;
	&#38;lt;option value=&#38;quot;md&#38;quot; label=&#38;quot;mmdd (like: &#38;#39;.date(&#38;#39;md&#38;#39;).&#38;#39;_)&#38;quot; &#38;#39;.$prefs[&#38;#39;md&#38;#39;].&#38;#39;&#38;gt;mmdd (like: &#38;#39;.date(&#38;#39;md&#38;#39;).&#38;#39;_)&#38;lt;/option&#38;gt;
	&#38;lt;option value=&#38;quot;ymd&#38;quot; label=&#38;quot;yyyymmdd (like: &#38;#39;.date(&#38;#39;Ymd&#38;#39;).&#38;#39;_)&#38;quot; &#38;#39;.$prefs[&#38;#39;ymd&#38;#39;].&#38;#39;&#38;gt;yyyymmdd (like: &#38;#39;.date(&#38;#39;Ymd&#38;#39;).&#38;#39;_)&#38;lt;/option&#38;gt;
	&#38;lt;option value=&#38;quot;ymdhi&#38;quot; label=&#38;quot;yyyymmddhhmm (like: &#38;#39;.date(&#38;#39;YmdHi&#38;#39;).&#38;#39;_)&#38;quot; &#38;#39;.$prefs[&#38;#39;ymdhi&#38;#39;].&#38;#39;&#38;gt;yyyymmddhhmm (like: &#38;#39;.date(&#38;#39;YmdHi&#38;#39;).&#38;#39;_)&#38;lt;/option&#38;gt;
	&#38;lt;option value=&#38;quot;ymdhis&#38;quot; label=&#38;quot;yyyymmddhhmmss (like: &#38;#39;.date(&#38;#39;YmdHis&#38;#39;).&#38;#39;_)&#38;quot; &#38;#39;.$prefs[&#38;#39;ymdhis&#38;#39;].&#38;#39;&#38;gt;yyyymmddhhmmss (like: &#38;#39;.date(&#38;#39;YmdHis&#38;#39;).&#38;#39;_)&#38;lt;/option&#38;gt;
	&#38;lt;/optgroup&#38;gt;

	&#38;lt;optgroup label=&#38;quot;Other Styles&#38;quot;&#38;gt;
	&#38;lt;option value=&#38;quot;random&#38;quot; label=&#38;quot;[random (mt-rand)] &#38;#39;.mt_rand().&#38;#39;_&#38;quot; &#38;#39;.$prefs[&#38;#39;random&#38;#39;].&#38;#39;&#38;gt;[random] &#38;#39;.mt_rand().&#38;#39;_&#38;lt;/option&#38;gt;
	&#38;lt;option value=&#38;quot;unix&#38;quot; label=&#38;quot;[unix timestamp] &#38;#39;.date(&#38;#39;U&#38;#39;).&#38;#39;_&#38;quot; &#38;#39;.$prefs[&#38;#39;unix&#38;#39;].&#38;#39;&#38;gt;[unix] &#38;#39;.date(&#38;#39;U&#38;#39;).&#38;#39;_&#38;lt;/option&#38;gt;
	&#38;lt;!-- option value=&#38;quot;blog&#38;quot; label=&#38;quot;[blog name] &#38;#39;.strtolower(get_bloginfo(&#38;#39;name&#38;#39;)).&#38;#39;_&#38;quot; &#38;#39;.$prefs[&#38;#39;blog&#38;#39;].&#38;#39;&#38;gt;[blog] &#38;#39;.strtolower(get_bloginfo(&#38;#39;name&#38;#39;)).&#38;#39;_&#38;lt;/option --&#38;gt;
	&#38;lt;/optgroup&#38;gt;

	&#38;lt;/select&#38;gt;
	&#38;lt;/p&#38;gt;&#38;lt;p&#38;gt;
	&#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;uploadplus_prefix_custom&#38;quot; size=&#38;quot;50&#38;quot; id=&#38;quot;uploadplus_prefix_custom&#38;quot; value=&#38;quot;&#38;#39;.$pref_custom.&#38;#39;&#38;quot;/&#38;gt;&#38;lt;br /&#38;gt;
	&#38;lt;small&#38;gt;Enter your custom textual prefix (like &#38;quot;prefix_&#38;quot;). Please note this is a *string*, so please do not use php &#38;lt;em&#38;gt;date()&#38;lt;/em&#38;gt; arguments :-)&#38;lt;/a&#38;gt;.&#38;lt;/small&#38;gt;
	&#38;lt;/p&#38;gt;
	&#38;lt;/td&#38;gt;
	&#38;lt;/tr&#38;gt;

	&#38;lt;/table&#38;gt;
	&#38;lt;/fieldset&#38;gt;&#38;#39;);	

	echo(&#38;#39;&#38;lt;p class=&#38;quot;submit&#38;quot;&#38;gt;
	&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;action&#38;quot; value=&#38;quot;update&#38;quot; /&#38;gt;
	&#38;lt;input type=&#38;quot;submit&#38;quot; name=&#38;quot;info_update&#38;quot; value=&#38;quot;Update Settings &#38;amp;raquo;&#38;quot; /&#38;gt;
	&#38;lt;/p&#38;gt;
	&#38;lt;/form&#38;gt;&#38;#39;);

	echo(&#38;#39;&#38;lt;hr/&#38;gt; &#38;lt;p&#38;gt;&#38;lt;small&#38;gt;&#38;lt;a href=&#38;quot;http://pixline.net/wordpress-plugins/upload-plus/&#38;quot;&#38;gt;Upload+&#38;lt;/a&#38;gt; is GPL&#38;amp;copy; &#38;lt;a href=&#38;quot;http://pixline.net/&#38;quot;&#38;gt;Paolo Tresso / Pixline&#38;lt;/a&#38;gt;. UTF8 php classes and translitteration by &#38;lt;a href=&#38;quot;http://phputf8.sourceforge.net/&#38;quot;&#38;gt;phputf8&#38;lt;/a&#38;gt;.&#38;lt;br /&#38;gt; If you find this plugin useful you can donate and support its development. Thank you!

&#38;lt;form action=&#38;quot;https://www.paypal.com/cgi-bin/webscr&#38;quot; method=&#38;quot;post&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;cmd&#38;quot; value=&#38;quot;_s-xclick&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;image&#38;quot; src=&#38;quot;http://pixline.net/files/img/paypal.gif&#38;quot; border=&#38;quot;0&#38;quot; name=&#38;quot;submit&#38;quot; alt=&#38;quot;Support via PayPal&#38;quot;&#38;gt;
&#38;lt;img alt=&#38;quot;&#38;quot; border=&#38;quot;0&#38;quot; src=&#38;quot;https://www.paypal.com/it_IT/i/scr/pixel.gif&#38;quot; width=&#38;quot;1&#38;quot; height=&#38;quot;1&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;encrypted&#38;quot; value=&#38;quot;-----BEGIN PKCS7-----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-----END PKCS7-----
&#38;quot;&#38;gt;
&#38;lt;/form&#38;gt;
&#38;lt;/p&#38;gt;&#38;#39;);

	echo(&#38;quot;&#38;lt;/div&#38;gt;&#38;quot;);
}

/* find extension */
function upp_findexts ($filename) {
	$exts = split(&#38;quot;[/\\.]&#38;quot;, $filename) ;
	$n = count($exts)-1;
	$exts = $exts[$n];
	return $exts;
} 

/* find full filename */
function upp_find_filename ($filename) {
	$explode = explode(&#38;quot;/&#38;quot;,$filename);
	$explode = array_reverse($explode);
	return $explode[0];
} 

/*    sanitize uploaded file name    */
function upp_mangle_filename($file_name){
	/* remove internal dots (cosmetical, it would be done by WP, but we need to display it :)*/
	$ext = upp_findexts($file_name);
	$file_name = str_replace(&#38;quot;.&#38;quot;.$ext,&#38;quot;&#38;quot;,$file_name);
	$file_name = str_replace(&#38;quot;.&#38;quot;,&#38;quot;&#38;quot;,$file_name);

	// initial cleaning
	$file_name = str_replace(&#38;quot;(&#38;quot;,&#38;quot;&#38;quot;,$file_name);
	$file_name = str_replace(&#38;quot;)&#38;quot;,&#38;quot;&#38;quot;,$file_name);
	$file_name = str_replace(&#38;quot;&#38;#39;&#38;quot;,&#38;quot;&#38;quot;,$file_name);
	$file_name = str_replace(&#38;#39;&#38;quot;&#38;#39;,&#38;quot;&#38;quot;,$file_name);
	$file_name = str_replace(&#38;#39;,&#38;#39;,&#38;quot;&#38;quot;,$file_name);

	// some language-based prefilter. props denis.
	$de_from 	= array(&#38;#39;ä&#38;#39;,&#38;#39;ö&#38;#39;,&#38;#39;ü&#38;#39;,&#38;#39;ß&#38;#39;,&#38;#39;Ä&#38;#39;,&#38;#39;Ö&#38;#39;,&#38;#39;Ü&#38;#39;);
	$de_to 		= array(&#38;#39;ae&#38;#39;,&#38;#39;oe&#38;#39;,&#38;#39;ue&#38;#39;,&#38;#39;ss&#38;#39;,&#38;#39;Ae&#38;#39;,&#38;#39;Oe&#38;#39;,&#38;#39;Ue&#38;#39;);
	$file_name	= str_replace($de_from, $de_to, $file_name);

	if ( utf8_is_valid($file_name) ) {
        $file_name = utf8_to_ascii($file_name);
    }else{
        $file_name = utf8_to_ascii($file_name);
	}

	$file_name = $file_name.&#38;quot;.&#38;quot;.$ext;

	$un_lettercase = get_option(&#38;#39;uploadplus_lettercase&#38;#39;);
	//$un_lettercase = unserialize($lettercase);
	switch($un_lettercase):
		case &#38;quot;1&#38;quot;:
			$file_name = utf8_strtolower($file_name);
			break;
	endswitch;

	$x = get_option(&#38;#39;uploadplus_style&#38;#39;);
	//$x = unserialize($y);
	switch($x):
	case &#38;quot;1&#38;quot;:
		$file_name = ereg_replace(&#38;quot;[^A-Za-z0-9._]&#38;quot;, &#38;quot;-&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot;_&#38;quot;, &#38;quot;-&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot; &#38;quot;, &#38;quot;-&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot;%20&#38;quot;, &#38;quot;-&#38;quot;, $file_name);
		break;
	case &#38;quot;2&#38;quot;:
		$file_name = ereg_replace(&#38;quot;[^A-Za-z0-9._]&#38;quot;, &#38;quot;&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot;_&#38;quot;, &#38;quot;&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot;-&#38;quot;, &#38;quot;&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot;%20&#38;quot;, &#38;quot;&#38;quot;, $file_name);
		break;
	case &#38;quot;3&#38;quot;:
		$file_name = ereg_replace(&#38;quot;[^A-Za-z0-9._]&#38;quot;, &#38;quot;_&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot;-&#38;quot;, &#38;quot;_&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot; &#38;quot;, &#38;quot;_&#38;quot;, $file_name);
		$file_name = utf8_ireplace(&#38;quot;%20&#38;quot;, &#38;quot;_&#38;quot;, $file_name);
		break;
	endswitch;

	$custom = get_option(&#38;#39;uploadplus_prefix_custom&#38;#39;);
	$standard = get_option(&#38;#39;uploadplus_prefix_standard&#38;#39;);

	if($custom!=&#38;quot;&#38;quot; &#38;#38;&#38;#38; $standard==&#38;quot;none&#38;quot;){
		$file_name = $custom.$file_name;
	}else{
		switch($standard):
			case &#38;quot;d&#38;quot;:		$file_name = date(&#38;#39;d&#38;#39;).&#38;quot;_&#38;quot;.$file_name;			break;
			case &#38;quot;md&#38;quot;:		$file_name = date(&#38;#39;md&#38;#39;).&#38;quot;_&#38;quot;.$file_name;			break;
			case &#38;quot;ymd&#38;quot;:		$file_name = date(&#38;#39;Ymd&#38;#39;).&#38;quot;_&#38;quot;.$file_name;		break;
			case &#38;quot;ymdhi&#38;quot;:	$file_name = date(&#38;#39;YmdHi&#38;#39;).&#38;quot;_&#38;quot;.$file_name;		break;
			case &#38;quot;ymdhis&#38;quot;:	$file_name = date(&#38;#39;YmdHis&#38;#39;).&#38;quot;_&#38;quot;.$file_name;		break;
			case &#38;quot;random&#38;quot;:	$file_name = mt_rand().&#38;quot;_&#38;quot;.$file_name;			break;
			case &#38;quot;unix&#38;quot;:	$file_name = date(&#38;#39;U&#38;#39;).&#38;quot;_&#38;quot;.$file_name;			break;
#			case &#38;quot;blog&#38;quot;:	$file_name = strtolower(get_bloginfo(&#38;#39;name&#38;#39;)).&#38;quot;_&#38;quot;.$file_name;	break;
		endswitch;
	}

	return $file_name;
}

/* apply out changes to the real file while it&#38;#39;s being moved to its destination */
// $array( &#38;#39;file&#38;#39; =&#38;gt; $new_file, &#38;#39;url&#38;#39; =&#38;gt; $url, &#38;#39;type&#38;#39; =&#38;gt; $type );
function upp_rename($array){
global $action;
	$current_name = upp_find_filename($array[&#38;#39;file&#38;#39;]);
	$current_name = urldecode($current_name);
	$new_name = upp_mangle_filename($current_name);
	$lpath = str_replace($current_name, &#38;quot;&#38;quot;, urldecode($array[&#38;#39;file&#38;#39;]));
	$wpath = str_replace($current_name, &#38;quot;&#38;quot;, urldecode($array[&#38;#39;url&#38;#39;]));
	$lpath_new = $lpath . $new_name;
	$wpath_new = $wpath . $new_name;
	if( @rename($array[&#38;#39;file&#38;#39;], $lpath_new) )
	return array(
		&#38;#39;file&#38;#39; =&#38;gt; $lpath_new,
		&#38;#39;url&#38;#39; =&#38;gt; $wpath_new,
		&#38;#39;type&#38;#39; =&#38;gt; $array[&#38;#39;type&#38;#39;]
		);
	return $array;
}

add_action( &#38;#39;admin_menu&#38;#39;, &#38;#39;upp_add_mangle_options_page&#38;#39; );	// add option page
add_action(&#38;#39;wp_handle_upload&#38;#39;, &#38;#39;upp_rename&#38;#39;);				// apply our modifications
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-853205</link>
<pubDate>Sun, 14 Sep 2008 15:56:46 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">853205@http://wordpress.org/support/</guid>
<description>&#60;p&#62;any news? maybe from the developer?
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-849679</link>
<pubDate>Wed, 10 Sep 2008 07:19:04 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">849679@http://wordpress.org/support/</guid>
<description>&#60;p&#62;is it just a matter of changing the code you provided above?
&#60;/p&#62;</description>
</item>
<item>
<title>Ovidiu on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-841215</link>
<pubDate>Sat, 30 Aug 2008 13:37:15 +0000</pubDate>
<dc:creator>Ovidiu</dc:creator>
<guid isPermaLink="false">841215@http://wordpress.org/support/</guid>
<description>&#60;p&#62;can you post your modified version somewhere? It seems the developer hasn't noticed this post and I kind of rely on this plugin :-(
&#60;/p&#62;</description>
</item>
<item>
<title>musnake on "[Plugin: Upload+] WP 2.6"</title>
<link>http://wordpress.org/support/topic/196162#post-827321</link>
<pubDate>Tue, 12 Aug 2008 14:04:26 +0000</pubDate>
<dc:creator>musnake</dc:creator>
<guid isPermaLink="false">827321@http://wordpress.org/support/</guid>
<description>&#60;p&#62;To get around the unserialize issues after WP2.6 upgrade, I stripped out the unserialize calls and used direct assignment.  Works for me as far as I can tell!&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Instead of $y
	$x = get_option(&#38;#39;uploadplus_style&#38;#39;);
	//$x = unserialize($y);
        // Instead of using array index
	if($x == 1){ $flag1 = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;; }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;There are a few other changes to make in various case statements (check $x not $x[0] etc)...&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/uploadplus/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/uploadplus/&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
