<?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>Blog by Andreas Glaser &#187; Computer</title>
	<atom:link href="http://www.andreas-glaser.com/category/computer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andreas-glaser.com</link>
	<description>Development, Technology and such...</description>
	<lastBuildDate>Wed, 18 May 2011 23:16:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Ubuntu 10.10 to 11.04 Upgrade Issue</title>
		<link>http://www.andreas-glaser.com/2011/02/28/ubuntu-10-10-to-11-04-upgrade-issue/</link>
		<comments>http://www.andreas-glaser.com/2011/02/28/ubuntu-10-10-to-11-04-upgrade-issue/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 22:33:45 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=627</guid>
		<description><![CDATA[Just came across a little issue as I tried to upgrade my Ubuntu 10.10 (maverick) to 11.04 Alpha 2 (Natty). I followed the offical upgrade guide on ubuntu.com (http://www.ubuntu.com/testing/natty/alpha2) and ran into following error. root@jazz:/home/andreas-glaser# update-manager -d warning: could not initiate dbus ** GLib-GIO:ERROR:/build/buildd/glib2.0-2.26.1/gio/gdbusconnection.c:2270:initable_init: assertion failed: (connection-&#62;initialization_error == NULL) Aborted Solution Instead of &#8220;update-manager -d&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Just came across a little issue as I tried to upgrade my Ubuntu 10.10 (maverick) to 11.04 Alpha 2 (Natty).<br />
I followed the offical upgrade guide on <a href="ubuntu.com" target="_blank">ubuntu.com</a> (<a href="http://www.ubuntu.com/testing/natty/alpha2" target="_blank">http://www.ubuntu.com/testing/natty/alpha2</a>) and ran into following error.</p>
<blockquote><p>root@jazz:/home/andreas-glaser# update-manager -d<br />
warning: could not initiate dbus<br />
**<br />
GLib-GIO:ERROR:/build/buildd/glib2.0-2.26.1/gio/gdbusconnection.c:2270:initable_init: assertion failed: (connection-&gt;initialization_error == NULL)<br />
Aborted</p>
</blockquote>
<h2>Solution</h2>
<p>Instead of &#8220;update-manager -d&#8221; simply use &#8220;dbus-launch update-manager -d&#8221;</p>
<p>Enjoy!</p>
<p>&nbsp;</p>
<fb:like href='http://www.andreas-glaser.com/2011/02/28/ubuntu-10-10-to-11-04-upgrade-issue/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2011/02/28/ubuntu-10-10-to-11-04-upgrade-issue/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to make Firefox look like Chome</title>
		<link>http://www.andreas-glaser.com/2011/01/18/how-to-make-look-firefox-like-chome/</link>
		<comments>http://www.andreas-glaser.com/2011/01/18/how-to-make-look-firefox-like-chome/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 15:03:07 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=617</guid>
		<description><![CDATA[Granted, Googles Chrome looks a thousand times better than Firefoxes default theme. Luckily we can with only three small addons make Firefox look and feel almost identical. Required Addons Chromifox Basic &#8211; Chrome theme for Firefox Ominbar &#8211; Combines address and searchbar Download Statusbar &#8211; Displays download statuses in the statusbar Result Enjoy!]]></description>
			<content:encoded><![CDATA[<p>Granted, Googles Chrome looks a thousand times better than Firefoxes default theme.<br />
Luckily we can with only three small addons make Firefox look and feel almost identical.</p>
<h2>Required Addons</h2>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/chromifox-basic/" target="_blank">Chromifox Basic</a> &#8211; Chrome theme for Firefox</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/omnibar/" target="_blank">Ominbar</a> &#8211; Combines address and searchbar</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/download-statusbar/">Download Statusbar</a> &#8211; Displays download statuses in the statusbar</li>
</ul>
<h2>Result</h2>
<p><a href="http://www.andreas-glaser.com/wp-content/uploads/2011/01/Welcome-to-Flickr-Photo-Sharing_1295362601560.png"><img class="alignnone size-medium wp-image-618" title="Firefox Chrome Theme" src="http://www.andreas-glaser.com/wp-content/uploads/2011/01/Welcome-to-Flickr-Photo-Sharing_1295362601560-300x188.png" alt="" width="300" height="188" /></a></p>
<p>Enjoy!</p>
<fb:like href='http://www.andreas-glaser.com/2011/01/18/how-to-make-look-firefox-like-chome/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2011/01/18/how-to-make-look-firefox-like-chome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webservices &#8211; REST vs. Soap</title>
		<link>http://www.andreas-glaser.com/2010/11/29/webservices-rest-vs-soap/</link>
		<comments>http://www.andreas-glaser.com/2010/11/29/webservices-rest-vs-soap/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 12:19:26 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[Soap]]></category>
		<category><![CDATA[Webservice]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=602</guid>
		<description><![CDATA[As I was browsing the web I came across this excellent article about REST and Soap written by Paul Prescod. Roots of the REST/SOAP Debate I hope you guys enjoy it as much as I did.]]></description>
			<content:encoded><![CDATA[<p>As I was browsing the web I came across this excellent article about REST and Soap written by Paul Prescod.</p>
<p><a href="http://www.prescod.net/rest/rest_vs_soap_overview/" target="_blank">Roots of the REST/SOAP Debate</a></p>
<p>I hope you guys enjoy it as much as I did.</p>
<fb:like href='http://www.andreas-glaser.com/2010/11/29/webservices-rest-vs-soap/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2010/11/29/webservices-rest-vs-soap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Python) Mysqldump Backup 1.1</title>
		<link>http://www.andreas-glaser.com/2010/04/12/python-mysqldump-backup-1-1/</link>
		<comments>http://www.andreas-glaser.com/2010/04/12/python-mysqldump-backup-1-1/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 08:00:02 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=326</guid>
		<description><![CDATA[Backups are crucial! Since that is fact I wrote a little script in Python to easily backup mysql databases on a linux server. How do i configure it? After you downloaded the script to your Linux server you will need a few Linux packages. Execute the following commands as root: apt-get update apt-get install python [...]]]></description>
			<content:encoded><![CDATA[<p>Backups are crucial!<br />
Since that is fact I wrote a little script in Python to easily backup mysql databases on a linux server.</p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong><br />
How do i configure it?<br />
</strong>After you downloaded the script to your Linux server you will need a few Linux packages. Execute the following commands as root:</p>
<blockquote><p><em>apt-get update<br />
apt-get install python mysqldump bzip2</em></p></blockquote>
<p><strong>What does it do?</strong><br />
This script dumps a certain database (or all databases) into a single mysql file, which is zipped (bzip2) afterwards.</p>
<p>Now edit the script with your preferred editor.</p>
<blockquote><p><em>vim mysqldump-backup.py</em></p></blockquote>
<p><strong>Customize the following lines:</strong></p>
<blockquote><p># 2. Config<br />
mysqlUser = &#8220;root&#8221;<br />
mysqlPwd = &#8220;YOUR_PASSWORD&#8221;<br />
mysqlDatabase = &#8220;&#8211;all-databases&#8221;<br />
dumpDir = &#8220;/tmp/&#8221;<br />
dumpFile = &#8220;mysqldump-&#8221; + strftime(&#8220;%Y-%m-%d-%H-%M-%S&#8221;, gmtime()) + &#8220;.sql&#8221;</p></blockquote>
<p>The last step is to make the script executable:</p>
<blockquote><p><em>chmod u +x mysqldump-backup-1.1.py</em></p></blockquote>
<p>Thats it!</p>
<p>You can now run the script:</p>
<blockquote><p><em>/path/to/the/script/mysqldump-backup-1.1.py</em></p></blockquote>
<p><strong>To run it daily (crontab):</strong></p>
<blockquote><p><em>crontab -e</em></p></blockquote>
<p>Add at the bottom:</p>
<blockquote><p>0 3 * * * <em>/path/to/the/script/mysqldump-backup.py</em></p></blockquote>
<p>Now your databases will be backupped daily at 03:00 am</p>
<p><strong>Download</strong></p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>Changelog</strong><br />
1.1</p>
<ul>
<li>Removed trailing semicolons</li>
<li>Renamed variables</li>
</ul>
<p>1.0 </p>
<ul>
<li>Initial release</li>
</ul>
<p>Have fun!<br />
Andreas Glaser aka JaZz</p>
<fb:like href='http://www.andreas-glaser.com/2010/04/12/python-mysqldump-backup-1-1/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2010/04/12/python-mysqldump-backup-1-1/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Apache2 &#8211; Perfect mod_expires configuration</title>
		<link>http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/</link>
		<comments>http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:37:41 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Modules]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=522</guid>
		<description><![CDATA[Well, &#8220;perfect&#8221; might be a little exaggerated although I consider this a good configuration at the moment. You can put this globally into your httpd.conf or separately in every vhost configuration file you need it. ?View Code BASH1 2 3 4 5 6 7 8 9 10 &#160; ExpiresActive On ExpiresByType text/css &#34;access plus 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Well, &#8220;perfect&#8221; might be a little exaggerated although I consider this a good configuration at the moment.<br />
You can put this globally into your httpd.conf or separately in every vhost configuration file you need it.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p522code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5223"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p522code3"><pre class="bash" style="font-family:monospace;">&nbsp;
        ExpiresActive On
        ExpiresByType text<span style="color: #000000; font-weight: bold;">/</span>css <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType text<span style="color: #000000; font-weight: bold;">/</span>javascript <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType application<span style="color: #000000; font-weight: bold;">/</span>x-javascript <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType application<span style="color: #000000; font-weight: bold;">/</span>javascript <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>png <span style="color: #ff0000;">&quot;access plus 1 year&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>jpeg <span style="color: #ff0000;">&quot;access plus 1 year&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>gif <span style="color: #ff0000;">&quot;access plus 1 year&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>x-icon <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span></pre></td></tr></table></div>

<p>Make sure you versionize your JavaScript/CSS to be able to force an update, in case you change them.<br />
<strong>Example:</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p522code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5224"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p522code4"><pre class="html" style="font-family:monospace;">&nbsp;
    My Example
&nbsp;
Some Content
&nbsp;
    &lt;script src=&quot;javascript.js?version=1&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;</pre></td></tr></table></div>

<p>You should also give newly updated pictures new names!</p>
<p>Over and out,<br />
JaZz</p>
<fb:like href='http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>40 SPB Mobile Shell Wallpapers Vol. 2</title>
		<link>http://www.andreas-glaser.com/2009/12/12/40-spb-mobile-shell-wallpapers-vol-2/</link>
		<comments>http://www.andreas-glaser.com/2009/12/12/40-spb-mobile-shell-wallpapers-vol-2/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 17:30:18 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[SPB]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=519</guid>
		<description><![CDATA[This is a collection of 40 awesome SPB Mobile Shell Wallpapers (Backgrounds). All credit goes to the artists of the wallpapers! Click here to get to Vol. 1 Enjoy, JaZz]]></description>
			<content:encoded><![CDATA[<p>This is a collection of 40 awesome SPB Mobile Shell Wallpapers (Backgrounds).</p>
Note: There is a file embedded within this post, please visit this post to download the file.<br />
<div class="ngg-galleryoverview" id="ngg-gallery-11-519">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.andreas-glaser.com/2009/12/12/40-spb-mobile-shell-wallpapers-vol-2/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-103" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/1.jpg" title=" " class="shutterset_set_11" >
								<img title="1" alt="1" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_1.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-104" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/10.jpg" title=" " class="shutterset_set_11" >
								<img title="10" alt="10" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_10.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-105" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/11.jpg" title=" " class="shutterset_set_11" >
								<img title="11" alt="11" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_11.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-106" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/12.jpg" title=" " class="shutterset_set_11" >
								<img title="12" alt="12" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_12.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-107" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/13.jpg" title=" " class="shutterset_set_11" >
								<img title="13" alt="13" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_13.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-108" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/14.jpg" title=" " class="shutterset_set_11" >
								<img title="14" alt="14" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_14.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-109" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/15.jpg" title=" " class="shutterset_set_11" >
								<img title="15" alt="15" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_15.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-110" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/16.jpg" title=" " class="shutterset_set_11" >
								<img title="16" alt="16" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_16.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-111" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/17.jpg" title=" " class="shutterset_set_11" >
								<img title="17" alt="17" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_17.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-112" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/18.jpg" title=" " class="shutterset_set_11" >
								<img title="18" alt="18" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_18.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-113" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/19.jpg" title=" " class="shutterset_set_11" >
								<img title="19" alt="19" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_19.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-114" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/2.jpg" title=" " class="shutterset_set_11" >
								<img title="2" alt="2" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_2.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-115" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/20.jpg" title=" " class="shutterset_set_11" >
								<img title="20" alt="20" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_20.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-116" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/21.jpg" title=" " class="shutterset_set_11" >
								<img title="21" alt="21" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_21.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-117" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/22.jpg" title=" " class="shutterset_set_11" >
								<img title="22" alt="22" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_22.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-118" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/23.jpg" title=" " class="shutterset_set_11" >
								<img title="23" alt="23" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_23.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-119" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/24.jpg" title=" " class="shutterset_set_11" >
								<img title="24" alt="24" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_24.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-120" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/25.jpg" title=" " class="shutterset_set_11" >
								<img title="25" alt="25" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_25.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-121" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/26.jpg" title=" " class="shutterset_set_11" >
								<img title="26" alt="26" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_26.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-122" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/27.jpg" title=" " class="shutterset_set_11" >
								<img title="27" alt="27" src="http://www.andreas-glaser.com/wp-content/gallery/spb-mobile-shell-wallpapers-vol-2/thumbs/thumbs_27.jpg" width="93" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-navigation'><span class="current">1</span><a class="page-numbers" href="http://www.andreas-glaser.com/2009/12/12/40-spb-mobile-shell-wallpapers-vol-2/?nggpage=2">2</a><a class="next" id="ngg-next-2" href="http://www.andreas-glaser.com/2009/12/12/40-spb-mobile-shell-wallpapers-vol-2/?nggpage=2">&#9658;</a></div> 	
</div>

<br />
Note: There is a file embedded within this post, please visit this post to download the file.
<p><em>All credit goes to the artists of the wallpapers!</em></p>
<p><a href="http://www.andreas-glaser.com/2009/10/13/40-spb-mobile-shell-wallpapers/" target="_self">Click here to get to Vol. 1</a></p>
<p>Enjoy,<br />
JaZz</p>
<fb:like href='http://www.andreas-glaser.com/2009/12/12/40-spb-mobile-shell-wallpapers-vol-2/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2009/12/12/40-spb-mobile-shell-wallpapers-vol-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; SRCDS/HTTP Synchronizer (Linux)</title>
		<link>http://www.andreas-glaser.com/2009/12/03/php-srcdshttp-synchronizer-linux/</link>
		<comments>http://www.andreas-glaser.com/2009/12/03/php-srcdshttp-synchronizer-linux/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 17:03:04 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=482</guid>
		<description><![CDATA[I just came across a script I have totally forgotten about, which I wrote quite a while ago. I haven&#8217;t managed to write a real documentation so far&#8230; anyway&#8230; feel free to try it. All you need to do, is to install php in case you haven&#8217;t done it already! ?View Code PHP1 2 3 [...]]]></description>
			<content:encoded><![CDATA[<p>I just came across a script I have totally forgotten about, which I wrote quite a while ago.<br />
I haven&#8217;t managed to write a real documentation so far&#8230; anyway&#8230; feel free to try it.</p>
<p>All you need to do, is to install php in case you haven&#8217;t done it already!</p>
Note: There is a file embedded within this post, please visit this post to download the file.

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p482code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4826"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
</pre></td><td class="code" id="p482code6"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /bin/php
</span>
<span style="color: #000000; font-weight: bold;">&lt;?PHP</span>
<span style="color: #666666; font-style: italic;">/*
SRCDS FastDownload Syncronizer 
Version: 1.0
&nbsp;
Author:
Andreas Glaser (JaZz)
www.andreas-glaser.com
&nbsp;
*/</span>
<span style="color: #666666; font-style: italic;">############################*
</span><span style="color: #666666; font-style: italic;"># Variables (DO NOT TOUCH):
</span><span style="color: #666666; font-style: italic;">#
</span><span style="color: #000088;">$Config</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Files</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><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;">############################*
</span><span style="color: #666666; font-style: italic;"># Configuration (Required):
</span><span style="color: #666666; font-style: italic;">#
</span><span style="color: #666666; font-style: italic;">// :: CONFIG</span>
<span style="color: #666666; font-style: italic;">// :: CONFIG ~ BZIP2</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Enable or diable bzip2 compression</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/bin/bzip2'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Path to Bzip2 (default: /bin/bzip2)</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Delete'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Determines whether obsolete files in the webdirectory beeing deleted</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Override'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Determines if every time you synchonize your directories the file gonna be overriden</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chmod'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Enable or disable to set new RWX rights</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chmod'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Access'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'755'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Sets the new</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chmod'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/bin/chmod'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Path of Chmod</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Determines if you like to set a new user for the synchonizes web files</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'User'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'web001'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Owner of the synchronized files</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Group'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'web'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Group of the synchronized files</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/bin/chown'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Path to Chown</span>
<span style="color: #666666; font-style: italic;">// :: CONFIG ~ PATHS</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/path/to/your/srcds/'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Path to your CounterStrike Server</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/path/to/your/htcods/fastdl/'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Path to your web directory</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'syn_dirs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'maps'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Directoriyto synchronize</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'syn_dirs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'materials'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Directory to synchronize</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'syn_dirs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'models'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Directory to synchronize</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'syn_dirs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'resource'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Directory to synchronize</span>
<span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'syn_dirs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'sound'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Directory to synchronize</span>
<span style="color: #666666; font-style: italic;">// :: Config Check (DO NOT TOUCH)</span>
<span style="color: #339933;">@</span><a href="http://www.php.net/exec"><span style="color: #990000;">exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'whoami'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Output</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;">$Output</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: #0000ff;">'root'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: You must be logged in as root'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_dir"><span style="color: #990000;">is_dir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: The selected cstrike directory does not exist'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_dir"><span style="color: #990000;">is_dir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: The selected htdocs directory does not exist'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</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;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: Bzip2 was not found on your system'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chmod'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chmod'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: Chmod was not found on your system'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: Chown was not found on your system'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'syn_dirs'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$Key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$Val</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$Val</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' does not exist'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$Key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$Val</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$Val</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' does not exist'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// :: Do it (DO NOT TOUCH)</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;&lt;&lt; START SYNCHRONIZATION &gt;&gt;&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'syn_dirs'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$Key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  indexCstrike<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Delete'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  indexHtdocs<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// :: Delete needless files in htdocs</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTDOCS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'FILES'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$Key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$SubDir</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Key</span><span style="color: #339933;">,</span> <a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</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;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</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><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$SubDir</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'.bz2'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$SubDir</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$SubDir</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'CSTRIKE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'FILES'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// :: Delete needless directories in htdocs</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTDOCS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DIRS'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$Key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$SubDir</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Key</span><span style="color: #339933;">,</span> <a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</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;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span> <span style="color: #339933;">!==</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</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><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'CSTRIKE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DIRS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <a href="http://www.php.net/rmdir"><span style="color: #990000;">rmdir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// :: Sync Directories</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'CSTRIKE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DIRS'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$Key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$SubDir</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Val</span><span style="color: #339933;">,</span> <a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</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><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <a href="http://www.php.net/mkdir"><span style="color: #990000;">mkdir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #339933;">,</span> <span style="color: #208080;">0777</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// :: Sync Files</span>
<span style="color: #000088;">$tmp_Counter</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'CSTRIKE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'FILES'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$Key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$Val</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: #000088;">$tmp_Counter</span> <span style="color: #339933;">!==</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp_Counter</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</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: #b1b100;">echo</span> <span style="color: #0000ff;">'.'</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000088;">$tmp_Counter</span><span style="color: #339933;">++;</span>
  <span style="color: #000088;">$SubDir</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Key</span><span style="color: #339933;">,</span> <a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cstrike'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</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><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.bz2'</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><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <a href="http://www.php.net/copy"><span style="color: #990000;">copy</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Key</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</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;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$LastLine</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/system"><span style="color: #990000;">system</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' -9 '</span><span style="color: #339933;">.</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'\ '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$RetVal</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Override'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$Val</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Size'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!==</span> <a href="http://www.php.net/filesize"><span style="color: #990000;">filesize</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <a href="http://www.php.net/copy"><span style="color: #990000;">copy</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Key</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</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;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$LastLine</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/system"><span style="color: #990000;">system</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' -9 '</span><span style="color: #339933;">.</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'\ '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$RetVal</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$LastLine</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/system"><span style="color: #990000;">system</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' -9 '</span><span style="color: #339933;">.</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'\ '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$RetVal</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Override'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.bz2'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <a href="http://www.php.net/copy"><span style="color: #990000;">copy</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Key</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$LastLine</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/system"><span style="color: #990000;">system</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Bzip2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Path'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' -9 '</span><span style="color: #339933;">.</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'\ '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$RetVal</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<a href="http://www.php.net/unset"><span style="color: #990000;">unset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp_Counter</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;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chmod'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/system"><span style="color: #990000;">system</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'chmod -R '</span><span style="color: #339933;">.</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chmod'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Access'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">.</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$RetVal</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Enabled'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <a href="http://www.php.net/system"><span style="color: #990000;">system</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'chown -R '</span><span style="color: #339933;">.</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'User'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">':'</span><span style="color: #339933;">.</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Chown'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Group'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">.</span><span style="color: #000088;">$Config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Paths'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'htdocs'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$RetVal</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;&lt;&lt; DONE &gt;&gt;&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'| INFORMATION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'| Script:         SRCDS FastDownload Syncronizer                  |'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'| Version:        1.0                                             |'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'| Author:         Andreas Glaser                                  |'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'| Website:        www.andreas-glaser.com                          |'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'| Creation Date:  2009-01-14                                      |'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'| Last Update:    2009-01-14                                      |'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> indexCstrike<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #000088;">$SubDir</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'subdir'</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;">$Files</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$Dir</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'CSTRIKE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DIRS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$Dir</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Dir</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$handler</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/opendir"><span style="color: #990000;">opendir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/readdir"><span style="color: #990000;">readdir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handler</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: #000088;">$file</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'.'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$file</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'..'</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><a href="http://www.php.net/is_dir"><span style="color: #990000;">is_dir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'CSTRIKE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'FILES'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Size'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/filesize"><span style="color: #990000;">filesize</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
          indexCstrike<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <a href="http://www.php.net/closedir"><span style="color: #990000;">closedir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handler</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> indexHtdocs<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #000088;">$SubDir</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'subdir'</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;">$Files</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$SubDir</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">'subdir'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$Dir</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$SubDir</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTDOCS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DIRS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$Dir</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Dir</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$handler</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/opendir"><span style="color: #990000;">opendir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/readdir"><span style="color: #990000;">readdir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handler</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: #000088;">$file</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'.'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$file</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'..'</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><a href="http://www.php.net/is_dir"><span style="color: #990000;">is_dir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$Files</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTDOCS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'FILES'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Size'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/filesize"><span style="color: #990000;">filesize</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
          indexHtdocs<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Dir</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <a href="http://www.php.net/closedir"><span style="color: #990000;">closedir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handler</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

Note: There is a file embedded within this post, please visit this post to download the file.
<p>JaZz</p>
<fb:like href='http://www.andreas-glaser.com/2009/12/03/php-srcdshttp-synchronizer-linux/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2009/12/03/php-srcdshttp-synchronizer-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN &#8211; Add all new files at once</title>
		<link>http://www.andreas-glaser.com/2009/11/11/svn-add-all-new-files-at-once/</link>
		<comments>http://www.andreas-glaser.com/2009/11/11/svn-add-all-new-files-at-once/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 12:06:16 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=477</guid>
		<description><![CDATA[Unfortunately Subversion provides no inbuilt function to add all new files at once. This however is a solution: ?View Code BASH1 svn status &#124; grep &#34;^?&#34; &#124; awk '{print $2}' &#124; xargs svn add Enjoy, JaZz]]></description>
			<content:encoded><![CDATA[<p>Unfortunately Subversion provides no inbuilt function to add all new files at once.<br />
This however is a solution:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p477code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4778"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p477code8"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> status <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;^?&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> add</pre></td></tr></table></div>

<p>Enjoy,<br />
JaZz</p>
<fb:like href='http://www.andreas-glaser.com/2009/11/11/svn-add-all-new-files-at-once/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2009/11/11/svn-add-all-new-files-at-once/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux &#8211; Changing file associations</title>
		<link>http://www.andreas-glaser.com/2009/10/22/ubuntu-linux-changing-file-associations/</link>
		<comments>http://www.andreas-glaser.com/2009/10/22/ubuntu-linux-changing-file-associations/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 11:02:12 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=465</guid>
		<description><![CDATA[Every once in a while I&#8217;m asked how to change file associations in Ubuntu. It&#8217;s very simple and explained in two steps. Step 1 Right mouse click on one of the files you want to associate with a specific program. Select &#8220;Properties&#8221; from the context menu. Step 2 Jump to the &#8220;Open With&#8221; tab, select [...]]]></description>
			<content:encoded><![CDATA[<p>Every once in a while I&#8217;m asked how to change file associations in Ubuntu. It&#8217;s very simple and explained in two steps.</p>
<p><strong>Step 1</strong><br />
Right mouse click on one of the files you want to associate with a specific program. Select &#8220;Properties&#8221; from the context menu.<br />
<img class="alignnone size-medium wp-image-466" title="step1" src="http://www.andreas-glaser.com/wp-content/uploads/2009/10/step1-250x300.png" alt="step1" width="250" height="300" /></p>
<p><strong>Step 2</strong><br />
Jump to the &#8220;Open With&#8221; tab, select your preferred software and close the window.<br />
<img class="alignnone size-medium wp-image-467" title="step2" src="http://www.andreas-glaser.com/wp-content/uploads/2009/10/step2-300x205.png" alt="step2" width="300" height="205" /></p>
<p>From now on, when you double click files from the definied type, it automatically starts the previously selected software.</p>
<p><strong>JaZz</strong></p>
<fb:like href='http://www.andreas-glaser.com/2009/10/22/ubuntu-linux-changing-file-associations/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2009/10/22/ubuntu-linux-changing-file-associations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5Loops.net &#8211; Upgrades</title>
		<link>http://www.andreas-glaser.com/2009/05/10/5loopsnet-upgrades/</link>
		<comments>http://www.andreas-glaser.com/2009/05/10/5loopsnet-upgrades/#comments</comments>
		<pubDate>Sun, 10 May 2009 18:40:59 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[5Loops.net]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[5loops]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=380</guid>
		<description><![CDATA[I just upgraded my lightweight image loader a little. www.5loops.net Change log Reduced upload procedure to one step Updated archive page Updated view page Enjoy! JaZz]]></description>
			<content:encoded><![CDATA[<p>I just upgraded my lightweight image loader a little.</p>
<p><a title="http://www.5loops.net" href="http://www.5loops.net">www.5loops.net</a></p>
<p><strong>Change log</strong></p>
<ul>
<li>Reduced upload procedure to one step</li>
<li>Updated archive page</li>
<li>Updated view page</li>
</ul>
<p>Enjoy!<br />
JaZz</p>
<fb:like href='http://www.andreas-glaser.com/2009/05/10/5loopsnet-upgrades/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2009/05/10/5loopsnet-upgrades/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

