<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Threads &#187; Development</title>
	<atom:link href="http://www.web-threads.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-threads.com</link>
	<description>Websites for Business and Online Communities</description>
	<lastBuildDate>Tue, 10 Aug 2010 21:48:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Find Deleted SMF User Posts</title>
		<link>http://www.web-threads.com/2010/08/find-deleted-smf-user-posts/</link>
		<comments>http://www.web-threads.com/2010/08/find-deleted-smf-user-posts/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 21:48:35 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[forum admin]]></category>
		<category><![CDATA[smf]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=356</guid>
		<description><![CDATA[When an SMF member deletes their account and then contacts you to delete their posts, it&#8217;s not an easy request because the posts are no longer attached to a user account. What can you do? You can query the database for the list of the messages they posted.

SELECT * FROM smf_messages WHERE posterName='{deletedusername}'

Replace all of {deletedusername} with the username of the deleted member and update your table name for smf_messages.
You could run a DELETE query, but this could result in some odd behaviour, forum message counts would be wrong and if it&#8217;s the first post of a topic, it could make the whole topic out of kilter. It&#8217;s best to manually delete these. (And you might consider wanting to charge people for your trouble!) 
After running the above query in phpmyadmin, click the export link at the bottom and save to excel csv. 
Once you have the excel file, you ...]]></description>
			<content:encoded><![CDATA[<p>When an SMF member deletes their account and then contacts you to delete their posts, it&#8217;s not an easy request because the posts are no longer attached to a user account. What can you do? You can query the database for the list of the messages they posted.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> smf_messages <span style="color: #990099; font-weight: bold;">WHERE</span> posterName<span style="color: #CC0099;">=</span><span style="color: #008000;">'{deletedusername}'</span></pre></div></div>

<p><strong>Replace all of {deletedusername} with the username of the deleted member and update your table name for smf_messages.</strong></p>
<p>You <em>could</em> run a DELETE query, <strong>but</strong> this could result in some odd behaviour, forum message counts would be wrong and if it&#8217;s the first post of a topic, it could make the whole topic out of kilter. It&#8217;s best to manually delete these. (And you might consider wanting to charge people for your trouble!) </p>
<p>After running the above query in phpmyadmin, click the export link at the bottom and save to excel csv. </p>
<p>Once you have the excel file, you can copy the full link to the the forum index.php?topic= in a new inserted column. Copy from the first row and highlight the rest to paste to all cells. Delete or move the second column (message numbers) so that the link column is next to the topic number. You could then highlight both columns and paste to a text file for list of links to the topics, or concatenate (merge) both columns in another new column.</p>
<div class='wp_likes' id='wp_likes_post-356'><a class='like' href="javascript:wp_likes.like(356);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(356);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/08/find-deleted-smf-user-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Query to Disable Comments on Node by Content Type</title>
		<link>http://www.web-threads.com/2010/04/drupal-query-to-disable-comments-on-node-by-content-type/</link>
		<comments>http://www.web-threads.com/2010/04/drupal-query-to-disable-comments-on-node-by-content-type/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 19:42:23 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=345</guid>
		<description><![CDATA[A handy drupal snippet, when someone&#8217;s added hundreds of nodes with comments allowed and you need to bulk disable them without editing them each by hand.


UPDATE drup_node SET `comment`=0 WHERE type='review';

Modify as needed with the correct drupal node table name for your installation, and set the type= to whatever the type you&#8217;d like to update.
Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>A handy drupal snippet, when someone&#8217;s added hundreds of nodes with comments allowed and you need to bulk disable them without editing them each by hand.<br />
<span id="more-345"></span></p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> drup_node <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`comment`</span><span style="color: #CC0099;">=</span><span style="color: #008080;">0</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #990099; font-weight: bold;">type</span><span style="color: #CC0099;">=</span><span style="color: #008000;">'review'</span><span style="color: #000033;">;</span></pre></div></div>

<p>Modify as needed with the correct drupal node table name for your installation, and set the type= to whatever the type you&#8217;d like to update.</p>
<div class='wp_likes' id='wp_likes_post-345'><a class='like' href="javascript:wp_likes.like(345);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(345);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/04/drupal-query-to-disable-comments-on-node-by-content-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Plugin Exec-PHP Hack &#8211; Disable For Post</title>
		<link>http://www.web-threads.com/2010/01/wordpress-plugin-exec-php-hack-disable-for-post/</link>
		<comments>http://www.web-threads.com/2010/01/wordpress-plugin-exec-php-hack-disable-for-post/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 16:54:05 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=343</guid>
		<description><![CDATA[If you&#8217;re running the Exec-PHP plugin in Wordpress and struggling with posting your php code blocks without it being executed, I&#8217;ve made a quick hack to disable this plugin per post by adding a custom field. You just have to remember not to upgrade automatically or you&#8217;ll lose the changes. With a few lines of code and a Custom field in on your post entry page, you can disable Exec-PHP and it will skip this content. Note it will still run on other elements, just not the content.

In file plugins/exec-php/includes/runtime.php find the block that starts at line 52:

	function filter_user_content&#40;$content&#41;
	&#123;
		global $post;

Add after it:

		// check if this post has disabled exec-php in custom fields
		$custom_fields = get_post_custom&#40;&#41;; 
		$php_disable_this_post = $custom_fields&#91;'disablephp_exec'&#93;;
		$phpexecdisable= $php_disable_this_post&#91;0&#93;;
		if &#40;$phpexecdisable =='1'&#41;
			return $content;

Add the Custom Field to your post, &#8216;disablephp_exec&#8217; and give it a value of 1. 
Upload your new runtime.php file and you&#8217;re off.
This is a great plugin, very useful, but ...]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running the Exec-PHP plugin in Wordpress and struggling with posting your php code blocks without it being executed, I&#8217;ve made a quick hack to disable this plugin per post by adding a custom field. <em>You just have to remember not to upgrade automatically or you&#8217;ll lose the changes.</em> With a few lines of code and a Custom field in on your post entry page, you can disable Exec-PHP and it will skip this content. Note it will still run on other elements, just not the content.</p>
<p><span id="more-343"></span><br />
In file plugins/exec-php/includes/runtime.php find the block that starts at line 52:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">function</span> filter_user_content<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add after it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #666666; font-style: italic;">// check if this post has disabled exec-php in custom fields</span>
		<span style="color: #000088;">$custom_fields</span> <span style="color: #339933;">=</span> get_post_custom<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		<span style="color: #000088;">$php_disable_this_post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$custom_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'disablephp_exec'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$phpexecdisable</span><span style="color: #339933;">=</span> <span style="color: #000088;">$php_disable_this_post</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$phpexecdisable</span> <span style="color: #339933;">==</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add the Custom Field to your post, &#8216;disablephp_exec&#8217; and give it a value of 1. </p>
<p>Upload your new runtime.php file and you&#8217;re off.</p>
<p>This is a great plugin, very useful, but I wish it used code tags instead of standard php tags.</p>
<p><a href="http://wordpress.org/extend/plugins/exec-php/">Exec-PHP Plugin on Wordpress</a><br />
<a href="http://bluesome.net/post/2005/08/18/50/">Exec-PHP Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/01/wordpress-plugin-exec-php-hack-disable-for-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assign Guest Posts to New Member in SMF</title>
		<link>http://www.web-threads.com/2010/01/assign-guest-posts-to-new-member-smf/</link>
		<comments>http://www.web-threads.com/2010/01/assign-guest-posts-to-new-member-smf/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 10:18:02 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[forum admin]]></category>
		<category><![CDATA[smf]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=216</guid>
		<description><![CDATA[Or as I like to call it, &#8220;Query to assign guest posts to user who threw a tantrum and deleted their account and then wanted it back again.&#8221; We get these at least twice a year, usually around the holidays.

Have them create a new account and then run this query:

UPDATE smf_messages SET ID_MEMBER = &#123;newaccountnumber&#125; WHERE posterName = '{username}';

Always always back up before running queries or making changes.
Be sure to change {newaccountnumber} to the id of the new account, {username} to name of the old account (remove curly braces) and smf_messages to the correct table name/prefix.
]]></description>
			<content:encoded><![CDATA[<p>Or as I like to call it, &#8220;Query to assign guest posts to user who threw a tantrum and deleted their account and then wanted it back again.&#8221; We get these at least twice a year, usually around the holidays.<br />
<span id="more-216"></span></p>
<p>Have them create a new account and then run this query:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> smf_messages <span style="color: #990099; font-weight: bold;">SET</span> ID_MEMBER <span style="color: #CC0099;">=</span> <span style="color: #FF00FF;">&#123;</span>newaccountnumber<span style="color: #FF00FF;">&#125;</span> <span style="color: #990099; font-weight: bold;">WHERE</span> posterName <span style="color: #CC0099;">=</span> <span style="color: #008000;">'{username}'</span><span style="color: #000033;">;</span></pre></div></div>

<p><strong>Always always back up before running queries or making changes.</strong></p>
<p>Be sure to change <strong>{newaccountnumber}</strong> to the id of the new account, <strong>{username}</strong> to name of the old account (remove curly braces) and smf_messages to the correct table name/prefix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/01/assign-guest-posts-to-new-member-smf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Spam Private Message Content in SMF</title>
		<link>http://www.web-threads.com/2010/01/remove-spam-private-message-content-in-smf/</link>
		<comments>http://www.web-threads.com/2010/01/remove-spam-private-message-content-in-smf/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 09:50:47 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[forum admin]]></category>
		<category><![CDATA[smf]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=208</guid>
		<description><![CDATA[A useful MySQL query to delete a spam PM content on Simple Machines Forum.

Change the &#8216;numberhere&#8217; to be the spammer&#8217;s user id number and change the table prefix to your own prefix if different. This does not delete the PM, but does replace the spam content.

&#160;
UPDATE `smf_instant_messages` SET `body` = 'Message deleted due to spam' WHERE `ID_MEMBER_FROM` = 'numberhere';

Always always back up before running queries or making changes.
This is useful in the case of porn spam, however, people will have gotten any PM notifications of that.
Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>A useful MySQL query to delete a spam PM content on Simple Machines Forum.</p>
<p><span id="more-208"></span><br />
Change the &#8216;numberhere&#8217; to be the spammer&#8217;s user id number and change the table prefix to your own prefix if different. This does not delete the PM, but does replace the spam content.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">&nbsp;
<span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #008000;">`smf<span style="color: #008080; font-weight: bold;">_</span>instant<span style="color: #008080; font-weight: bold;">_</span>messages`</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`body`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'Message deleted due to spam'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`ID<span style="color: #008080; font-weight: bold;">_</span>MEMBER<span style="color: #008080; font-weight: bold;">_</span>FROM`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'numberhere'</span><span style="color: #000033;">;</span></pre></div></div>

<p><strong>Always always back up before running queries or making changes.</strong></p>
<p>This is useful in the case of porn spam, however, people will have gotten any PM notifications of that.</p>
<div class='wp_likes' id='wp_likes_post-208'><a class='like' href="javascript:wp_likes.like(208);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(208);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2010/01/remove-spam-private-message-content-in-smf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal: mq4 File Attachments Open As Plain Text</title>
		<link>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/</link>
		<comments>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 19:43:43 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=270</guid>
		<description><![CDATA[A quick fix this morning for a client with a Drupal issue, links to mq4 files were opening as plain text in the browser window instead of presenting a download file prompt.
This is due to the server configuration, apache mime-types. It is usually easily fixed in an .htaccess file.


AddType application/octet-stream mq4

If that doesn&#8217;t sort the issue after clearing the browser cache, you can also try adding:

&#60;Files *.mq4&#62;
ForceType application/octet-stream
Header set Content-Disposition attachment
&#60;/Files&#62;

See also:
Drupal Mime-Types
Apache mod_mime
Apache htaccess directives

Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>A quick fix this morning for a client with a Drupal issue, links to mq4 files were opening as plain text in the browser window instead of presenting a download file prompt.</p>
<p>This is due to the server configuration, apache mime-types. It is usually easily fixed in an .htaccess file.<br />
<span id="more-270"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">AddType application<span style="color: #000000; font-weight: bold;">/</span>octet-stream mq4</pre></div></div>

<p>If that doesn&#8217;t sort the issue after clearing the browser cache, you can also try adding:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Files <span style="color: #000000; font-weight: bold;">*</span>.mq4<span style="color: #000000; font-weight: bold;">&gt;</span>
ForceType application<span style="color: #000000; font-weight: bold;">/</span>octet-stream
Header <span style="color: #000000; font-weight: bold;">set</span> Content-Disposition attachment
<span style="color: #000000; font-weight: bold;">&lt;/</span>Files<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>See also:<br />
<a href="http://obor.us/node/2027" rel="nofollow">Drupal Mime-Types</a><br />
<a href="http://httpd.apache.org/docs/1.3/mod/mod_mime.html" rel="nofollow">Apache mod_mime</a><br />
<a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" rel="nofollow">Apache htaccess directives</a>
</p>
<div class='wp_likes' id='wp_likes_post-270'><a class='like' href="javascript:wp_likes.like(270);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(270);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Quick Note on Just Host</title>
		<link>http://www.web-threads.com/2009/08/a-quick-note-on-just-host/</link>
		<comments>http://www.web-threads.com/2009/08/a-quick-note-on-just-host/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 17:59:36 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Website Management]]></category>
		<category><![CDATA[just host]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=254</guid>
		<description><![CDATA[This week I migrated a site for a client, from Heart Internet over to Just Host. In the process I found a few tidbits missing from the Just Host knowledge base, about server FTP and SSL details.

FTP everything in binary or it will strip all the whitespace out of your ascii transfers. PHP scripts stop working.
The Shared SSL on Just Host doesn&#8217;t work by default, you need to open a support ticket and make a request. They advise it will take up to 24 hours to work after that, and then your URL will be https://server.ip/~accountname.
Having this info would have saved me a bit of time, but the support was quite helpful and within an hour.
Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>This week I migrated a site for a client, from Heart Internet over to Just Host. In the process I found a few tidbits missing from the Just Host knowledge base, about server FTP and SSL details.</p>
<p><span id="more-254"></span><br />
FTP everything in binary or it will strip all the whitespace out of your ascii transfers. PHP scripts stop working.</p>
<p>The Shared SSL on Just Host doesn&#8217;t work by default, you need to open a support ticket and make a request. They advise it will take up to 24 hours to work after that, and then your URL will be https://server.ip/~accountname.</p>
<p>Having this info would have saved me a bit of time, but the support was quite helpful and within an hour.</p>
<div class='wp_likes' id='wp_likes_post-254'><a class='like' href="javascript:wp_likes.like(254);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(254);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/08/a-quick-note-on-just-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nucleus Podcast Uploads Via Applet</title>
		<link>http://www.web-threads.com/2009/04/nucleus-podcast-uploads-via-applet/</link>
		<comments>http://www.web-threads.com/2009/04/nucleus-podcast-uploads-via-applet/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 10:31:40 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[applet]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[nucleus]]></category>
		<category><![CDATA[podcasting]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=224</guid>
		<description><![CDATA[ If you need to provide a way for the technically challenged to easily upload media such as a podcast, one solution is to provide an ftp java applet for transferring the files so that you do not have to provide ftp access to the account. There are filesize upload limits on many servers and podcasts can be quite large. In our case we were using Nucleus for this CMS. This is an older article dug up from our previous archives that we thought worth saving.

After hours of searching for a suitable java applet, I found an ideal in JClientUpload which is dynamic and well supported as of this writing, includes drag and drop file support, ideal for easy use and affordable commercial licensing.
Always have backups before making modifications!
Install the JClient on your server and test to make sure it works before proceeding with the Nucleus modifications. Support for the ...]]></description>
			<content:encoded><![CDATA[<p> If you need to provide a way for the technically challenged to easily upload media such as a podcast, one solution is to provide an ftp java applet for transferring the files so that you do not have to provide ftp access to the account. There are filesize upload limits on many servers and podcasts can be quite large. In our case we were using Nucleus for this CMS. <em>This is an older article dug up from our previous archives that we thought worth saving.</em><br />
<span id="more-224"></span></p>
<p>After hours of searching for a suitable java applet, I found an ideal in <a href="http://www.javazoom.net/applets/applets.html">JClientUpload</a> which is dynamic and well supported as of this writing, includes drag and drop file support, ideal for easy use and affordable commercial licensing.<br />
<strong>Always have backups before making modifications!</strong></p>
<p>Install the JClient on your server and test to make sure it works before proceeding with the Nucleus modifications. Support for the ftp applet installation is at www.javazoom.net. Once you have JClient working properly, you can proceed to modify Nucleus. Note that if you are only installing this client and not integrating it with Nucleus logins, you should secure the applet appropriately. <em>A basic installation will be insecure.</em></p>
<p><strong>Modifying Nucleus</strong></p>
<p>This has only been tested with <strong>Nucleus version 3.31</strong>! If you have a lesser version, upgrade or adapt the hacks to suit your install. It may or may not work with higher versions.</p>
<p>Copy your working JClient to the directory where you&#8217;d like it to load from. Later we will create a new applet_ftp.js file to pass the correct nucleus media directory information.</p>
<p>It is also recommended to take additional steps to secure the Nucleus media directory. See <a href="http://forum.nucleuscms.org/viewtopic.php?t=17026">Nucleus forum discussion</a>.</p>
<p><strong>Adding the Custom Edit Button</strong></p>
<p> This uses the <a href="http://faq.nucleuscms.org/item/43">Nucleus FAQ</a> as a guide, don&#8217;t forget to <strong>back up your files</strong> before you begin modifying them. Keep in mind that Nucleus upgrades will overwrite these hacks so you may want to keep a list of changes so that you can redo the modifications after an upgrade.</p>
<p> Edit file: <em>/nucleus/javascript/edit.js</em>. Create the new button popup window function.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> addFtpFile<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> ftppopup <span style="color: #339933;">=</span> window<span style="color: #339933;">.</span>open<span style="color: #009900;">&#40;</span>nucleusFtpPopUrl <span style="color: #339933;">+</span> <span style="color: #0000ff;">'.ftpmedia.php'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> 
	<span style="color: #0000ff;">'status=yes,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=450,top=0,left=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> setFtpPopupURL<span style="color: #009900;">&#40;</span>url<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	nucleusFtpPopupURL <span style="color: #339933;">=</span> url<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Add the auto insert podcast tag function to work if NP_Podcast is installed. (This is available from the <a href="http://wiki.nucleuscms.org/plugin">Nucleus Plugins</a>) You can still include this function if NP_Podcast is not installed. It will only be used if the plugin is loaded.</p>
<p>Find:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">function includeOtherMedia(collection, filename) {
	if (isCaretEmpty()) {
		text = prompt(&quot;Text to display ?&quot;,&quot;&quot;);
	} else {
		text = getCaretText();
	}
&nbsp;
	// add collection name when not private collection (or editing a message that's not your)
	var fullName;
	if (isNaN(collection) || (nucleusAuthorId != collection)) {
		fullName = collection + '/' + filename;
	} else {
		fullName = filename;
	}
&nbsp;
	var replaceBy = '<span style="color: #000000; font-weight: bold;">&lt;%</span>media<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' +  fullName + '</span><span style="color: #339933;">|</span><span style="color: #0000ff;">' + text +'</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">%&gt;</span>';
&nbsp;
	insertAtCaret(replaceBy);
	updAllPreviews();
}</pre></div></div>

<p>And add after it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">function includePodcast(collection, filename) {
	if (isCaretEmpty()) {
		text = prompt(&quot;Name of Content ?&quot;,&quot;&quot;);
	} else {
		text = getCaretText();
	}
&nbsp;
	// add collection name when not private collection (or editing a message that's not your)
	var fullName;
	if (isNaN(collection) || (nucleusAuthorId != collection)) {
		fullName = collection + '/' + filename;
	} else {
		fullName = filename;
	}
&nbsp;
	var replaceBy = '<span style="color: #000000; font-weight: bold;">&lt;%</span>Podcast<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' +  fullName + '</span><span style="color: #339933;">|</span><span style="color: #0000ff;">' + text +'</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">%&gt;</span>';
&nbsp;
	insertAtCaret(replaceBy);
	updAllPreviews();
}</pre></div></div>

<p>Edit file: /nucleus/libs/PAGEFACTORY.PHP. Add buttons to the editor menus for both javascript blocks. </p>
<p>Find twice:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">					<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_jsbutton<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'right'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;rightThis()&quot;</span><span style="color: #339933;">,</span>_ADD_RIGHT_TT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add after:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">					<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_jsbutton<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'file'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;addFtpFile()&quot;</span><span style="color: #339933;">,</span>_ADD_FTP_TT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add your 16&#215;16 ftp button image to /nucleus/images/, named button-file.gif.</p>
<p><strong>Adding a popup media/applet page </strong></p>
<p>  * Create a new media file /nucleus/ftpmedia.php, which is based on media.php. This will work with the ftp applet instead of the standard Nucleus media upload script. </p>
<p><strong>ftpmedia.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
 * Copyright (C) 2002-2007 The Nucleus Group
 *
 * 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.
 * (see nucleus/documentation/index.html#license for more info)
 */</span>
<span style="color: #009933; font-style: italic;">/**
 * Media popup window for Nucleus
 *
 * Purpose:
 *   - can be openen from an add-item form or bookmarklet popup
 *   - shows a list of recent files, allowing browsing, search and
 *     upload of new files
 *   - close the popup by selecting a file in the list. The file gets
 *     passed through to the add-item form (linkto, popupimg or inline img)
 *
 * @license http://nucleuscms.org/license.txt GNU General Public License
 * @copyright Copyright (C) 2002-2007 The Nucleus Group
  * $Id: ftpmedia.php,v 1.00 April 19, 2008 01:48:27 PM  purplepaisley68 
 *
 */</span>
&nbsp;
<span style="color: #000088;">$CONF</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// defines how much media items will be shown per page. You can override this</span>
<span style="color: #666666; font-style: italic;">// in config.php if you like. (changing it in config.php instead of here will</span>
<span style="color: #666666; font-style: italic;">// allow your settings to be kept even after a Nucleus upgrade)</span>
<span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaPerPage'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// include all classes and config data</span>
<span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'../config.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DIR_LIBS</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'MEDIA.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	<span style="color: #666666; font-style: italic;">// media classes</span>
&nbsp;
sendContentType<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'application/xhtml+xml'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'media'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// user needs to be logged in to use this</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$member</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isLoggedIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	media_loginAndPassThrough<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// check if member is on at least one teamlist</span>
<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT * FROM '</span> <span style="color: #339933;">.</span> sql_table<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'team'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">' WHERE tmember='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$member</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getID</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$teams</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$teams</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	media_doError<span style="color: #009900;">&#40;</span>_ERROR_DISALLOWEDUPLOAD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// get action</span>
<span style="color: #000088;">$action</span> <span style="color: #339933;">=</span> requestVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$action</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$action</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'selectmedia'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// check ticket</span>
<span style="color: #000088;">$aActionsNotToCheck</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'selectmedia'</span><span style="color: #339933;">,</span> _MEDIA_FILTER_APPLY<span style="color: #339933;">,</span> _MEDIA_COLLECTION_SELECT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$action</span><span style="color: #339933;">,</span> <span style="color: #000088;">$aActionsNotToCheck</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$manager</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">checkTicket</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		media_doError<span style="color: #009900;">&#40;</span>_ERROR_BADTICKET<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$action</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'chooseupload'</span><span style="color: #339933;">:</span>
	<span style="color: #b1b100;">case</span> _MEDIA_UPLOAD_TO<span style="color: #339933;">:</span>
	<span style="color: #b1b100;">case</span> _MEDIA_UPLOAD_NEW<span style="color: #339933;">:</span>
		ftp_choose<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'uploadfile'</span><span style="color: #339933;">:</span>
		media_select<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> _MEDIA_FILTER_APPLY<span style="color: #339933;">:</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'selectmedia'</span><span style="color: #339933;">:</span>
	<span style="color: #b1b100;">case</span> _MEDIA_COLLECTION_SELECT<span style="color: #339933;">:</span>
	<span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
		media_select<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// select a file from a list</span>
<span style="color: #000000; font-weight: bold;">function</span> media_select<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$member</span><span style="color: #339933;">,</span> <span style="color: #000088;">$CONF</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DIR_MEDIA</span><span style="color: #339933;">,</span> <span style="color: #000088;">$manager</span><span style="color: #339933;">;</span>
&nbsp;
	media_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// show 10 files + navigation buttons</span>
	<span style="color: #666666; font-style: italic;">// show msg when no files</span>
	<span style="color: #666666; font-style: italic;">// show upload form</span>
	<span style="color: #666666; font-style: italic;">// files sorted according to last modification date</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// currently selected collection</span>
	<span style="color: #000088;">$currentCollection</span> <span style="color: #339933;">=</span> requestVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'collection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$currentCollection</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!@</span><span style="color: #990000;">is_dir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DIR_MEDIA</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$currentCollection</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$member</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getID</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<span style="color: #666666; font-style: italic;">// get collection list</span>
	<span style="color: #000088;">$collections</span> <span style="color: #339933;">=</span> MEDIA<span style="color: #339933;">::</span><span style="color: #004000;">getCollectionList</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collections</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;form method=&quot;post&quot; action=&quot;ftpmedia.php&quot;&gt;&lt;div&gt;
			&lt;label for=&quot;media_collection&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_COLLECTION_LABEL<span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;
			&lt;select name=&quot;collection&quot; id=&quot;media_collection&quot;&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span>					<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$collections</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$dirname</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$description</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;'</span><span style="color: #339933;">,</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dirname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$dirname</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
							<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">' selected=&quot;selected&quot;'</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #339933;">,</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/select&gt;
			&lt;input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_COLLECTION_SELECT<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_COLLECTION_TT<span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
			&lt;input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_UPLOAD_TO<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_UPLOADLINK<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$manager</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addTicketHidden</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;&lt;/form&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;form method=&quot;post&quot; action=&quot;ftpmedia.php&quot; style=&quot;float:right&quot;&gt;&lt;div&gt;
			&lt;input type=&quot;hidden&quot; name=&quot;collection&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
			&lt;input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_UPLOAD_NEW<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_UPLOADLINK<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$manager</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addTicketHidden</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;&lt;/form&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>	<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// if sizeof</span>
&nbsp;
	<span style="color: #000088;">$filter</span> <span style="color: #339933;">=</span> requestVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'filter'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$offset</span> <span style="color: #339933;">=</span> intRequestVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'offset'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$arr</span> <span style="color: #339933;">=</span> MEDIA<span style="color: #339933;">::</span><span style="color: #004000;">getMediaListByCollection</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$currentCollection</span><span style="color: #339933;">,</span> <span style="color: #000088;">$filter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;form method=&quot;post&quot; action=&quot;ftpmedia.php&quot;&gt;&lt;div&gt;
			&lt;label for=&quot;media_filter&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_FILTER_LABEL<span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;
			&lt;input id=&quot;media_filter&quot; type=&quot;text&quot; name=&quot;filter&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filter</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
			&lt;input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_FILTER_APPLY<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
			&lt;input type=&quot;hidden&quot; name=&quot;collection&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
			&lt;input type=&quot;hidden&quot; name=&quot;offset&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$offset</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
		&lt;/div&gt;&lt;/form&gt;
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;table width=&quot;100%&quot;&gt;
		&lt;caption&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _MEDIA_COLLECTION_LABEL <span style="color: #339933;">.</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collections</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/caption&gt;
		&lt;tr&gt;
		 &lt;th&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _MEDIA_MODIFIED<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/th&gt;&lt;th&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _MEDIA_FILENAME<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/th&gt;&lt;th&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _MEDIA_DIMENSIONS<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/th&gt;
		&lt;/tr&gt;
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$offset</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaPerPage'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$offset</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaPerPage'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$offset</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$offset</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$idxStart</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$offset</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$idxEnd</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$offset</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaPerPage'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$idxNext</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$idxEnd</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$idxPrev</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$idxStart</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaPerPage'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$idxPrev</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$idxPrev</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$idxEnd</span> <span style="color: #339933;">&gt;</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$idxEnd</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #000088;">$idxStart</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$idxEnd</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$obj</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$arr</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$DIR_MEDIA</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$currentCollection</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000088;">$old_level</span> <span style="color: #339933;">=</span> <span style="color: #990000;">error_reporting</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$size</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">GetImageSize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #990000;">error_reporting</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$old_level</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$width</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$size</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$height</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$size</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$filetype</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$size</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;tr&gt;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;td&gt;&quot;</span><span style="color: #339933;">.</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y-m-d&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">timestamp</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// strings for javascript</span>
			<span style="color: #000088;">$jsCurrentCollection</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;\'&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$jsFileName</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;\'&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$filetype</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">// image (gif/jpg/png/swf)</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;td&gt;&lt;a href=&quot;</span>ftpmedia<span style="color: #339933;">.</span>php<span style="color: #0000ff;">&quot; onclick=&quot;</span>chooseImage<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&quot;, htmlspecialchars($jsCurrentCollection), &quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;, htmlspecialchars($jsFileName), &quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;
							   . &quot;</span><span style="color: #0000ff;">'&quot;, htmlspecialchars($width), &quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot; , htmlspecialchars($height), &quot;'</span><span style="color: #0000ff;">&quot;
							   . &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #0000ff;">&quot; title=&quot;</span><span style="color: #0000ff;">&quot; . htmlspecialchars(<span style="color: #006699; font-weight: bold;">$obj-&gt;filename</span>). &quot;</span><span style="color: #0000ff;">&quot;&gt;&quot;</span>
							   <span style="color: #339933;">.</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>shorten<span style="color: #009900;">&#40;</span><span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">25</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'...'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
							   <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">' (&lt;a href=&quot;'</span><span style="color: #339933;">,</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaURL'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$currentCollection</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&quot; onclick=&quot;window.open(this.href); return false;&quot; title=&quot;'</span><span style="color: #339933;">,</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_VIEW_TT<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">,</span>_MEDIA_VIEW<span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/a&gt;)'</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strstr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$jsFileName</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'mp3'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$manager</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pluginInstalled</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'NP_Podcast'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">// Podcast (mp3)</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;td&gt;&lt;a href=&quot;</span>ftpmedia<span style="color: #339933;">.</span>php<span style="color: #0000ff;">&quot; onclick=&quot;</span>choosePodcast<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&quot;, htmlspecialchars($jsCurrentCollection), &quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;, htmlspecialchars($jsFileName), &quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;
							   . &quot;</span><span style="color: #0000ff;">'&quot;, htmlspecialchars($width), &quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot; , htmlspecialchars($height), &quot;'</span><span style="color: #0000ff;">&quot;
							   . &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #0000ff;">&quot; title=&quot;</span><span style="color: #0000ff;">&quot; . htmlspecialchars(<span style="color: #006699; font-weight: bold;">$obj-&gt;filename</span>). &quot;</span><span style="color: #0000ff;">&quot;&gt;&quot;</span>
							   <span style="color: #339933;">.</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>shorten<span style="color: #009900;">&#40;</span><span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">25</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'...'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
							   <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">' (&lt;a href=&quot;'</span><span style="color: #339933;">,</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaURL'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$currentCollection</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&quot; onclick=&quot;window.open(this.href); return false;&quot; title=&quot;'</span><span style="color: #339933;">,</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>_MEDIA_VIEW_TT<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">,</span>_MEDIA_VIEW<span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/a&gt;)'</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
	 <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">// no image (e.g. mpg)</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;td&gt;&lt;a href='media.php' onclick=&quot;</span>chooseOther<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&quot; , htmlspecialchars($jsCurrentCollection), &quot;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;, htmlspecialchars($jsFileName), &quot;'</span><span style="color: #0000ff;">&quot;
							   . &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #0000ff;">&quot; title=&quot;</span><span style="color: #0000ff;">&quot; . htmlspecialchars(<span style="color: #006699; font-weight: bold;">$obj-&gt;filename</span>). &quot;</span><span style="color: #0000ff;">&quot;&gt;&quot;</span>
							   <span style="color: #339933;">.</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>shorten<span style="color: #009900;">&#40;</span><span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'...'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
							   <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#125;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;td&gt;'</span> <span style="color: #339933;">,</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$width</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'x'</span> <span style="color: #339933;">,</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$height</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;/td&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/tr&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// if (sizeof($arr)&gt;0)</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		&lt;/table&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$idxStart</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;a href='media.php?offset=<span style="color: #006699; font-weight: bold;">$idxPrev</span>&amp;amp;collection=&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;&quot;</span><span style="color: #339933;">.</span> _LISTS_PREV<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt; &quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$idxEnd</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;a href='media.php?offset=<span style="color: #006699; font-weight: bold;">$idxNext</span>&amp;amp;collection=&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$currentCollection</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;&quot;</span><span style="color: #339933;">.</span> _LISTS_NEXT<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt; &quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;input id=&quot;typeradio0&quot; type=&quot;radio&quot; name=&quot;typeradio&quot; onclick=&quot;setType(0);&quot; checked=&quot;checked&quot; /&gt;&lt;label for=&quot;typeradio0&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _MEDIA_INLINE<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;
		&lt;input id=&quot;typeradio1&quot; type=&quot;radio&quot; name=&quot;typeradio&quot; onclick=&quot;setType(1);&quot; /&gt;&lt;label for=&quot;typeradio1&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _MEDIA_POPUP<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	media_foot<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
  * Shows a screen where you can select the file to upload
  */</span>
<span style="color: #666666; font-style: italic;">/* Replaced function
&nbsp;
	function media_choose() {
	global $CONF, $member, $manager;
&nbsp;
	$currentCollection = requestVar('collection');
&nbsp;
	$collections = MEDIA::getCollectionList();
&nbsp;
	media_head();
	?&gt;
	&lt;h1&gt;&lt;?php echo _UPLOAD_TITLE?&gt;&lt;/h1&gt;
&nbsp;
	&lt;p&gt;&lt;?php echo _UPLOAD_MSG?&gt;&lt;/p&gt;
&nbsp;
	&lt;form method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; action=&quot;ftpmedia.php&quot;&gt;
	&lt;div&gt;
	  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;uploadfile&quot; /&gt;
	  &lt;?php $manager-&gt;addTicketHidden() ?&gt;
	  &lt;input type=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;&lt;?php echo $CONF['MaxUploadSize']?&gt;&quot; /&gt;
	  File:
	  &lt;br /&gt;
	  &lt;input name=&quot;uploadfile&quot; type=&quot;file&quot; size=&quot;40&quot; /&gt;
	&lt;?php		if (sizeof($collections) &gt; 1) {
	?&gt;
		&lt;br /&gt;&lt;br /&gt;&lt;label for=&quot;upload_collection&quot;&gt;Collection:&lt;/label&gt;
		&lt;br /&gt;&lt;select name=&quot;collection&quot; id=&quot;upload_collection&quot;&gt;
			&lt;?php				foreach ($collections as $dirname =&gt; $description) {
					echo '&lt;option value=&quot;',htmlspecialchars($dirname),'&quot;';
					if ($dirname == $currentCollection) {
						echo ' selected=&quot;selected&quot;';
					}
					echo '&gt;',htmlspecialchars($description),'&lt;/option&gt;';
				}
			?&gt;
		&lt;/select&gt;
	&lt;?php		} else {
	?&gt;
		&lt;input name=&quot;collection&quot; type=&quot;hidden&quot; value=&quot;&lt;?php echo htmlspecialchars(requestVar('collection'))?&gt;&quot; /&gt;
	&lt;?php		} // if sizeof
	?&gt;
	  &lt;br /&gt;&lt;br /&gt;
	  &lt;input type=&quot;submit&quot; value=&quot;&lt;?php echo _UPLOAD_BUTTON?&gt;&quot; /&gt;
	&lt;/div&gt;
	&lt;/form&gt;
&nbsp;
	&lt;?php
	media_foot();
} */</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
  * Shows a screen with the file upload applet
  */</span>
<span style="color: #000000; font-weight: bold;">function</span> ftp_choose<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$CONF</span><span style="color: #339933;">,</span> <span style="color: #000088;">$member</span><span style="color: #339933;">,</span> <span style="color: #000088;">$manager</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$currentCollection</span> <span style="color: #339933;">=</span> requestVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'collection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$collections</span> <span style="color: #339933;">=</span> MEDIA<span style="color: #339933;">::</span><span style="color: #004000;">getCollectionList</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	media_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;h1&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _UPLOAD_TITLE<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h1&gt;
&nbsp;
	&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _UPLOAD_MSG<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
&nbsp;
&lt;!-- jClientUpload Applet : Begin copy/paste --&gt;
&lt;script src=&quot;podcasts/applet_ftp.js.php?memberid=<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$currentCollection</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;/script&gt;
&lt;!-- jClientUpload Applet : End copy/paste --&gt;
&nbsp;
&lt;br /&gt;
	&lt;form method=&quot;post&quot; action=&quot;ftpmedia.php&quot;&gt;
	&lt;div&gt;
	  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;uploadfile&quot; /&gt;
	  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$manager</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addTicketHidden</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	  &lt;input type=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MaxUploadSize'</span><span style="color: #009900;">&#93;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
	  File:
	  &lt;br /&gt;
	  &lt;input type=&quot;submit&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _FINISH_BUTTON<span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
	&lt;/div&gt;
	&lt;/form&gt;
      &lt;p&gt;&lt;b&gt;jClientUpload 1.9.3 Applet&lt;/b&gt;&lt;br&gt;
Homepage : &lt;a href=&quot;http://www.javazoom.net/applets/jclientupload/jclientupload.html&quot; target=&quot;_blank&quot;&gt;http://www.javazoom.net&lt;/a&gt; &lt;br&gt;
&lt;br&gt;
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	media_foot<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
  * accepts a file for upload
  */</span>
<span style="color: #000000; font-weight: bold;">function</span> media_upload<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$DIR_MEDIA</span><span style="color: #339933;">,</span> <span style="color: #000088;">$member</span><span style="color: #339933;">,</span> <span style="color: #000088;">$CONF</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$uploadInfo</span> <span style="color: #339933;">=</span> postFileInfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'uploadfile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$uploadInfo</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$filetype</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$uploadInfo</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'type'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$filesize</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$uploadInfo</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'size'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$filetempname</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$uploadInfo</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tmp_name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$fileerror</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$uploadInfo</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'error'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fileerror</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// = UPLOAD_ERR_OK</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// = UPLOAD_ERR_INI_SIZE</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>	<span style="color: #666666; font-style: italic;">// = UPLOAD_ERR_FORM_SIZE</span>
			media_doError<span style="color: #009900;">&#40;</span>_ERROR_FILE_TOO_BIG<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// = UPLOAD_ERR_PARTIAL</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// = UPLOAD_ERR_NO_FILE</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// = UPLOAD_ERR_NO_TMP_DIR</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// = UPLOAD_ERR_CANT_WRITE</span>
		<span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
			<span style="color: #666666; font-style: italic;">// include error code for debugging</span>
			<span style="color: #666666; font-style: italic;">// (see http://www.php.net/manual/en/features.file-upload.errors.php)</span>
			media_doError<span style="color: #009900;">&#40;</span>_ERROR_BADREQUEST <span style="color: #339933;">.</span> <span style="color: #0000ff;">' ('</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$fileerror</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">')'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$filesize</span> <span style="color: #339933;">&gt;</span> <span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MaxUploadSize'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
		media_doError<span style="color: #009900;">&#40;</span>_ERROR_FILE_TOO_BIG<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// check file type against allowed types</span>
	<span style="color: #000088;">$ok</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$allowedtypes</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span> <span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AllowedTypes'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$allowedtypes</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$type</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span> <span style="color: #339933;">.</span><span style="color: #000088;">$type</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;$&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$ok</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$ok</span><span style="color: #009900;">&#41;</span> media_doError<span style="color: #009900;">&#40;</span>_ERROR_BADFILETYPE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_uploaded_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filetempname</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		media_doError<span style="color: #009900;">&#40;</span>_ERROR_BADREQUEST<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// prefix filename with current date (YYYY-MM-DD-)</span>
	<span style="color: #666666; font-style: italic;">// this to avoid nameclashes</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$CONF</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MediaPrefix'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strftime</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%Y%m<span style="color: #009933; font-weight: bold;">%d</span>-&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> requestVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'collection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> MEDIA<span style="color: #339933;">::</span><span style="color: #004000;">addMediaObject</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collection</span><span style="color: #339933;">,</span> <span style="color: #000088;">$filetempname</span><span style="color: #339933;">,</span> <span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
		media_doError<span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// shows updated list afterwards</span>
	media_select<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> media_loginAndPassThrough<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	media_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h1&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _LOGIN_PLEASE<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h1&gt;
&nbsp;
		&lt;form method=&quot;post&quot; action=&quot;ftpmedia.php&quot;&gt;
		&lt;div&gt;
			&lt;input name=&quot;action&quot; value=&quot;login&quot; type=&quot;hidden&quot; /&gt;
			&lt;input name=&quot;collection&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>requestVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'collection'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; type=&quot;hidden&quot; /&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _LOGINFORM_NAME<span style="color: #000000; font-weight: bold;">?&gt;</span>: &lt;input name=&quot;login&quot; /&gt;
			&lt;br /&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _LOGINFORM_PWD<span style="color: #000000; font-weight: bold;">?&gt;</span>: &lt;input name=&quot;password&quot; type=&quot;password&quot; /&gt;
			&lt;br /&gt;&lt;input type=&quot;submit&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _LOGIN<span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
		&lt;/div&gt;
		&lt;/form&gt;
		&lt;p&gt;&lt;a href=&quot;media.php&quot; onclick=&quot;window.close();&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _POPUP_CLOSE<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/p&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>	media_foot<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> media_doError<span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	media_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;h1&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _ERROR<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h1&gt;
	&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$msg</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;p&gt;&lt;a href=&quot;ftpmedia.php&quot; onclick=&quot;history.back()&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> _BACK<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/p&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>	media_foot<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> media_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
	&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
	&lt;head&gt;
		&lt;title&gt;Nucleus Media&lt;/title&gt;
		&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styles/popups.css&quot; /&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
			var type = 0;
			function setType(val) { type = val; }
&nbsp;
			function chooseImage(collection, filename, width, height) {
				window.opener.focus();
				window.opener.includeImage(collection,
										   filename,
										   type == 0 ? 'inline' : 'popup',
										   width,
										   height
										   );
				window.close();
			}
&nbsp;
			function chooseOther(collection, filename) {
				window.opener.focus();
				window.opener.includeOtherMedia(collection, filename);
				window.close();
&nbsp;
			}
&nbsp;
			function choosePodcast(collection, filename) {
				window.opener.focus();
				window.opener.includePodcast(collection, filename);
				window.close();
&nbsp;
			}
&nbsp;
		&lt;/script&gt;
	&lt;/head&gt;
	&lt;body&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> media_foot<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/body&gt;
	&lt;/html&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>At this point, if all the edited files are uploaded, you should have a new button in the Editor and clicking it should load a new media upload window. **But we are not finished yet!**</p>
<p>  * Edit language files /nucleus/language/english.php, and english-utf8.php, you can adjust the podcast text as you wish.</p>
<p>Find in each:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_ADD_ALIGNCENTER_TT'</span><span style="color: #339933;">,</span>		<span style="color: #0000ff;">'Align Center'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add after (edit to suit):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_ADD_FTP_TT'</span><span style="color: #339933;">,</span>		<span style="color: #0000ff;">'FTP Upload - Podcast'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>And also find in each:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_MEDIA_COLLECTION_LABEL'</span><span style="color: #339933;">,</span>	<span style="color: #0000ff;">'Current collection: '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Add after:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_FINISH_BUTTON'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Finished..'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>Uploading to the correct Media directory </strong></p>
<p>In the ftpmedia.php applet upload page, instead of calling applet_ftp.js, we&#8217;re calling a new php file, applet_ftp.js.php to generate our javascript dynamically, and passing the applet the parameter information about the Nucleus user so that it uploads the file to the user&#8217;s media directory, else it won&#8217;t appear in the user&#8217;s media list.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!-- jClientUpload Applet : Begin copy/paste --&gt;
&lt;script src=&quot;path/to/applet_ftp.js.php?memberid=<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$currentCollection</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;/script&gt;
&lt;!-- jClientUpload Applet : End copy/paste --&gt;</pre></div></div>

<p>  * Create a copy of applet_ftp.js and name it applet_ftp.js.php.<br />
  * Add at the top:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// get the $memberid</span>
	<span style="color: #000088;">$memberid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'memberid'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>  * Add this to both parameter blocks to use this memberid.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  document.write('param5=&quot;account&quot; ');
  document.write('value5=&quot;/public_html/path-to-nucelus/media/<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$memberid</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot; ');</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  document.writeln('&lt;PARAM NAME=&quot;param5&quot; VALUE=&quot;account&quot;&gt; ');
  document.writeln('&lt;PARAM NAME=&quot;value5&quot; VALUE=&quot;/public_html/path-to-nucelus/media/<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$memberid</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot;&gt; ');</pre></div></div>

<p>  * You&#8217;ll also need add the relative path to where you installed the applet to be sure the ftpmedia page can find it. Do this for each file called in the line below and in both sets of parameters.</p>
<pre>ARCHIVE="path/to/lib/jclientupload.jar,</pre>
<p>Sample applet_ftp.js.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// get the $memberid</span>
	<span style="color: #000088;">$memberid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'memberid'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 	
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$memberid</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf(&quot;MSIE&quot;) &gt; 0 &amp;&amp; _info.indexOf(&quot;Win&quot;) &gt; 0 &amp;&amp; _info.indexOf(&quot;Windows 3.1&quot;) &lt; 0);
if (_info.indexOf(&quot;Opera&quot;) &gt; 0) _ie = false;
var _ns = (navigator.appName.indexOf(&quot;Netscape&quot;) &gt;= 0 &amp;&amp; ((_info.indexOf(&quot;Win&quot;) &gt; 0 &amp;&amp; _info.indexOf(&quot;Win16&quot;) &lt; 0) || (_info.indexOf(&quot;Sun&quot;) &gt; 0) || (_info.indexOf(&quot;Linux&quot;) &gt; 0) || (_info.indexOf(&quot;AIX&quot;) &gt; 0) || (_info.indexOf(&quot;OS/2&quot;) &gt; 0) || (_info.indexOf(&quot;IRIX&quot;) &gt; 0)));
var _ns6 = ((_ns == true) &amp;&amp; (_info.indexOf(&quot;Mozilla/5&quot;) &gt;= 0));
if (_ie == true) {
  document.writeln('&lt;OBJECT classid=&quot;clsid:8AD9C840-044E-11D1-B3E9-00805F499D93&quot; WIDTH=&quot;250&quot; HEIGHT=&quot;250&quot; NAME=&quot;clientupload&quot; codebase=&quot;http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0&quot;&gt;');
}
else if (_ns == true &amp;&amp; _ns6 == false) { 
  // BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
  document.write('&lt;EMBED ');
  document.write('type=&quot;application/x-java-applet;version=1.4&quot; ');
  document.write('CODE=&quot;javazoom.upload.client.MApplet.class&quot; ');
  document.write('JAVA_CODEBASE=&quot;./&quot; ');
  document.write('ARCHIVE=&quot;podcasts/lib/jclientupload.jar,podcasts/lib/ftpimpl.jar,podcasts/lib/cnet.jar,podcasts/lib/clogging.jar&quot; ');
  document.write('NAME=&quot;clientupload&quot; ');
  document.write('WIDTH=&quot;250&quot; ');
  document.write('HEIGHT=&quot;250&quot; ');
  document.write('url=&quot;ftp://ftpsite.org&quot; ');
  document.write('param1=&quot;username&quot; ');
  document.write('value1=&quot;ftpuser&quot; ');
  document.write('param2=&quot;password&quot; ');
  document.write('value2=&quot;ftppass&quot; ');
  document.write('param3=&quot;pasv&quot; ');
  document.write('value3=&quot;true&quot; ');
  document.write('mode=&quot;ftp&quot; ');
  document.write('scriptable=true ');
  document.write('maxsize=&quot;75*1024*1024&quot; ');
  document.write('whitelist=&quot;*.mp3&quot; ');
  document.write('param4=&quot;deleteonfail&quot; ');
  document.write('value4=&quot;true&quot; ');
  document.write('param5=&quot;account&quot; ');
  document.write('value5=&quot;/path/to/media/<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$memberid</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot; ');
&nbsp;
  document.writeln('pluginspage=&quot;http://java.sun.com/products/plugin/index.html#download&quot;&gt;&lt;NOEMBED&gt;');
  // END
}
else {
  document.write('&lt;APPLET CODE=&quot;javazoom.upload.client.MApplet.class&quot; JAVA_CODEBASE=&quot;./&quot; ARCHIVE=&quot;podcasts/lib/jclientupload.jar,podcasts/lib/ftpimpl.jar,podcasts/lib/cnet.jar,podcasts/lib/clogging.jar&quot; WIDTH=&quot;250&quot; HEIGHT=&quot;250&quot; NAME=&quot;clientupload&quot;&gt;');
}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
document.writeln('&lt;PARAM NAME=CODE VALUE=&quot;javazoom.upload.client.MApplet.class&quot;&gt;');
document.writeln('&lt;PARAM NAME=CODEBASE VALUE=&quot;./&quot;&gt;');
document.writeln('&lt;PARAM NAME=ARCHIVE VALUE=&quot;podcasts/lib/jclientupload.jar,podcasts/lib/ftpimpl.jar,podcasts/lib/cnet.jar,podcasts/lib/clogging.jar&quot;&gt;');
document.writeln('&lt;PARAM NAME=NAME VALUE=&quot;clientupload&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;type&quot; VALUE=&quot;application/x-java-applet;version=1.4&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;scriptable&quot; VALUE=&quot;true&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;url&quot; VALUE=&quot;ftp://ftpsite.org&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;param1&quot; VALUE=&quot;username&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;value1&quot; VALUE=&quot;ftplogin&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;param2&quot; VALUE=&quot;password&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;value2&quot; VALUE=&quot;ftppass&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;param3&quot; VALUE=&quot;pasv&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;value3&quot; VALUE=&quot;true&quot;&gt;');
document.writeln('&lt;PARAM NAME=&quot;mode&quot; VALUE=&quot;ftp&quot;&gt;');
  document.writeln('&lt;PARAM NAME=&quot;maxsize&quot; VALUE=&quot;75*1024*1024&quot;&gt; ');
  document.writeln('&lt;PARAM NAME=&quot;whitelist&quot; VALUE=&quot;*.mp3&quot;&gt; ');
  document.writeln('&lt;PARAM NAME=&quot;param4&quot; VALUE=&quot;deleteonfail&quot;&gt; ');
  document.writeln('&lt;PARAM NAME=&quot;value4&quot; VALUE=&quot;true&quot;&gt; ');
  document.writeln('&lt;PARAM NAME=&quot;param5&quot; VALUE=&quot;account&quot;&gt; ');
  document.writeln('&lt;PARAM NAME=&quot;value5&quot; VALUE=&quot;/path/to/media/<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$memberid</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot;&gt; ');
&nbsp;
// END
if (_ie == true) {
  document.write('&lt;/OBJECT&gt;');
}
else if (_ns == true &amp;&amp; _ns6 == false) {
  document.write('&lt;/NOEMBED&gt;&lt;/EMBED&gt;');
}
else {
  document.write('&lt;/APPLET&gt;');
}
//--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Hack attempt, forbidden'</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Be sure to change the paths and login details to your own server needs and upload your changed files. <em>You may also want to change occurrences of</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #339933;">..</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p> to</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #339933;">..</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This code is years old.</em></p>
<p>Now when you add a new item, your new upload button popup should load ftpmedia.php, and when you Select Upload File, it will load the applet page. Selecting the mp3 in the list should insert the correct media or podcast tags if NP_Podcast is installed. If not, make sure that all your paths and structure are correct for your installation.</p>
<p>Finally, be sure to secure your ftp applet and javascript file access.</p>
<div class='wp_likes' id='wp_likes_post-224'><a class='like' href="javascript:wp_likes.like(224);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(224);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/04/nucleus-podcast-uploads-via-applet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
