<?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>swape.net &#187; Scripts</title>
	<atom:link href="http://www.swape.net/w/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.swape.net/w</link>
	<description>alireza balouch</description>
	<lastBuildDate>Thu, 10 Nov 2011 07:33:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>niceUpload</title>
		<link>http://www.swape.net/w/2011/03/niceupload/</link>
		<comments>http://www.swape.net/w/2011/03/niceupload/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 19:23:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plug-ins]]></category>

		<guid isPermaLink="false">http://www.swape.net/w/?p=175</guid>
		<description><![CDATA[NiceUpload is a jQuery plug ins that replace the normal file input and makes it much more prettier.  You can adjust and tweak it with CSS if you want. See the demo here: http://lab.swape.net/niceUpload.1.0/ niceUpload.1.0.zip]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-176" title="Screen shot 2011-03-29 at 9.22.32 PM" src="http://www.swape.net/w/wp-content/uploads/2011/03/Screen-shot-2011-03-29-at-9.22.32-PM-300x97.png" alt="" width="300" height="97" />NiceUpload is a jQuery plug ins that replace the normal file input and makes it much more prettier.  You can adjust and tweak it with CSS if you want.</p>
<p>See the demo here: <a href="http://lab.swape.net/niceUpload.1.0/" target="_blank">http://lab.swape.net/niceUpload.1.0/</a></p>
<p><a href="http://lab.swape.net/niceUpload.1.0/niceUpload.1.0.zip" class="download">niceUpload.1.0.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.swape.net/w/2011/03/niceupload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multitag</title>
		<link>http://www.swape.net/w/2011/03/multitag/</link>
		<comments>http://www.swape.net/w/2011/03/multitag/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 19:17:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plug-ins]]></category>

		<guid isPermaLink="false">http://www.swape.net/w/?p=170</guid>
		<description><![CDATA[Multitag is a jQuery plug ins for making nice tag boxes. Click on the box and start writing a tag names and then press the “,” (comma) or enter button to make a tag See the demo here: http://lab.swape.net/multitag.1.0/ &#160; You can download the source from here https://github.com/swape/multitag]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-171" title="Screen shot 2011-03-29 at 9.12.58 PM" src="http://www.swape.net/w/wp-content/uploads/2011/03/Screen-shot-2011-03-29-at-9.12.58-PM-300x189.png" alt="" width="240" height="151" />Multitag is a jQuery plug ins for making nice tag boxes.<br />
Click on the box and start writing a tag names and then press the “,” (comma) or enter button to make a tag</p>
<p>See the demo here: <a href="http://lab.swape.net/multitag.1.0/" target="_blank">http://lab.swape.net/multitag.1.0/</a></p>
<p>&nbsp;</p>
<p>You can download the source from here <a href="https://github.com/swape/multitag">https://github.com/swape/multitag</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.swape.net/w/2011/03/multitag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Swape Gallery Light</title>
		<link>http://www.swape.net/w/2009/08/swape-gallery-light/</link>
		<comments>http://www.swape.net/w/2009/08/swape-gallery-light/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 19:40:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[SGL is a php5 script to list pictures. A fat way of making a galery and showing your pictures. This script finds all the pictures in a directory under ./test_pic/ and makes menus based on directories. All you have to do is putt your pictures in ./test_pic/ directory. Or edit $strPathToFiles = &#8216;./test_pic&#8217;; in sgl4.class.php [...]]]></description>
			<content:encoded><![CDATA[<p>SGL is a php5 script to list pictures. A fat way of making a galery and showing your pictures.</p>
<p>This script finds all the pictures in a directory under <strong>./test_pic/</strong> and makes menus based on directories.</p>
<p>All you have to do is putt your pictures in <strong>./test_pic/</strong><strong></strong> directory. Or edit <strong>$strPathToFiles = &#8216;./test_pic&#8217;;</strong> in <strong>sgl4.class.php</strong> file.</p>
<p>You can organize your pictures by category, by putting it under sub-directories.</p>
<p>The thumbs/ directory must be writable (CHMOD 755) to generate thumbnails automatically first time you visit the site. It will help loading your images faster.</p>
<p><strong>HOW TO INSTALL</strong></p>
<p>All you have to do is unzip the file.<br />
Unpack the <strong>sgl4.php</strong> and configure the paths.</p>
<p>Putt your pictures under <strong>./</strong><strong>test_pic</strong><strong>/</strong> directory.<br />
And don&#8217;t forget to <em>chmod 755</em> thumbs directory.</p>
<p><strong>SYSTEM REQUIRED.</strong></p>
<p>Server with PHP5.</p>
<p><a class="download" href="http://www.swape.net/w/wp-content/uploads/2009/08/sgl4.zip">sgl4.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.swape.net/w/2009/08/swape-gallery-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>favicon2png</title>
		<link>http://www.swape.net/w/2008/02/favicon2png/</link>
		<comments>http://www.swape.net/w/2008/02/favicon2png/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 20:22:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Here is a script to download the favicon.ico files from a website and save it as a png file. You must have imagemagick installed on your server to convert the ico file to png. &#160; &#60;!&#8212; html code &#8212;-&#62; &#60;form action=&#34;?&#34; method=&#34;post&#34;&#62; &#160; &#60;input id=&#34;site&#34; name=&#34;site&#34; type=&#34;text&#34; value=&#34;&#60;?php echo $_POST['site']; ?/&#62;&#34; /&#62; &#160; &#60;input type=&#34;submit&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a script to download the favicon.ico files from a website and save it as a png file.</p>
<p>You must have imagemagick installed on your server to convert the ico file to png.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;!&#8212; html code &#8212;-&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;form action=<span class="st0">&quot;?&quot;</span> method=<span class="st0">&quot;post&quot;</span>&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &lt;input id=<span class="st0">&quot;site&quot;</span> name=<span class="st0">&quot;site&quot;</span> type=<span class="st0">&quot;text&quot;</span></div>
</li>
<li class="li2">
<div class="de2">value=<span class="st0">&quot;&lt;?php echo $_POST['site']; ?/&gt;&quot;</span> /&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &lt;input type=<span class="st0">&quot;submit&quot;</span> /&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;/form&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt; ?php</div>
</li>
<li class="li2">
<div class="de2"><span class="co1">//&#8212; favicon2png by Alireza Balouch @ swape.net 2008</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8216;site&#8217;</span><span class="br0">&#93;</span> != <span class="st0">&#8221;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//finding the hostname</span></div>
</li>
<li class="li2">
<div class="de2"><span class="re0">$host</span> = <a href="http://www.php.net/parse_url"><span class="kw3">parse_url</span></a><span class="br0">&#40;</span><span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8216;site&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$host</span> = <span class="re0">$host</span><span class="br0">&#91;</span><span class="st0">&#8216;host&#8217;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$host</span> = <a href="http://www.php.net/explode"><span class="kw3">explode</span></a><span class="br0">&#40;</span><span class="st0">&#8216;.&#8217;</span> , <span class="re0">$host</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$host</span> = <span class="re0">$host</span><span class="br0">&#91;</span><a href="http://www.php.net/count"><span class="kw3">count</span></a><span class="br0">&#40;</span><span class="re0">$host</span><span class="br0">&#41;</span> <span class="nu0">-2</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$filename</span> = <span class="st0">&#8216;img/&#8217;</span> . <span class="re0">$host</span> . <span class="st0">&#8216;.png&#8217;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span>!<a href="http://www.php.net/is_file"><span class="kw3">is_file</span></a><span class="br0">&#40;</span><span class="re0">$filename</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// getting the favicon</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$handle</span> = <a href="http://www.php.net/fopen"><span class="kw3">fopen</span></a><span class="br0">&#40;</span> <span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8216;site&#8217;</span><span class="br0">&#93;</span> . <span class="st0">&#8216;/favicon.ico&#8217;</span>, <span class="st0">&quot;rb&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$contents</span> = stream_get_contents<span class="br0">&#40;</span><span class="re0">$handle</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2"><a href="http://www.php.net/fclose"><span class="kw3">fclose</span></a><span class="br0">&#40;</span><span class="re0">$handle</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">file_put_contents<span class="br0">&#40;</span><span class="st0">&#8216;fav.ico&#8217;</span> , <span class="re0">$contents</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// converting to png</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$StrExec</span> = <span class="st0">&#8216;/usr/local/bin/convert fav.ico -resize 24&#215;24<span class="es0">\></span> &#8216;</span> . <span class="re0">$filename</span> ;</div>
</li>
<li class="li2">
<div class="de2"><span class="re0">$ret</span> = <a href="http://www.php.net/exec"><span class="kw3">exec</span></a><span class="br0">&#40;</span><span class="re0">$StrExec</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216;&lt;img src=&quot;&#8217;</span> . <span class="re0">$filename</span> . <span class="st0">&#8216;&quot; /&gt;&#8217;</span> . <span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8216;site&#8217;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.swape.net/w/2008/02/favicon2png/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

