<?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; Gaming</title>
	<atom:link href="http://www.andreas-glaser.com/category/computer/gaming/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>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('p482code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4822"><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="p482code2"><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>What is UIF?</title>
		<link>http://www.andreas-glaser.com/2009/03/24/what-is-uif/</link>
		<comments>http://www.andreas-glaser.com/2009/03/24/what-is-uif/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 10:16:28 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Reports]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[UIF]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=349</guid>
		<description><![CDATA[UIF (Universal Image Format) is a virtual image format used by MagicISO!]]></description>
			<content:encoded><![CDATA[<p>UIF (Universal Image Format) is a virtual image format used by <a title="http://www.magiciso.com/" href="http://www.magiciso.com/" target="_blank">MagicISO</a>!</p>
<fb:like href='http://www.andreas-glaser.com/2009/03/24/what-is-uif/' 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/03/24/what-is-uif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steam Update &#8211; Team Fortress 2 03/05/2009</title>
		<link>http://www.andreas-glaser.com/2009/03/06/steam-update-03052009/</link>
		<comments>http://www.andreas-glaser.com/2009/03/06/steam-update-03052009/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 10:29:40 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Steam]]></category>
		<category><![CDATA[Team Fortess 2]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=319</guid>
		<description><![CDATA[A required update for Team Fortress 2 is now available. Please run hldsupdatetool to receive it. The specific changes include: Gameplay changes: - Added a duck timer that prevents duck spamming while running around on-ground. - In-air, players are only allowed to duck once before they touch ground again. - Fixed several bounding box issues [...]]]></description>
			<content:encoded><![CDATA[<p>A required update for Team Fortress 2 is now available. Please run hldsupdatetool to receive it. The specific changes include:</p>
<p>Gameplay changes:<br />
- Added a duck timer that prevents duck spamming while running around on-ground.<br />
- In-air, players are only allowed to duck once before they touch ground again.<br />
- Fixed several bounding box issues with jumping, falling, and rocket jump air-walking. Bounding box should be much more accurate there now.<br />
- Increased backstab check so that Spies can side-stab again.<br />
- When disguising, Spies now always start showing the primary weapon in their disguise, and can then switch it with the last-disguise key.</p>
<p>TF2 Fixes:<br />
- Fixed flamethrower loophole that resulted in the flame effect being stuck on while the flamethrower wasn&#8217;t really firing.<br />
- Fixed exploit that allowed players to circumvent the force-fire timeout on the pipebomb launcher.<br />
- Fixed a bug that caused Natasha&#8217;s slow on hit effect to be inverted from 75% to 25%.<br />
- Restored sawmill_logs.mdl file, fixing some user maps that used it.<br />
- Fixed some localization issues with Scout achievement strings.<br />
- Removed the &#8220;Final&#8221; phrasing in the map loading screen.</p>
<p>Engine fixes:<br />
- Fixed a server crash on startup under Linux.<br />
- Fixed a buffer overflow issue related to network string tables.<br />
- Gamestats uploading is now done asynchronously. This fixes the client timeout issues on map changes.</p>
<p>CP_Junction:<br />
- Fixed an exploit where engineers could build a teleporter exit in an invalid area.<br />
- Fixed a few bad overlay assignments and other minor issues.</p>
<fb:like href='http://www.andreas-glaser.com/2009/03/06/steam-update-03052009/' 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/03/06/steam-update-03052009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SRCDS Linux Startscript 1.2</title>
		<link>http://www.andreas-glaser.com/2009/02/17/srcds-linux-startscript-12/</link>
		<comments>http://www.andreas-glaser.com/2009/02/17/srcds-linux-startscript-12/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 19:34:24 +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[Linux Shell Script]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Screen]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[SRCDS]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=309</guid>
		<description><![CDATA[1. SRCDS Linux Startscript This little shell script makes it easier for you to start a SRCDS under linux. It provides you with a set of parameters to start every kind of a SRCDS. 2. How to use: After you successfully installed a Source Dedicated Server (SRCDS) under Linux you just have to download the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><strong>1. SRCDS Linux Startscript<br />
</strong></p>
<p style="text-align: left;">This little shell script makes it easier for you to start a SRCDS under linux. It provides you with a set of parameters to start every kind of a SRCDS.</p>
<p><strong>2. How to use:</strong></p>
<p>After you successfully installed a Source Dedicated Server (SRCDS) under Linux you just have to download the startscript at the bottom of this post.<br />
Save the &#8220;startscript.sh&#8221; into the root directory of your SRCDS  and change the permission to &#8220;u + x&#8221;.</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('p309code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3096"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p309code6"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> u + x startscript.sh</pre></td></tr></table></div>

<p>Now open the start script with your preferred editor (vim, joe, mono etc.) and customize the configuration variables to your system.</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('p309code7'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3097"><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
</pre></td><td class="code" id="p309code7"><pre class="bash" style="font-family:monospace;"><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>
&nbsp;
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~ 1. SYSTEM PARAMETERS ~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Set the user who owns the CounterStrike Server (root is not recommended)</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Existing user on your system</span>
<span style="color: #007800;">SYS_USER</span>=<span style="color: #ff0000;">&quot;css-001&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Path to the root directory of your server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: System path</span>
<span style="color: #007800;">SYS_DIR</span>=<span style="color: #ff0000;">&quot;/path/to/your/server/&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Server daemon</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: srcds_run - srcds_amd - srcds_i486 - srcds_i686</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: srcds_run</span>
<span style="color: #007800;">SYS_DAEMON</span>=<span style="color: #ff0000;">&quot;srcds_run&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Descripton: Set the priority (niceness) of the server. Highest priority: -20 Lowest priority: 19</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 0</span>
<span style="color: #007800;">SYS_NICE</span>=<span style="color: #ff0000;">&quot;0&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Name: Name of your server</span>
<span style="color: #007800;">SYS_NAME</span>=<span style="color: #ff0000;">&quot;CSS-001&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Description of the server</span>
<span style="color: #007800;">SYS_DESC</span>=<span style="color: #ff0000;">&quot;My first SRCDS Server&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~ 2. SERVER START PARAMETER ~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Define which kind of srcds game should be started</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Counter-Strike Source - ageofchicalry - diprip - dods - dystopia - esmod - garrysmod - hl2mp - insurgency</span>
<span style="color: #666666; font-style: italic;"># ~~         l4d_full - left4dead - synergy - tf - zps - cstrike - cstrike_beta - czero - dmc - dod - gearbox - ricochet</span>
<span style="color: #666666; font-style: italic;"># ~~         tfc - valve - darkmessiah - diprip - marenosturm - redorchestra - ship - sin - tshb</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: Counter-Strike Source</span>
<span style="color: #007800;">SYS_GAME</span>=<span style="color: #ff0000;">&quot;Counter-Strike Source&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: IPv4 Address of your server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: XXX.XXX.XXX.XXX</span>
<span style="color: #007800;">START_PARAMS_IP</span>=<span style="color: #ff0000;">&quot;127.0.0.1&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Port of your server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Between 0 and 65535</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 27015</span>
<span style="color: #007800;">START_PARAMS_PORT</span>=<span style="color: #ff0000;">&quot;27015&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the default map</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Requires an installed map on your server</span>
<span style="color: #007800;">START_PARAMS_MAP</span>=<span style="color: #ff0000;">&quot;de_dust2&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the amount of player slots</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Between 1 and 32</span>
<span style="color: #007800;">START_PARAMS_MAXPLAYERS</span>=<span style="color: #ff0000;">&quot;32&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines whether VAC (Valve Anti Cheat) is activated</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: secure / insecure</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: secure</span>
<span style="color: #007800;">START_PARAMS_SECURE</span>=<span style="color: #ff0000;">&quot;secure&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Pingboost</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: 0 / 1 / 2 / 3</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 0</span>
<span style="color: #007800;">START_PARAMS_PINGBOOST</span>=<span style="color: #ff0000;">&quot;0&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the tickrate</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: 33 / 66 / 100</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 33</span>
<span style="color: #007800;">START_PARAMS_TICKRATE</span>=<span style="color: #ff0000;">&quot;33&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># CONFIGURATION END</span>
<span style="color: #666666; font-style: italic;">############################*</span></pre></td></tr></table></div>

<p>After this step just execute the startscript.</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('p309code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3098"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p309code8"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span> startscript.sh start</pre></td></tr></table></div>

<p>Thats it!</p>
<p><strong>Required Linux packages</strong></p>
<ul>
<li><a title="http://www.google.com/linux?hl=en&amp;q=screen&amp;btnG=Search" href="http://www.google.com/linux?hl=en&amp;q=screen&amp;btnG=Search" target="_blank">screen</a></li>
</ul>
<p><strong>Download</strong></p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>So long,<br />
Andreas Glaser aka JaZz<br />
</strong></p>
<fb:like href='http://www.andreas-glaser.com/2009/02/17/srcds-linux-startscript-12/' 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/02/17/srcds-linux-startscript-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CS:S Server Config Pack 4.1</title>
		<link>http://www.andreas-glaser.com/2009/01/29/css-server-config-pack-41/</link>
		<comments>http://www.andreas-glaser.com/2009/01/29/css-server-config-pack-41/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 09:09:41 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[CSS Server Config Pack]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[CounterStrike Source]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=292</guid>
		<description><![CDATA[1. What is the CSS Config Package? The Counter Strike Source Server Config Pack is an all round package including all required plugins and configurations files to host a professional server within seconds. It comes with a large spectrum of popular plugins like Mani Admin Plugin, SourceMOD, Matties Eventscript and the almost &#8220;must have&#8221; quake [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-191" title="CounterStrike Source Server Config Pack" src="http://www.andreas-glaser.com/wp-content/uploads/2008/10/css_source.jpg" alt="" width="463" height="69" /></p>
<p><strong>1. What is the CSS Config Package</strong>?</p>
<p>The <em>Counter Strike Source Server Config Pack</em> is an all round package including all required plugins and configurations files to host a professional server within seconds. It comes with a large spectrum of popular plugins like Mani Admin Plugin, SourceMOD, Matties Eventscript and the almost &#8220;must have&#8221; quake sounds. This complete package offers you the administrative power you need and with the fancy administrator models everybody will recognize you as administrator on your server. By the way &#8211; it is not just suitable for Internet server but also for LAN parties and local servers. Don&#8217;t hesitate &#8211; just try it!</p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>2. What is included?<br />
</strong></p>
<p><strong>Server.cfg v2.1 </strong></p>
<p><strong>Mani Admin Plugin  					V1.2 Beta S<br />
</strong></p>
<blockquote><p>Quake Sounds<br />
Admin Models (SAS / Leet)</p></blockquote>
<p><strong>Source MetaMod 1.7.0</strong></p>
<blockquote><p>Detox Anticheat 1.1 Build 24</p></blockquote>
<p><strong>SourceMod 1.1.0 </strong></p>
<p><strong>Matties Eventscri<strong>pt 2.0.0.248c</strong></strong><span class="postbody"> </span></p>
<blockquote><p>Default Scripts (All)<br />
Crazylisten v3.10<br />
Top Players v2.0<br />
yTB Team Balancer 1.1r1</p></blockquote>
<p><strong>ES_Tools 0.420</strong></p>
<p><strong>Startscripts</strong></p>
<blockquote><p>Linux v1.1<br />
Windows v1.0</p></blockquote>
<p><strong><span style="font-family: verdana;">3. Changelog</span></strong><strong><span style="font-family: verdana;"><br />
</span></strong></p>
<blockquote><p>Updated SourceMetaMod  1.4.4 &gt;&gt; 1.7.0<br />
Updated SourceMod  1.0.4 &gt;&gt; 1.1.0<br />
Updated Linux startscript 1.0 &gt;&gt; 1.1</p></blockquote>
<p><strong>4. Screenshots</strong></p>
<div class="ngg-galleryoverview" id="ngg-gallery-5-292">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.andreas-glaser.com/2009/01/29/css-server-config-pack-41/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-33" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/server_settings.jpg" title=" " class="shutterset_set_5" >
								<img title="server_settings.jpg" alt="server_settings.jpg" src="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/thumbs/thumbs_server_settings.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-34" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/server_cfg.jpg" title=" " class="shutterset_set_5" >
								<img title="server_cfg.jpg" alt="server_cfg.jpg" src="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/thumbs/thumbs_server_cfg.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-35" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/cfg.jpg" title=" " class="shutterset_set_5" >
								<img title="cfg.jpg" alt="cfg.jpg" src="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/thumbs/thumbs_cfg.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-36" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/root.jpg" title=" " class="shutterset_set_5" >
								<img title="root.jpg" alt="root.jpg" src="http://www.andreas-glaser.com/wp-content/gallery/css-server-config-pack/thumbs/thumbs_root.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

<p><strong><strong>5. Download</strong></strong></p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>Please click on one of those google links support this project!</strong></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8724905868235966";
/* Config-Pack.Zorrox.Com */
google_ad_slot = "8939718927";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<p><strong>6. Important links<br />
</strong></p>
<ul>
<li><a title="http://www.srcds-forum.com/css-server-config-pack-by-zorrox-en/mani-admin-plugin-patch-for-windows/" href="http://www.srcds-forum.com/css-server-config-pack-by-zorrox-en/mani-admin-plugin-patch-for-windows/" target="_blank">http://www.srcds-forum.com/css-server-config-pack-by-zorrox-en/mani-admin-plugin-patch-for-windows/</a></li>
<li><a title="http://www.srcds-forum.com" href="http://www.srcds-forum.com" target="_blank">http://www.srcds-forum.com</a><a title="http://www.forum.zorrox.com" href="http://www.forum.zorrox.com" target="_blank"> </a></li>
</ul>
<p><em><strong>Have Fun,<br />
Andreas Glaser (aka JaZz)</strong></em></p>
<fb:like href='http://www.andreas-glaser.com/2009/01/29/css-server-config-pack-41/' 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/01/29/css-server-config-pack-41/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Linux commands to install a CounterStrike Linux Server</title>
		<link>http://www.andreas-glaser.com/2008/11/11/linux-commands-to-install-a-counterstrike-linux-server/</link>
		<comments>http://www.andreas-glaser.com/2008/11/11/linux-commands-to-install-a-counterstrike-linux-server/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 09:35:10 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[CounterStrike Source]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=268</guid>
		<description><![CDATA[Updated: 2009-12-07 For the impatient of you: ?View Code BASH1 2 3 4 5 wget http://storefront.steampowered.com/download/hldsupdatetool.bin chmod u+x hldsupdatetool.bin ./hldsupdatetool.bin ./steam -command update -game &#34;Counter-Strike Source&#34; -dir . ./steam -command update -game &#34;Counter-Strike Source&#34; -dir . In more details: Step 1 We need the hldsupdatetool (Half Life Dedicated Server Update Tool). Command: ?View Code BASH1 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Updated: 2009-12-07</strong></p>
<p><strong>For the impatient of you:</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('p268code22'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26822"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p268code22"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>storefront.steampowered.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>hldsupdatetool.bin
<span style="color: #c20cb9; font-weight: bold;">chmod</span> u+x hldsupdatetool.bin
.<span style="color: #000000; font-weight: bold;">/</span>hldsupdatetool.bin
.<span style="color: #000000; font-weight: bold;">/</span>steam <span style="color: #660033;">-command</span> update <span style="color: #660033;">-game</span> <span style="color: #ff0000;">&quot;Counter-Strike Source&quot;</span> <span style="color: #660033;">-dir</span> .
.<span style="color: #000000; font-weight: bold;">/</span>steam <span style="color: #660033;">-command</span> update <span style="color: #660033;">-game</span> <span style="color: #ff0000;">&quot;Counter-Strike Source&quot;</span> <span style="color: #660033;">-dir</span> .</pre></td></tr></table></div>

<p><strong>In more details:</strong></p>
<p><strong>Step 1</strong><br />
We need the hldsupdatetool (Half Life Dedicated Server Update Tool).</p>
<p><em>Command:</em></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('p268code23'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26823"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code23"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>storefront.steampowered.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>hldsupdatetool.bin</pre></td></tr></table></div>

<p><em>Output:</em></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('p268code24'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26824"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p268code24"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--2008-11-11</span> 09:<span style="color: #000000;">14</span>:<span style="color: #000000;">51</span>--  http:<span style="color: #000000; font-weight: bold;">//</span>storefront.steampowered.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>hldsupdatetool.bin
Resolving storefront.steampowered.com... 87.248.218.141, 87.248.218.161
Connecting to storefront.steampowered.com<span style="color: #000000; font-weight: bold;">|</span>87.248.218.141<span style="color: #000000; font-weight: bold;">|</span>:<span style="color: #000000;">80</span>... connected.
HTTP request sent, awaiting response... <span style="color: #000000;">200</span> OK
Length: <span style="color: #000000;">3513408</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>3.4M<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>application<span style="color: #000000; font-weight: bold;">/</span>octet-stream<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Saving to: <span style="color: #000000; font-weight: bold;">`</span>hldsupdatetool.bin<span style="color: #ff0000;">'
&nbsp;
100%[====================================================================================================================&amp;gt;] 3,513,408   9.69M/s   in 0.3s
&nbsp;
2008-11-11 09:14:52 (9.69 MB/s) - `hldsupdatetool.bin'</span> saved <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">3513408</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3513408</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div>

<p><strong>Step 2</strong></p>
<p>Now we have to grand the owner of the file read/write/execute (rwx) permission.</p>
<p><em>Command:</em></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('p268code25'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26825"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code25"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> u+x hldsupdatetool.bin</pre></td></tr></table></div>

<p><em>Output:</em></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('p268code26'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26826"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code26"><pre class="bash" style="font-family:monospace;">None</pre></td></tr></table></div>

<p><strong>Step 3</strong></p>
<p>The time has come to run the hldsupdatetool.bin</p>
<p><em>Command:</em></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('p268code27'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26827"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code27"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>hldsupdatetool.bin</pre></td></tr></table></div>

<p><em>Output:</em></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('p268code28'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26828"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code28"><pre class="bash" style="font-family:monospace;">...I hereby agree to be bound by the Agreement.  I also acknowledge and agree that this Agreement <span style="color: #7a0874; font-weight: bold;">&#40;</span>including the Subscription Terms, Steam Online Conduct rules and other Rules of Use, and Privacy Policy<span style="color: #7a0874; font-weight: bold;">&#41;</span> is the <span style="color: #7a0874; font-weight: bold;">complete</span> and exclusive statement of the agreement between Valve and me, and that the Agreement supersedes any prior or contemporaneous agreement, or other communications, whether oral or written, between Valve and myself.</pre></td></tr></table></div>

<p>Enter &#8216;yes&#8217; to accept this agreement, &#8216;no&#8217; to decline:</p>
<p><strong>Step 4</strong></p>
<p>You have to accept the agreement with writing and confirming the word &#8220;yes&#8221;</p>
<p>Command:</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('p268code29'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26829"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code29"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">return</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<p><em>Output:</em></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('p268code30'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26830"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code30"><pre class="bash" style="font-family:monospace;">extracting steam.tar.Z...done</pre></td></tr></table></div>

<p><strong>Step 5</strong></p>
<p>Finally we can start to install the actual CounterStrike Source Linux Server.</p>
<p><em>Command:</em></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('p268code31'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26831"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code31"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>steam <span style="color: #660033;">-command</span> update <span style="color: #660033;">-game</span> <span style="color: #ff0000;">&quot;Counter-Strike Source&quot;</span> <span style="color: #660033;">-dir</span> .</pre></td></tr></table></div>

<p><em>Output:</em></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('p268code32'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26832"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p268code32"><pre class="bash" style="font-family:monospace;">Checking bootstrapper version ...
Getting version <span style="color: #000000;">34</span> of Steam HLDS Update Tool
Downloading. . . . . . . . . . .
Steam Linux Client updated, please retry the <span style="color: #7a0874; font-weight: bold;">command</span></pre></td></tr></table></div>

<p><strong>Step 6</strong></p>
<p>The fifth command once again&#8230; this last command will take a while to execute&#8230; depending on your Internet bandwidth.</p>
<p><em>Command:</em></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('p268code33'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26833"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p268code33"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>steam <span style="color: #660033;">-command</span> update <span style="color: #660033;">-game</span> <span style="color: #ff0000;">&quot;Counter-Strike Source&quot;</span> <span style="color: #660033;">-dir</span> .</pre></td></tr></table></div>

<p><em>Output:</em></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('p268code34'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26834"><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
</pre></td><td class="code" id="p268code34"><pre class="bash" style="font-family:monospace;">Checking bootstrapper version ...
Getting version <span style="color: #000000;">34</span> of Steam HLDS Update Tool
Downloading. . . . . . . . . . .
Steam Linux Client updated, please retry the <span style="color: #7a0874; font-weight: bold;">command</span>
root1:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>gaming<span style="color: #000000; font-weight: bold;">/</span>css-rotate<span style="color: #666666; font-style: italic;"># ./steam -command update -game &quot;Counter-Strike Source&quot; -dir .</span>
Checking bootstrapper version ...
Updating Installation
No installation record found at .
No installation record found at .
No installation record found at .
No installation record found at .
No installation record found at .
Checking<span style="color: #000000; font-weight: bold;">/</span>Installing <span style="color: #ff0000;">'Counter-Strike Source Shared Content'</span> version <span style="color: #000000;">69</span>
&nbsp;
<span style="color: #000000;">0.57</span><span style="color: #000000; font-weight: bold;">%</span>   .\cstrike\bin\server.dll
<span style="color: #000000;">1.96</span><span style="color: #000000; font-weight: bold;">%</span>   .\cstrike\bin\server_i486.so
<span style="color: #000000;">1.96</span><span style="color: #000000; font-weight: bold;">%</span>   .\cstrike\cfg\buypresetsdefault_ct.vdf
<span style="color: #000000;">1.96</span><span style="color: #000000; font-weight: bold;">%</span>   .\cstrike\cfg\buypresetsdefault_ter.vdf
<span style="color: #000000;">1.96</span><span style="color: #000000; font-weight: bold;">%</span>   .\cstrike\cfg\game.cfg
<span style="color: #000000;">1.96</span><span style="color: #000000; font-weight: bold;">%</span>   .\cstrike\cfg\skill1.cfg</pre></td></tr></table></div>

<p>That&#8217;s it&#8230; the server is now installed.</p>
<p><em><strong>Over and out,<br />
JaZz</strong></em></p>
<fb:like href='http://www.andreas-glaser.com/2008/11/11/linux-commands-to-install-a-counterstrike-linux-server/' 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/2008/11/11/linux-commands-to-install-a-counterstrike-linux-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Starship &#8211; Update &#8211; 1.3</title>
		<link>http://www.andreas-glaser.com/2008/09/28/starship-update-13/</link>
		<comments>http://www.andreas-glaser.com/2008/09/28/starship-update-13/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 19:34:11 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Enemy]]></category>
		<category><![CDATA[Starship]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[Upgrade]]></category>
		<category><![CDATA[Weapons]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=152</guid>
		<description><![CDATA[I just finished a new version of my new 80s arcade game &#8220;Starship&#8221;. For more information read on&#8230; Changelog Added new Weapon levels Added dynamic enemy strength Added new player model Added new features It is possible from now on to upgrade your weapons to level nine. Every new level increases the damage of the [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished a new version of my new 80s arcade game &#8220;Starship&#8221;.<br />
For more information read on&#8230;</p>
<p><strong>Changelog</strong></p>
<ul>
<li>Added new Weapon levels</li>
<li>Added dynamic enemy strength</li>
<li>Added new player model</li>
<li>Added new features</li>
</ul>
<p>It is possible from now on to upgrade your weapons to level nine. Every new level increases the damage of the bullets as well as the speed.</p>
<p>The enemies getting now stronger with every kill.</p>
<p><strong>Download</strong></p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p>Have fun!</p>
<p><em><strong>So long,<br />
Andreas Glaser (aka JaZz)</strong></em></p>
<fb:like href='http://www.andreas-glaser.com/2008/09/28/starship-update-13/' 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/2008/09/28/starship-update-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starship &#8211; Release</title>
		<link>http://www.andreas-glaser.com/2008/09/25/starship-release/</link>
		<comments>http://www.andreas-glaser.com/2008/09/25/starship-release/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 12:14:04 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Reports]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[Arcade]]></category>
		<category><![CDATA[Blitz]]></category>
		<category><![CDATA[Starship]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=128</guid>
		<description><![CDATA[Hello everybody, I would like to present you my first little game &#8211; called &#8220;Starship&#8221;. It is basically a 2D space shooter in a great 80&#8242;s look with some funny features. Screenshots Controls S &#8211; Start game Arrow keys &#8211; Steering Space - Fire ESC - Quit Please post me some comments and your improvement [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Hello everybody</strong>,</p>
<p>I would like to present you my first little game &#8211; called &#8220;Starship&#8221;.<br />
It is basically a 2D space shooter in a great 80&#8242;s look with some funny features.</p>
<p><strong>Screenshots</strong><br />
<div class="ngg-galleryoverview" id="ngg-gallery-4-128">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.andreas-glaser.com/2008/09/25/starship-release/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-32" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/starship-release/welcome.png" title=" " class="shutterset_set_4" >
								<img title="welcome.png" alt="welcome.png" src="http://www.andreas-glaser.com/wp-content/gallery/starship-release/thumbs/thumbs_welcome.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-31" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/starship-release/game.png" title=" " class="shutterset_set_4" >
								<img title="game.png" alt="game.png" src="http://www.andreas-glaser.com/wp-content/gallery/starship-release/thumbs/thumbs_game.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-30" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/starship-release/game_2.png" title=" " class="shutterset_set_4" >
								<img title="game_2.png" alt="game_2.png" src="http://www.andreas-glaser.com/wp-content/gallery/starship-release/thumbs/thumbs_game_2.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-29" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.andreas-glaser.com/wp-content/gallery/starship-release/gameover.png" title=" " class="shutterset_set_4" >
								<img title="gameover.png" alt="gameover.png" src="http://www.andreas-glaser.com/wp-content/gallery/starship-release/thumbs/thumbs_gameover.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p><strong>Controls</strong></p>
<ul>
<li><strong>S</strong> &#8211; Start game</li>
<li><strong>Arrow keys</strong> &#8211; Steering</li>
<li><strong>Space </strong>- Fire</li>
<li><strong>ESC </strong>- Quit</li>
</ul>
<p><strong><br />
</strong></p>
<p>Please post me some comments and your improvement suggestions!<br />
Have fun with this little pastime game!</p>
<p><strong>Download</strong><br />
Note: There is a file embedded within this post, please visit this post to download the file.</p>
<p><a href="http://www.andreas-glaser.com/wp-content/uploads/2008/09/starship_12debug.exe"><br />
</a></p>
<p><em><strong>So long,<br />
Andreas Glaser (aka JaZz)</strong></em></p>
<fb:like href='http://www.andreas-glaser.com/2008/09/25/starship-release/' 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/2008/09/25/starship-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Warcraft 3 &#8211; Footmen Frenzy 5.4b Pro</title>
		<link>http://www.andreas-glaser.com/2008/09/09/warcraft-3-footmen-frenzy-54b-pro/</link>
		<comments>http://www.andreas-glaser.com/2008/09/09/warcraft-3-footmen-frenzy-54b-pro/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 08:15:00 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Footmen Frenzy]]></category>
		<category><![CDATA[Map]]></category>
		<category><![CDATA[Mapping]]></category>
		<category><![CDATA[Mod]]></category>
		<category><![CDATA[Strategy]]></category>
		<category><![CDATA[Warcraft]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=111</guid>
		<description><![CDATA[Hey everyone, almost a year ago I modified one of the most popular Warcraft 3 &#8211; The Frozen Throne maps all time.I altered this map because one day there were cheats found in it&#8230; which causes that the map was nearly immediately unplayable. On the fact that this was my absolute favorite map I started [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Hey everyone</strong>,</p>
<p>almost a year ago I modified one of the most popular Warcraft 3 &#8211; The Frozen Throne maps all time.I altered this map because one day there were cheats found in it&#8230; which causes that the map was nearly immediately unplayable.</p>
<p>On the fact that this was my absolute favorite map I started my investigation, how to change a encrypted wc3 map. The afford was fruit full and so I changed the maps which now is called &#8220;Pro&#8221; under my gaming name &#8220;ZORROX&#8221;.</p>
<p>The map is gaining in popularity since its initial release. There are currently more than 15000 downloads counted.</p>
<div id="attachment_112" class="wp-caption alignright" style="width: 266px"><a href="http://www.andreas-glaser.com/wp-content/uploads/2008/09/29165.jpg"><img class="size-full wp-image-112" title="Footmen Frenzy 5.4b Pro" src="http://www.andreas-glaser.com/wp-content/uploads/2008/09/29165.jpg" alt="Footmen Frenzy 5.4b Pro" width="256" height="256" /></a><p class="wp-caption-text">Footmen Frenzy 5.4b Pro</p></div>
<p><strong>Download</strong></p>
<ol>
<li><a title="http://epicwar.com/maps/rate/29165/5/" href="http://epicwar.com/maps/rate/29165/5/" target="_blank">http://epicwar.com/maps/rate/29165/5/</a></li>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
</ol>
<p>I really hope you enjoy Footmen Frenzy as much as i do.</p>
<p><em><strong>So long,<br />
Andreas Glaser (JaZz)</strong></em></p>
<fb:like href='http://www.andreas-glaser.com/2008/09/09/warcraft-3-footmen-frenzy-54b-pro/' 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/2008/09/09/warcraft-3-footmen-frenzy-54b-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CounterStrike Source Linux Server Startscript</title>
		<link>http://www.andreas-glaser.com/2008/09/05/counterstrike-source-linux-server-startscript/</link>
		<comments>http://www.andreas-glaser.com/2008/09/05/counterstrike-source-linux-server-startscript/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 17:01:10 +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[Linux Shell Script]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Awk]]></category>
		<category><![CDATA[CounterStrike]]></category>
		<category><![CDATA[Screen]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Source]]></category>
		<category><![CDATA[Start]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=103</guid>
		<description><![CDATA[Here it is&#8230; a well commented and easy for rookies to understand CounterStrike Source Linux Server Startscript. It includes all basic start parameter as well as a good error display system. How to use: After you successfully installed a Counterstrike Source Server under Linux with the SRCDS tool you just have to download the startscript [...]]]></description>
			<content:encoded><![CDATA[<p>Here it is&#8230; a well commented and easy for rookies to understand CounterStrike Source Linux Server Startscript. It includes all basic start parameter as well as a good error display system.</p>
<p><strong>How to use:</strong></p>
<p>After you successfully installed a Counterstrike Source Server under Linux with the <a title="http://www.srcds.com/" href="http://www.srcds.com/" target="_blank">SRCDS</a> tool you just have to download the startscript at the bottom of this post.<br />
Save the &#8220;startscript&#8221; into the root directory of your CSS server and change the permission to &#8220;u + x&#8221; (chmod u+x startscript).</p>
<p>Now open the start script with your preferred editor (vim, joe, mono etc.) and customize the configuration variables to your system.</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('p103code36'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10336"><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
</pre></td><td class="code" id="p103code36"><pre class="bash" style="font-family:monospace;"><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>
&nbsp;
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~ 1. SYSTEM PARAMETERS ~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Set the user who owns the CounterStrike Server (root is not recommended)</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Existing user on your system</span>
<span style="color: #007800;">SYS_USER</span>=<span style="color: #ff0000;">&quot;root&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Path to the root directory of the server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: System path</span>
<span style="color: #007800;">SYS_DIR</span>=<span style="color: #ff0000;">&quot;/path/to/your/server/&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Server daemon</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: srcds_run</span>
<span style="color: #007800;">SYS_DAEMON</span>=<span style="color: #ff0000;">&quot;srcds_run&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Name of the server on your system</span>
<span style="color: #007800;">SYS_NAME</span>=<span style="color: #ff0000;">&quot;CSS001&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Description of the server</span>
<span style="color: #007800;">SYS_DESC</span>=<span style="color: #ff0000;">&quot;My first CSS Server&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~ 2. SERVER START PARAMETER ~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: IPv4 Address of your server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: XXX.XXX.XXX.XXX</span>
<span style="color: #007800;">START_PARAMS_IP</span>=<span style="color: #ff0000;">&quot;127.0.0.1&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Port of your server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Between 0 and 65535</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 27015</span>
<span style="color: #007800;">START_PARAMS_PORT</span>=<span style="color: #ff0000;">&quot;27016&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the default maps</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Every on the server installed map is possible</span>
<span style="color: #007800;">START_PARAMS_MAP</span>=<span style="color: #ff0000;">&quot;de_dust2&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the amount of player slots</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Between 1 and 32</span>
<span style="color: #007800;">START_PARAMS_MAXPLAYERS</span>=<span style="color: #ff0000;">&quot;24&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines wether VAC (Valve Anti Cheat) is activated</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: secure / insecure</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: secure</span>
<span style="color: #007800;">START_PARAMS_SECURE</span>=<span style="color: #ff0000;">&quot;secure&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Pingboost</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: 0 / 1 / 2 / 3</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 0</span>
<span style="color: #007800;">START_PARAMS_PINGBOOST</span>=<span style="color: #ff0000;">&quot;0&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the tickrate</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: 33 / 66 / 100</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 33</span>
<span style="color: #007800;">START_PARAMS_TICKRATE</span>=<span style="color: #ff0000;">&quot;100&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># CONFIGURATION END</span>
<span style="color: #666666; font-style: italic;">############################*</span></pre></td></tr></table></div>

<p>After this step just execute the start script (./startscript start).</p>
<p>Thats it!</p>
<p><strong>Required Linux packages</strong></p>
<ul>
<li><a title="http://www.google.com/linux?hl=en&amp;q=awk&amp;btnG=Search" href="http://www.google.com/linux?hl=en&amp;q=awk&amp;btnG=Search" target="_blank">awk</a></li>
<li><a title="http://www.google.com/linux?hl=en&amp;q=screen&amp;btnG=Search" href="http://www.google.com/linux?hl=en&amp;q=screen&amp;btnG=Search" target="_blank">screen</a></li>
</ul>
<p><strong>Download</strong></p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>So long,<br />
Andreas Glaser (aka JaZz)</strong></p>
<fb:like href='http://www.andreas-glaser.com/2008/09/05/counterstrike-source-linux-server-startscript/' 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/2008/09/05/counterstrike-source-linux-server-startscript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

