<?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>Binary Expressions &#187; General</title>
	<atom:link href="http://www.adamsdesk.com/be/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adamsdesk.com/be</link>
	<description>The life experiences of Adam Douglas. Technical help too!</description>
	<lastBuildDate>Tue, 27 Jul 2010 19:45:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>TaskFreak! v0.6.2 &#8211; Alter Search Plugin</title>
		<link>http://www.adamsdesk.com/be/archives/2010/07/15/taskfreak-v0-6-2-alter-search-plugin/</link>
		<comments>http://www.adamsdesk.com/be/archives/2010/07/15/taskfreak-v0-6-2-alter-search-plugin/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 19:27:02 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[alter]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[searching]]></category>
		<category><![CDATA[taskfreak!]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=587</guid>
		<description><![CDATA[Background Knowledge

The Search Plugin for TaskFreak! created by DaDaemon and xdu v0.0.1 (March 26, 2007) was designed to create a simple, quick search capability of the tasks title and description. As well it only searched through he current task view (tasks visible at the time) and tasks that are not completed. For some this was [...]]]></description>
			<content:encoded><![CDATA[<h4>Background Knowledge</h4>
<hr />
<p>The <a href="http://forum.taskfreak.com/index.php?topic=729.0">Search Plugin</a> for <a href="http://www.taskfreak.com/">TaskFreak!</a> created by DaDaemon and xdu v0.0.1 (March 26, 2007) was designed to create a simple, quick search capability of the tasks title and description. As well it only searched through he current task view (tasks visible at the time) and tasks that are not completed. For some this was not what was desired and would rather have the Search Plugin search through all tasks weather completed or not and as well search through the comments of tasks along with the title and description. I&#8217;ll show you how this is done using Searcher, bchristie and davidlmansfield instructions posted on the <a href="http://forum.taskfreak.com/">TaskFreak! Forums</a>.</p>
<p><span id="more-587"></span></p>
<h4>Solution &#8211; Add the Ability to Search All Tasks</h4>
<hr />
<p>Edit the &#8220;index.php&#8221; located in the root of TaskFreak! as follows. We will be working in the &#8220;Load Tasks&#8221; section to just above the &#8220;Task Order&#8221; section. This solution was posted by Searcher at <a href="http://forum.taskfreak.com/index.php?topic=729.msg3470#msg3470">Re: Quick &#8216;n&#8217; Dirty Search Plugin</a>.</p>
<h5>Code Before</h5>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$arrFilters</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// --- filter: project ---</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pProject</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// load tasks for specific project</span>
	<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ii.projectId = \''</span><span style="color: #339933;">.</span><span style="color: #000088;">$pProject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sProject='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pProject</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: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">checkLevel</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// user can only access his own projects</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$objUserProjectList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rMore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$arrProject</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$objTmp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objUserProjectList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objTmp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</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;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">checkLevel</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">13</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        	<span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ii.projectId IN ('</span><span style="color: #339933;">.</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span><span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$objUserProjectList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rReset</span><span style="color: #009900;">&#40;</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: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// --- filter: user ---</span>
<span style="color: #000088;">$pUser</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_DEFAULT_VIEW_OWN_TASKS'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// default view is own tasks only</span>
	<span style="color: #000088;">$pUser</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sUser'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'myprojects'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ii.authorId='</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pUser</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ii.memberId = \''</span><span style="color: #339933;">.</span><span style="color: #000088;">$pUser</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pUser</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$pDefaultUserId</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pUser</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">session_unregister</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$pDefaultUserId</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">// by default, show own tasks</span>
    <span style="color: #666666; font-style: italic;">/*
    if (!$objUser-&gt;checkLevel(1)) { // admin can see all
	    $objItemList-&gt;addWhere('(ii.memberId='.$objUser-&gt;id
    		.' OR ii.authorId='.$objUser-&gt;id.')');
    }
    */</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sUser='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pUser</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// --- private tasks --------------------------------------------------------</span>
&nbsp;
<span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'showPrivate=0'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">checkLevel</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// show internal tasks</span>
	<span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'showPrivate=1'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(showPrivate=2 AND (ii.memberId='</span><span style="color: #339933;">.</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span>
	<span style="color: #339933;">.</span><span style="color: #0000ff;">' OR ii.authorId='</span><span style="color: #339933;">.</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'))'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'('</span><span style="color: #339933;">.</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' OR '</span><span style="color: #339933;">,</span><span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// --- filter: context ---</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sContext'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pContext</span> <span style="color: #339933;">=</span> Tzn<span style="color: #339933;">::</span><span style="color: #004000;">getHttp</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sContext'</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: #339933;">;</span>
	<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'context = \''</span><span style="color: #339933;">.</span><span style="color: #000088;">$pContext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sContext='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pContext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pShow</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'show'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>?<span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'show'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'today'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'show='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pShow</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$pKeepNoDead</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_NO_DEADLINE_KEEP'</span><span style="color: #009900;">&#41;</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: #cc66cc;">86400</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// --- Filter per date -----------------------------------------------------</span>
&nbsp;
<span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pShow</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'all'</span><span style="color: #339933;">:</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'future'</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// show coming tasks and late tasks (undone only)</span>
		<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'((deadlineDate &gt;= \''</span>
			<span style="color: #339933;">.</span><span style="color: #990000;">strftime</span><span style="color: #009900;">&#40;</span>TZN_DATE_SQL<span style="color: #339933;">,</span>PRJ_DTE_NOW<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\' AND statusKey &lt; '</span>
			<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' OR statusKey &lt; '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">// show uncompleted tasks with no deadline</span>
		<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR (deadlineDate = \'9999-00-00\' AND statusKey &lt; '</span>
			<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'past'</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// show past tasks and already done</span>
		<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(deadlineDate &lt; \''</span>
			<span style="color: #339933;">.</span><span style="color: #990000;">strftime</span><span style="color: #009900;">&#40;</span>TZN_DATE_SQL<span style="color: #339933;">,</span>PRJ_DTE_NOW<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\' OR statusKey = '</span>
			<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'today'</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// show all future tasks (done + undone) and late tasks</span>
		<span style="color: #000088;">$pKeepNoDead</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_NO_DEADLINE_KEEP'</span><span style="color: #009900;">&#41;</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: #cc66cc;">86400</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(statusKey = '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">' AND statusDate &gt; \''</span>
			<span style="color: #339933;">.</span><span style="color: #990000;">gmdate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y-m-d 00:00:00'</span><span style="color: #339933;">,</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #000088;">$pKeepNoDead</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\') '</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// hide far future tasks ?</span>
		<span style="color: #000088;">$tmpFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_DEFAULT_FAR_FUTURE_HIDE'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span>FRK_DEFAULT_FAR_FUTURE_HIDE<span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">86400</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$tmpFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'deadlineDate &lt; \''</span>
				<span style="color: #339933;">.</span><span style="color: #990000;">gmdate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y-m-d 00:00:00'</span><span style="color: #339933;">,</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #000088;">$tmp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// show tasks with no deadline ?</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_NO_DEADLINE_TOO'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// yes</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmpFilter</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'OR ('</span><span style="color: #339933;">.</span><span style="color: #000088;">$tmpFilter</span>
					<span style="color: #339933;">.</span><span style="color: #0000ff;">' OR deadlineDate = \'9999-00-00\')'</span>
					<span style="color: #339933;">.</span> <span style="color: #0000ff;">' AND statusKey &lt; '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR statusKey &lt; '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<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: #666666; font-style: italic;">// don't show uncompleted non planned tasks</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmpFilter</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR ('</span><span style="color: #339933;">.</span><span style="color: #000088;">$tmpFilter</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' AND statusKey &lt; '</span>
    	        	<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	            <span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR (deadlineDate &lt;&gt; \'9999-00-00\' AND statusKey &lt; '</span>
    	        	<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_DEFAULT_CURRENT_TASKS'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setPagination</span><span style="color: #009900;">&#40;</span>FRK_DEFAULT_CURRENT_TASKS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// -TODO- Add filter current project only (no completed, no cancelled)</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// echo '&lt;p&gt;&amp;&lt;/p&gt;&lt;p&gt;-&lt;/p&gt;&lt;p&gt;-&lt;/p&gt;'.$sqlFilter;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addDateFilter</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</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;">// search filter</span>
	<span style="color: #000088;">$pSearch</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'search'</span><span style="color: #009900;">&#93;</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;">$pSearch</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(ii.title LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\' OR ii.description LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\')'</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h5>Code After</h5>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$pSearch</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'search'</span><span style="color: #009900;">&#93;</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;">$pSearch</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(ii.title LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\' OR ii.description LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\')'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</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>
	<span style="color: #000088;">$arrFilters</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// --- filter: project ---</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pProject</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #666666; font-style: italic;">// load tasks for specific project</span>
		<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ii.projectId = \''</span><span style="color: #339933;">.</span><span style="color: #000088;">$pProject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #339933;">;</span>
	    <span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sProject='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pProject</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: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">checkLevel</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #666666; font-style: italic;">// user can only access his own projects</span>
	    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$objUserProjectList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rMore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	        <span style="color: #000088;">$arrProject</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	        <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$objTmp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objUserProjectList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	            <span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objTmp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</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;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">checkLevel</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">13</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	        	<span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span>
	        <span style="color: #009900;">&#125;</span>
	        <span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ii.projectId IN ('</span><span style="color: #339933;">.</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span><span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
&nbsp;
	        <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arrProject</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	        <span style="color: #000088;">$objUserProjectList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rReset</span><span style="color: #009900;">&#40;</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: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// --- filter: user ---</span>
	<span style="color: #000088;">$pUser</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_DEFAULT_VIEW_OWN_TASKS'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// default view is own tasks only</span>
		<span style="color: #000088;">$pUser</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sUser'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'myprojects'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	   <span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ii.authorId='</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pUser</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ii.memberId = \''</span><span style="color: #339933;">.</span><span style="color: #000088;">$pUser</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pUser</span><span style="color: #339933;">;</span>
	    <span style="color: #000088;">$pDefaultUserId</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pUser</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">session_unregister</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'selUser'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #000088;">$pDefaultUserId</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">;</span>
	    <span style="color: #666666; font-style: italic;">// by default, show own tasks</span>
	    <span style="color: #666666; font-style: italic;">/*
	    if (!$objUser-&gt;checkLevel(1)) { // admin can see all
		    $objItemList-&gt;addWhere('(ii.memberId='.$objUser-&gt;id
	    		.' OR ii.authorId='.$objUser-&gt;id.')');
	    }
	    */</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sUser='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pUser</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// --- private tasks --------------------------------------------------------</span>
&nbsp;
	<span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'showPrivate=0'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">checkLevel</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// show internal tasks</span>
		<span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'showPrivate=1'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(showPrivate=2 AND (ii.memberId='</span><span style="color: #339933;">.</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span>
		<span style="color: #339933;">.</span><span style="color: #0000ff;">' OR ii.authorId='</span><span style="color: #339933;">.</span><span style="color: #000088;">$objUser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'))'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'('</span><span style="color: #339933;">.</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' OR '</span><span style="color: #339933;">,</span><span style="color: #000088;">$arrFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// --- filter: context ---</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sContext'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$pContext</span> <span style="color: #339933;">=</span> Tzn<span style="color: #339933;">::</span><span style="color: #004000;">getHttp</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sContext'</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: #339933;">;</span>
		<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'context = \''</span><span style="color: #339933;">.</span><span style="color: #000088;">$pContext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sContext='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pContext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$pShow</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'show'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>?<span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'show'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'today'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$pLink</span><span style="color: #339933;">=</span>Tzn<span style="color: #339933;">::</span><span style="color: #004000;">concatUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pLink</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'show='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pShow</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$pKeepNoDead</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_NO_DEADLINE_KEEP'</span><span style="color: #009900;">&#41;</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: #cc66cc;">86400</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// --- Filter per date -----------------------------------------------------</span>
&nbsp;
	<span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pShow</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'all'</span><span style="color: #339933;">:</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'future'</span><span style="color: #339933;">:</span>
			<span style="color: #666666; font-style: italic;">// show coming tasks and late tasks (undone only)</span>
			<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'((deadlineDate &gt;= \''</span>
				<span style="color: #339933;">.</span><span style="color: #990000;">strftime</span><span style="color: #009900;">&#40;</span>TZN_DATE_SQL<span style="color: #339933;">,</span>PRJ_DTE_NOW<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\' AND statusKey &lt; '</span>
				<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' OR statusKey &lt; '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
	        <span style="color: #666666; font-style: italic;">// show uncompleted tasks with no deadline</span>
			<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR (deadlineDate = \'9999-00-00\' AND statusKey &lt; '</span>
				<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'past'</span><span style="color: #339933;">:</span>
			<span style="color: #666666; font-style: italic;">// show past tasks and already done</span>
			<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(deadlineDate &lt; \''</span>
				<span style="color: #339933;">.</span><span style="color: #990000;">strftime</span><span style="color: #009900;">&#40;</span>TZN_DATE_SQL<span style="color: #339933;">,</span>PRJ_DTE_NOW<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\' OR statusKey = '</span>
				<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'today'</span><span style="color: #339933;">:</span>
			<span style="color: #666666; font-style: italic;">// show all future tasks (done + undone) and late tasks</span>
			<span style="color: #000088;">$pKeepNoDead</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_NO_DEADLINE_KEEP'</span><span style="color: #009900;">&#41;</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: #cc66cc;">86400</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(statusKey = '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">' AND statusDate &gt; \''</span>
				<span style="color: #339933;">.</span><span style="color: #990000;">gmdate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y-m-d 00:00:00'</span><span style="color: #339933;">,</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #000088;">$pKeepNoDead</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\') '</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// hide far future tasks ?</span>
			<span style="color: #000088;">$tmpFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_DEFAULT_FAR_FUTURE_HIDE'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span>FRK_DEFAULT_FAR_FUTURE_HIDE<span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">86400</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$tmpFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'deadlineDate &lt; \''</span>
					<span style="color: #339933;">.</span><span style="color: #990000;">gmdate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y-m-d 00:00:00'</span><span style="color: #339933;">,</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #000088;">$tmp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// show tasks with no deadline ?</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_NO_DEADLINE_TOO'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">// yes</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmpFilter</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'OR ('</span><span style="color: #339933;">.</span><span style="color: #000088;">$tmpFilter</span>
						<span style="color: #339933;">.</span><span style="color: #0000ff;">' OR deadlineDate = \'9999-00-00\')'</span>
						<span style="color: #339933;">.</span> <span style="color: #0000ff;">' AND statusKey &lt; '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR statusKey &lt; '</span><span style="color: #339933;">.</span>FRK_STATUS_LEVELS<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: #666666; font-style: italic;">// don't show uncompleted non planned tasks</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmpFilter</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR ('</span><span style="color: #339933;">.</span><span style="color: #000088;">$tmpFilter</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' AND statusKey &lt; '</span>
	    	        	<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		            <span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' OR (deadlineDate &lt;&gt; \'9999-00-00\' AND statusKey &lt; '</span>
	    	        	<span style="color: #339933;">.</span>FRK_STATUS_LEVELS<span style="color: #339933;">.</span><span style="color: #0000ff;">')'</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
	        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FRK_DEFAULT_CURRENT_TASKS'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	            <span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setPagination</span><span style="color: #009900;">&#40;</span>FRK_DEFAULT_CURRENT_TASKS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	        <span style="color: #009900;">&#125;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// -TODO- Add filter current project only (no completed, no cancelled)</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// echo '&lt;p&gt;&amp;&lt;/p&gt;&lt;p&gt;-&lt;/p&gt;&lt;p&gt;-&lt;/p&gt;'.$sqlFilter;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addDateFilter</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h4>Solution &#8211; Add Ability to Also Search within Task Comments</h4>
<hr />
<p>Edit the &#8220;index.php&#8221; located in the root of TaskFreak! as follows. We will be working in just below the heading section of the &#8220;Load Tasks&#8221;. This solution was posted by davidlmansfield at <a href="http://forum.taskfreak.com/index.php?topic=911.0">[PATCH] [Search Plugin] include tasks matching in comment fields</a>.</p>
<h5>Code Before</h5>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>39
40
41
42
43
44
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// search filter</span>
<span style="color: #000088;">$pSearch</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'search'</span><span style="color: #009900;">&#93;</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;">$pSearch</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(ii.title LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\' OR ii.description LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\')'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h5>Code After</h5>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>39
40
41
42
43
44
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// search filter</span>
<span style="color: #000088;">$pSearch</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'search'</span><span style="color: #009900;">&#93;</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;">$pSearch</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$sqlFilter</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(ii.title LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\' OR ii.description LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\' OR ii.itemId in (select itemId from '</span><span style="color: #339933;">.</span><span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">gTable</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'itemComment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' where body LIKE \'%'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pSearch</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'%\'))'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$objItemList</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWhere</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlFilter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h4>Solution &#8211; Stop SQL Injections</h4>
<hr />
<p>Edit the &#8220;index.php&#8221; located in the root of TaskFreak! as follows. We will be working in just below the heading section of the &#8220;Load Tasks&#8221;. This solution was posted by bchristie at <a href="http://forum.taskfreak.com/index.php?topic=729.msg8546#msg8546">Re: Quick &#8216;n&#8217; Dirty Search Plugin</a>.</p>
<h5>Code Before</h5>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>39
40
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// search filter</span>
<span style="color: #000088;">$pSearch</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'search'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h5>Code After</h5>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>39
40
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// search filter</span>
<span style="color: #000088;">$pSearch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'search'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>?<span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'search'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2010/07/15/taskfreak-v0-6-2-alter-search-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TaskFreak! v0.6.2 &#8211; Add Unique Ticket/Task Number</title>
		<link>http://www.adamsdesk.com/be/archives/2010/07/14/taskfreak-v0-6-2-add-unique-ticket/</link>
		<comments>http://www.adamsdesk.com/be/archives/2010/07/14/taskfreak-v0-6-2-add-unique-ticket/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:20:58 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[gtd]]></category>
		<category><![CDATA[id]]></category>
		<category><![CDATA[modifiy]]></category>
		<category><![CDATA[PHP/MySQL/MSSQL]]></category>
		<category><![CDATA[taskfreak!]]></category>
		<category><![CDATA[ticket]]></category>
		<category><![CDATA[unique]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=579</guid>
		<description><![CDATA[Background Knowledge

TaskFreak! does not show within the interface a unique ticket/task number. Depending on the use of TaskFreak! having such a value can have it&#8217;s benefits. Since this unique value does already exist in the back end, it will be fairly trivial to render this value within the task list and task details panel. I [...]]]></description>
			<content:encoded><![CDATA[<h4>Background Knowledge</h4>
<hr />
<p><a href="http://www.taskfreak.com/">TaskFreak!</a> does not show within the interface a unique ticket/task number. Depending on the use of TaskFreak! having such a value can have it&#8217;s benefits. Since this unique value does already exist in the back end, it will be fairly trivial to render this value within the task list and task details panel. I will show you how this is done using Searcher&#8217;s solution posted in the <a href="http://forum.taskfreak.com/index.php?topic=1197.0" title="Read Taskfreak! Forum Post">TaskFreak! Forum</a>. There has been some modifications but not much.</p>
<h4>Solution</h4>
<hr />
<ol>
<li>Edit index.php in the root of TaskFreak!. Add the table header column just below line # 248 as follows.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>th width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;3%&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;freak_sort('itemId')&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sortable&quot;</span> <span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$langForm</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

</li>
<li>Next add the table data just below line # 302 as follows.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>td style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-align:right;&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$objItem</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;&lt;/</span>td<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

</li>
<li>Edit /include/html/xajax_panel_view.php just below line # 5 just before the priority column as follows.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;fid&quot;</span><span style="color: #339933;">&gt;</span>
        	<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;flabel&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'langForm'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
        	<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;vid&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$objTask</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span> <span style="color: #339933;">/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

</li>
<li>Edit /include/language/en/freak.php just below line # 46 as follows.
<p><strong>Note:</strong> Each interface language file will be required to be edited if you desire to use them. If you do not do so, you will receive error messages and it may cripple TaskFreak!</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ID'</span><span style="color: #339933;">,</span></pre></td></tr></table></div>

</li>
<li>Edit applicable skins&#8217; CSS in this example /skins/redfreak/css/freak.css just below line # 550.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#fid 
</span><span style="color: #009900;">&#123;</span>
	float<span style="color: #339933;">:</span> left<span style="color: #339933;">;</span>
	width<span style="color: #339933;">:</span> 80px<span style="color: #339933;">;</span>
	height<span style="color: #339933;">:</span>32px<span style="color: #339933;">;</span>
	margin<span style="color: #339933;">-</span>left<span style="color: #339933;">:</span> 3px<span style="color: #339933;">;</span>
	font<span style="color: #339933;">-</span>weight<span style="color: #339933;">:</span> bold<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

</li>
<li>Edit applicable skins&#8217; CSS in this example /skins/redfreak/css/freak.css ID #fpro and remove &#8220;margin-left: 3px;&#8221;.</li>
</ol>
<p>Source: <a href="http://forum.taskfreak.com/index.php?topic=1197.0" title="Read Taskfreak! Forum Post">Unique Ticket/ToDo Follow Number &#8211; Further prioritizing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2010/07/14/taskfreak-v0-6-2-add-unique-ticket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visio Drawing &#8211; Server Rack</title>
		<link>http://www.adamsdesk.com/be/archives/2010/04/19/visio-drawing-server-rack/</link>
		<comments>http://www.adamsdesk.com/be/archives/2010/04/19/visio-drawing-server-rack/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 21:15:00 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[Barracuda]]></category>
		<category><![CDATA[cables]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[citrix]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[diagram]]></category>
		<category><![CDATA[drawing]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[netgear]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[nortel]]></category>
		<category><![CDATA[rack]]></category>
		<category><![CDATA[Riverbed]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[stencil]]></category>
		<category><![CDATA[visio]]></category>
		<category><![CDATA[watchguard]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=554</guid>
		<description><![CDATA[Background Knowledge

I was given an assignment to virtual layout our entire network server rack and equipment within the serve room. As well I had to make note of where each end of each network cable ended up at with the exception of cables going to the patch box.
I used Microsoft Visio to create the drawing. [...]]]></description>
			<content:encoded><![CDATA[<h4>Background Knowledge</h4>
<hr />
<p>I was given an assignment to virtual layout our entire network server rack and equipment within the serve room. As well I had to make note of where each end of each network cable ended up at with the exception of cables going to the patch box.</p>
<p>I used Microsoft Visio to create the drawing. In many cases I ended up having to create my own stencils from images. Not exactly perfect but it did the job. In those case where I made my own stencil I just use <a href="http://www.adobe.com/photoshop/">Adobe Photoshop</a> to touch up some free photos of a particular product and then inserted the image into my Visio drawing.</p>
<h4>Resources Used for Visio Stencils, Icons and Add-Ins</h4>
<hr />
<ul>
<li><a href="http://www.cisco.com/en/US/products/prod_visio_icon_list.html">Cisco Stencils</a></li>
<li><a href="http://www.watchguard.com/products/resources/visio-icons.asp">WatchGuard Icons</a></li>
<li><a href="http://www.barracudanetworks.com/ns/support/documentation.php">Barracuda &#8211; Documentation</a></li>
<li><a href="http://www.barracudanetworks.com/ns/portal/graphics.php#gfx-cat-6">Barracuda &#8211; Graphics</a></li>
<li><a href="http://www.altimatech.com/ncpmfg/index.asp?mfgacronym=apc">APC Stencils</a> (free sample)</li>
<li><a href="http://www.riverbed.com/company/news/press_resources/index.php">Riverbed Steelhead</a></li>
<li><a href="http://www.readynas.com/forum/viewtopic.php?=&#038;p=50106">Netgear ReadyNAS</a></li>
<li><a href=" http://www.brianmadden.com/blogs/brianmadden/archive/2004/07/19/now-available-for-download-citrix-metaframe-shapes-visio-stencil.aspx">Citrix MetaFrame</a></li>
<li><a href="http://www.visiocafe.com/">Visio Cafe</a></li>
<li><a href="http://www.visiostencils.com/home/index.php">NetZoom Visio Stencils</a> (free samples, entire access requires a subscription)</li>
<li><a href="http://www.visguy.com/">VisioGuy</a> (general Visio stencils, add-ins, etc.)</li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=3250331A-0116-4064-92D1-50B9B0727B75&#038;displaylang=en">Visio Virtual Server Add-In</a></li>
<li><a href="http://www.visguy.com/2008/06/27/visio-2007-exchange-server-add-in/">Visio Exchange Server Add-In</a></li>
<li><a href="http://nag.ru/projects/visio/">Huge Library</a> (non-English)</li>
<li><a href="http://visiotoolbox.com/downloads/Tools/Visio_Stencils_-_For_All_Your_Diagramming_Need_562.aspx">Mimcrosoft Visio Toolbox</a></li>
<li><a href="http://products.nortel.com/go/product_content.jsp?segId=0&#038;catId=null&#038;parId=0&#038;prod_id=65883">Nortel Norstar BCM-450 Icons</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2010/04/19/visio-drawing-server-rack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mary Had a Little Lamb &#8211; Lord&#8217;s Prayer</title>
		<link>http://www.adamsdesk.com/be/archives/2010/02/04/mary-had-a-little-lamb-lords-prayer/</link>
		<comments>http://www.adamsdesk.com/be/archives/2010/02/04/mary-had-a-little-lamb-lords-prayer/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 01:50:55 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=510</guid>
		<description><![CDATA[This is a powerful poem and one I felt that should be shared.
I tried to track down the author of this poem but I was unable to determine who the author was. However there is some claim a little girl wrote this poem. If anyone can prove the author or further history please contact me.
Source: [...]]]></description>
			<content:encoded><![CDATA[<p>This is a powerful poem and one I felt that should be shared.</p>
<p>I tried to track down the author of this poem but I was unable to determine who the author was. However there is some claim a little girl wrote this poem. If anyone can prove the author or further history please contact me.</p>
<p>Source: <a href="http://www.agentz.com/Inspirational/Lamb_of_God.html">Mary had a little lamb</a></p>
<hr />
<p>Mary had a little lamb,<br />
His fleece was white as snow.<br />
And everywhere that Mary went,<br />
The Lamb was sure to go.</p>
<p>He followed her to school each day,<br />
T&#8217;wasn&#8217;t even in the rule.<br />
It made the children laugh and play,<br />
To have a Lamb at school.</p>
<p>And then the rules all changed one day,<br />
Illegal it became;<br />
To bring the Lamb of God to school,<br />
Or even speak His Name!</p>
<p>Every day got worse and worse,<br />
And days turned into years.<br />
Instead of hearing children laugh,<br />
We heard gun shots and tears.</p>
<p>What must we do to stop the crime,<br />
That&#8217;s in our schools today?<br />
Let&#8217;s let the Lamb come back to school,<br />
And teach our kids to pray!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2010/02/04/mary-had-a-little-lamb-lords-prayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To &#8211; Find Windows Version Installed</title>
		<link>http://www.adamsdesk.com/be/archives/2009/10/08/how-to-find-windows-version-installed/</link>
		<comments>http://www.adamsdesk.com/be/archives/2009/10/08/how-to-find-windows-version-installed/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 04:23:03 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[installed]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=498</guid>
		<description><![CDATA[Keyboard Shortcut

Press Windows Key+Pause/Break key for the &#8220;System Properties&#8221;.
Command Prompt


Go to the Windows Start Menu and click on &#8220;Run&#8221; or press Windows key+R.
Type in the input field without quotes &#8220;winver&#8221;.

]]></description>
			<content:encoded><![CDATA[<h4>Keyboard Shortcut</h4>
<hr />
<p>Press Windows Key+Pause/Break key for the &#8220;System Properties&#8221;.</p>
<h4>Command Prompt</h4>
<hr />
<ol>
<li>Go to the Windows Start Menu and click on &#8220;Run&#8221; or press Windows key+R.</li>
<li>Type in the input field without quotes &#8220;winver&#8221;.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2009/10/08/how-to-find-windows-version-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To &#8211; Find Version of Mac OS X Installed</title>
		<link>http://www.adamsdesk.com/be/archives/2009/10/08/how-to-find-version-of-mac-os-x-installed/</link>
		<comments>http://www.adamsdesk.com/be/archives/2009/10/08/how-to-find-version-of-mac-os-x-installed/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 04:19:37 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[installed]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=493</guid>
		<description><![CDATA[From the &#8220;Apple&#8221; menu click on &#8220;About this Mac&#8221;.
]]></description>
			<content:encoded><![CDATA[<p>From the &#8220;Apple&#8221; menu click on &#8220;About this Mac&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2009/10/08/how-to-find-version-of-mac-os-x-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Favorite Quote of Mine</title>
		<link>http://www.adamsdesk.com/be/archives/2009/04/26/a-favorite-quote-of-mine/</link>
		<comments>http://www.adamsdesk.com/be/archives/2009/04/26/a-favorite-quote-of-mine/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 02:41:59 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[john]]></category>
		<category><![CDATA[quote]]></category>
		<category><![CDATA[rohn]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=437</guid>
		<description><![CDATA[&#8220;If you keep doing what you&#8217;ve always done, you&#8217;ll keep getting what you&#8217;ve always gotten.&#8221;
Jim Rohn
Motivational speaker and author
]]></description>
			<content:encoded><![CDATA[<p>&#8220;If you keep doing what you&#8217;ve always done, you&#8217;ll keep getting what you&#8217;ve always gotten.&#8221;</p>
<p>Jim Rohn<br />
Motivational speaker and author</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2009/04/26/a-favorite-quote-of-mine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SeaTools for DOS v1.0PH &#8211; Overtemp&#8211;253</title>
		<link>http://www.adamsdesk.com/be/archives/2009/01/07/seatools-for-dos-v10ph-overtemp-253/</link>
		<comments>http://www.adamsdesk.com/be/archives/2009/01/07/seatools-for-dos-v10ph-overtemp-253/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 12:47:03 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[253]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[hot]]></category>
		<category><![CDATA[maxtor]]></category>
		<category><![CDATA[overtemp]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[seatools]]></category>
		<category><![CDATA[warm]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2009/01/07/seatools-for-dos-v10ph-overtemp-253/</guid>
		<description><![CDATA[I was running a hard drive diagnostic using SeaTools for DOS v1.09PH on two exactly the same Maxtor hard drives, see details of the drives below. When I attempted to run a quick scan and then a long scan it received a warning &#8220;Overtemp&#8211;253&#8243;. After doing some research I have come to the conclusion that [...]]]></description>
			<content:encoded><![CDATA[<p>I was running a hard drive diagnostic using SeaTools for DOS v1.09PH on two exactly the same Maxtor hard drives, see details of the drives below. When I attempted to run a quick scan and then a long scan it received a warning &#8220;Overtemp&#8211;253&#8243;. After doing some research I have come to the conclusion that with certainty that this doesn&#8217;t mean the hard drive is running at 253 degrees Fahrenheit. My two drives are well ventilated and do not even feel warm to the touch. In fact this message apparently means according to Seagate that the hard drive does not support SeaTools reading temperatures.</p>
<ul>
<li>Brand: Maxtor</li>
<li>Model: 6Y060L0</li>
<li>FW: YAR41BW0</li>
</ul>
<p>Source: <a href="http://forums.seagate.com/stx/board/message?board.id=SeaTool&#038;thread.id=21" title="Seagate Community Forums">Incorrect temperature values for a Maxtor disk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2009/01/07/seatools-for-dos-v10ph-overtemp-253/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Christmas Wallpaper</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/07/christmas-wallpaper/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/12/07/christmas-wallpaper/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 12:50:30 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[christmas]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[holiday]]></category>
		<category><![CDATA[wallpaper]]></category>
		<category><![CDATA[xmas]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/07/christmas-wallpaper/</guid>
		<description><![CDATA[Finding free quality wallpaper is hard and its even harder to find quality wallpaper for Christmas. Here is a couple sources I came across with a pretty good selection. If you have any suggestions of other sources for the holiday season drop a comment.
Source: CSSBuilt &#8211; 29 Beautiful Christmas Wallpapers
Source: CSS Count &#8211; 30 List [...]]]></description>
			<content:encoded><![CDATA[<p>Finding free quality wallpaper is hard and its even harder to find quality wallpaper for Christmas. Here is a couple sources I came across with a pretty good selection. If you have any suggestions of other sources for the holiday season drop a comment.</p>
<p>Source: <a href="http://cssbuilt.com/2008/12/06/29-beautiful-christmas-wallpapers/">CSSBuilt &#8211; 29 Beautiful Christmas Wallpapers</a><br />
Source: <a href="http://csscount.com/designs?bid=18">CSS Count &#8211; 30 List of Stunning Christmas Wallpapers</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/12/07/christmas-wallpaper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Country of Israel Districts</title>
		<link>http://www.adamsdesk.com/be/archives/2008/11/12/country-of-israel-districts/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/11/12/country-of-israel-districts/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 15:22:06 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[administrative]]></category>
		<category><![CDATA[country]]></category>
		<category><![CDATA[district]]></category>
		<category><![CDATA[districts]]></category>
		<category><![CDATA[israel]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[province]]></category>
		<category><![CDATA[provinces]]></category>
		<category><![CDATA[state]]></category>
		<category><![CDATA[states]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/11/12/country-of-israel-districts/</guid>
		<description><![CDATA[The country of Israel is broken up into 6 administrative districts with 15 sub-districts and 50 natural regions. It is my understanding according to the Isarael Central Bureau Statistics that the sub-districts are similar to what we call Provinces/States in North America and the natural regions are similar to municipalities/counties. 
I&#8217;m not fully understanding the [...]]]></description>
			<content:encoded><![CDATA[<p>The country of Israel is broken up into 6 administrative districts with 15 sub-districts and 50 natural regions. It is my understanding according to the Isarael Central Bureau Statistics that the sub-districts are similar to what we call Provinces/States in North America and the natural regions are similar to municipalities/counties. </p>
<p>I&#8217;m not fully understanding the West Bank, Gaza Strip, Golan Heights and East Jerusalem. Are they territories of Israel or a part of another country? How would one reference where you lived if you were lived in one of these regions (ie. West Bank, Isarel)?</p>
<p>This knowledge maybe helpful for those that need to reference contact information or allow clients to select their country and province/state/district.</p>
<p>Source: <a href="http://gis.cbs.gov.il/shnaton56/keymap_h.htm" title="Isarael Government - CBS">Israel Central Bureau Statistics</a><br />
Source: <a href="http://en.wikipedia.org/wiki/Districts_of_Israel" title="Read Wikipedia Entry">Districts of Israel</a><br />
Source: <a href="http://en.wikipedia.org/wiki/Israel" title="Read entry on Israel">Wikipedia on Israel</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/11/12/country-of-israel-districts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lego Mario designed using modo</title>
		<link>http://www.adamsdesk.com/be/archives/2008/10/10/lego-mario-designed-using-modo/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/10/10/lego-mario-designed-using-modo/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 15:34:27 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[figure]]></category>
		<category><![CDATA[lego]]></category>
		<category><![CDATA[mario]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[modo]]></category>
		<category><![CDATA[nextengine]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[scalpture]]></category>
		<category><![CDATA[scanner]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/10/10/lego-mario-designed-using-modo/</guid>
		<description><![CDATA[I came across this amazing Mario figure made entirely out of Lego. The designer Keith Brogan, created the Lego Mario figure using NextEngine 3D scanner and a commercial software package called Modo.
Source: Luxology Forum
]]></description>
			<content:encoded><![CDATA[<p>I came across this amazing Mario figure made entirely out of Lego. The designer Keith Brogan, created the Lego Mario figure using <a href="http://www.nextengine.com/">NextEngine 3D scanner</a> and a commercial software package called <a href="http://en.wikipedia.org/wiki/Modo_%28software%29" title="Read Wikipedia article on Modo software">Modo</a>.</p>
<p>Source: <a href="http://forums.luxology.com/discussion/topic.aspx?id=28803">Luxology Forum</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/10/10/lego-mario-designed-using-modo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool Stuff</title>
		<link>http://www.adamsdesk.com/be/archives/2008/10/03/cool-stuff/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/10/03/cool-stuff/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 19:03:02 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[disposable]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[organizer]]></category>
		<category><![CDATA[paper]]></category>
		<category><![CDATA[pda]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/10/03/cool-stuff/</guid>
		<description><![CDATA[Print Free Graph Paper
http://www.printfreegraphpaper.com/
Graph Paper
http://konigi.com/tools/graph-paper
PocketMod: The Free Disposable Personal Organizer
http://www.pocketmod.com/
]]></description>
			<content:encoded><![CDATA[<p>Print Free Graph Paper<a href=" http://www.printfreegraphpaper.com/"></p>
<p>http://www.printfreegraphpaper.com/</a></p>
<p>Graph Paper<br />
<a href="http://konigi.com/tools/graph-paper">http://konigi.com/tools/graph-paper</a></p>
<p>PocketMod: The Free Disposable Personal Organizer<br />
<a href="http://www.pocketmod.com/">http://www.pocketmod.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/10/03/cool-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unique Products by Jello</title>
		<link>http://www.adamsdesk.com/be/archives/2008/10/03/rubiks-cube-tables/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/10/03/rubiks-cube-tables/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 17:41:21 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[chair]]></category>
		<category><![CDATA[cube]]></category>
		<category><![CDATA[icarly]]></category>
		<category><![CDATA[jello]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[rubik's]]></category>
		<category><![CDATA[specialized]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[unique]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2006/02/08/rubiks-cube-tables/</guid>
		<description><![CDATA[The coolest Rubik's Cube Table.]]></description>
			<content:encoded><![CDATA[<p>I came across this cool company called Jello and I have to say they make some of the coolest products. For one who wouldn&#8217;t want to have a Rubik&#8217;s Cube table (smile). One thing I would have to say is the products are quite expensive to me at least. Granted they are unique and specialized. Some people may have seen Jello&#8217;s products on the <a href="http://en.wikipedia.org/wiki/ICarly" title="Wikipedia entry on iCarly Show">iCarly Show</a>.</p>
<p>Source: <a href="http://www.jellio.com/store.html">Jello</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/10/03/rubiks-cube-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perry &#8211; iPhone Eyes</title>
		<link>http://www.adamsdesk.com/be/archives/2008/07/25/perry-iphone-eyes/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/07/25/perry-iphone-eyes/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 13:46:50 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/07/25/perry-iphone-eyes/</guid>
		<description><![CDATA[



Perry

Originally uploaded by SLOrk


This affect is not new but using two iPhones I think is pretty cool.

]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;">
<a href="http://www.flickr.com/photos/slork/2632488911/" title="photo sharing"><img src="http://farm4.static.flickr.com/3012/2632488911_f572dd7250_m.jpg" alt="" style="border: solid 2px #000000;" /></a><br />
<br />
<span style="font-size: 0.9em; margin-top: 0px;"><br />
<a href="http://www.flickr.com/photos/slork/2632488911/">Perry</a><br />
<br />
Originally uploaded by <a href="http://www.flickr.com/people/slork/">SLOrk</a><br />
</span>
</div>
<p>This affect is not new but using two iPhones I think is pretty cool.<br />
<br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/07/25/perry-iphone-eyes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Johnny Lee Talks at TED</title>
		<link>http://www.adamsdesk.com/be/archives/2008/07/11/johnny-lee-talks-at-ted/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/07/11/johnny-lee-talks-at-ted/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 13:20:44 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[johnny]]></category>
		<category><![CDATA[johnny lee]]></category>
		<category><![CDATA[lee]]></category>
		<category><![CDATA[talks]]></category>
		<category><![CDATA[ted]]></category>
		<category><![CDATA[wii]]></category>
		<category><![CDATA[wii remote]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/07/11/johnny-lee-talks-at-ted/</guid>
		<description><![CDATA[


Source: TED &#124; Talks &#124; Johnny Lee: Wii Remote Hacks
Source: Johnny Lee &#8211; Human Computer Interactive Research
]]></description>
			<content:encoded><![CDATA[<div style="margin-left: auto; margin-right: auto; display: block; text-align: center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="432" height="285" id="VE_Player" align="middle"><param name="movie" value="http://static.videoegg.com/ted2/flash/loader.swf"></param><param NAME="FlashVars" VALUE="bgColor=FFFFFF&#038;file=http://static.videoegg.com/ted/movies/JOHNNYLEE-2008_high.flv&#038;autoPlay=false&#038;fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&#038;forcePlay=false&#038;logo=&#038;allowFullscreen=true"></param><param name="quality" value="high"></param><param name="allowScriptAccess" value="always"></param><param name="bgcolor" value="#FFFFFF"></param><param name="scale" value="noscale"></param><param name="wmode" value="window"><embed src="http://static.videoegg.com/ted2/flash/loader.swf" FlashVars="bgColor=FFFFFF&#038;file=http://static.videoegg.com/ted/movies/JOHNNYLEE-2008_high.flv&#038;autoPlay=false&#038;fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&#038;forcePlay=false&#038;logo=&#038;allowFullscreen=true" quality="high" allowScriptAccess="always" bgcolor="#FFFFFF" scale="noscale" wmode="window" width="432" height="285" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></param></object>
</div>
<p>Source: <a href="http://www.ted.com/talks/view/id/245">TED | Talks | Johnny Lee: Wii Remote Hacks</a><br />
Source: <a href="http://www.cs.cmu.edu/~johnny/" title="Johny's Carnegie Mellon University web page">Johnny Lee &#8211; Human Computer Interactive Research</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/07/11/johnny-lee-talks-at-ted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
