1 rizwank 1.1 w<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
7 <title>Rizwan Kassim's Public Log: September 2004 Archives</title>
8
9 <link rel="stylesheet" href="../../styles-site.css" type="text/css" />
10 <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.geekymedia.com/index.rdf" />
11 <link rel="start" href="http://www.geekymedia.com/" title="Home" />
12 <link rel="prev" href="http://www.geekymedia.com/archives/2004/06/index.html" title="June 2004" />
13
14
15
16 <script language="javascript" type="text/javascript">
17 function OpenComments (c) {
18 window.open(c,
19 'comments',
20 'width=480,height=480,scrollbars=yes,status=yes');
21 }
22 rizwank 1.1
23 function OpenTrackback (c) {
24 window.open(c,
25 'trackback',
26 'width=480,height=480,scrollbars=yes,status=yes');
27 }
28 </script>
29
30 <script type="text/javascript" language="JavaScript" src="http://www.geekymedia.com/magic/card.js">
31 <!--
32 <rdf:RDF xmlns="http://web.resource.org/cc/"
33 xmlns:dc="http://purl.org/dc/elements/1.1/"
34 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
35 <Work rdf:about="http://www.geekymedia.com/">
36 <dc:title>Rizwan Kassim's Public Log</dc:title>
37 <dc:description>While I swore that I would NEVER make a blog due ot the live journal voyuer craziness, when I found out I could update a MT blog via my Treo, I had to set one up, if only to avoid torturing HeatherW with constant SMSs anytime I had a thought of any magnitude.</dc:description>
38 <license rdf:resource="http://creativecommons.org/licenses/by-nd-nc/1.0/" />
39 </Work>
40 <License rdf:about="http://creativecommons.org/licenses/by-nd-nc/1.0/">
41 <requires rdf:resource="http://web.resource.org/cc/Attribution" />
42 <requires rdf:resource="http://web.resource.org/cc/Notice" />
43 rizwank 1.1 <permits rdf:resource="http://web.resource.org/cc/Reproduction" />
44 <permits rdf:resource="http://web.resource.org/cc/Distribution" />
45 <prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" />
46 </License>
47 </rdf:RDF>
48 -->
49
50
51
52 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
53 <script language="JavaScript" src="http://www.geekymedia.com/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>
54
55 <script type="text/javascript" src="http://www.geekymedia.com/nicetitle.js"></script>
56
57
58
59
60
61
62
63
64 rizwank 1.1
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 </head>
85 rizwank 1.1
86 <body>
87
88 <div id="banner">
89 <h1><a href="http://www.geekymedia.com/" accesskey="1">Rizwan Kassim's Public Log</a></h1>
90 <span class="description">While I swore that I would NEVER make a blog due ot the live journal voyuer craziness, when I found out I could update a MT blog via my Treo, I had to set one up, if only to avoid torturing HeatherW with constant SMSs anytime I had a thought of any magnitude.</span>
91 </div>
92
93 <div id="container">
94
95 <div class="blog">
96
97 <div id="menu">
98 <a href="http://www.geekymedia.com/archives/2004/06/index.html">« June 2004</a> |
99
100 <a href="http://www.geekymedia.com/">Main</a>
101
102 </div>
103
104 </div>
105
106 rizwank 1.1 <div class="blog">
107
108 <!--
109 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
110 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
111 xmlns:dc="http://purl.org/dc/elements/1.1/">
112 <rdf:Description
113 rdf:about="http://www.geekymedia.com/archives/2004/09/index.html#000360"
114 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/354"
115 dc:title="Bargain Websites"
116 dc:identifier="http://www.geekymedia.com/archives/2004/09/index.html#000360"
117 dc:subject="Linkage"
118 dc:description="http://www.dealsites.net/ http://morestuff4less.com/ http://www.dealsontheweb.com/ ipod CAR CHARGER http://www.macresq.com//store/detail.php?prodID=P009518 http://www.spoofee.com/forums/archive/index.php/t-1180.html http://www.retailretreat.com/index.php?POSTNUKESID=dee9ec901110f73a8c3940ba407f8d00 http://devsdeals.com/index.php?POSTNUKESID=9f9b9f167439c245423abe31a1176abe http://dealnews.com/ http://www.dealmein.net/ http://www.xpbargains.com/ http://www.freeafterrebate.info/ http://www.dealsontheweb.com/ http://www.dealuniversity.com/index.php http://bensbargains.net/..."
119 dc:creator="Rizwank"
120 dc:date="2004-09-08T00:52:36-08:00" />
121 </rdf:RDF>
122 -->
123
124
125 <h2 class="date">September 08, 2004</h2>
126
127 rizwank 1.1
128 <div class="blogbody">
129 <a name="000360"></a>
130 <?php
131
132 // record the referer
133 if ($my_ip !== $remote_ip) {
134 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (360, '$referer', '', $time)" );
135 }
136
137 // get the no. of times this entry has been read
138 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=360' );
139 $row = mysql_fetch_row( $rs );
140 $hits = $row[0];
141
142 ?>
143 <h3 class="title">Bargain Websites</h3>
144
145 <p> <table align="left"><tr valign="bottom"><td>
146 <p style="font-size:16pt"><b>
147 h</b>
148 rizwank 1.1 </p>
149 </td></tr></table>
150 ttp://www.dealsites.net/<br />
151 http://morestuff4less.com/<br />
152 http://www.dealsontheweb.com/<br />
153 ipod <span class="caps">CAR CHARGER</span> http://www.macresq.com//store/detail.php?prodID=P009518<br />
154 http://www.spoofee.com/forums/archive/index.php/t-1180.html<br />
155 http://www.retailretreat.com/index.php?POSTNUKESID=dee9ec901110f73a8c3940ba407f8d00<br />
156 http://devsdeals.com/index.php?POSTNUKESID=9f9b9f167439c245423abe31a1176abe<br />
157 http://dealnews.com/<br />
158 http://www.dealmein.net/<br />
159 http://www.xpbargains.com/<br />
160 http://www.freeafterrebate.info/<br />
161 http://www.dealsontheweb.com/<br />
162 http://www.dealuniversity.com/index.php<br />
163 http://bensbargains.net/</p>
164
165
166
167
168
169 rizwank 1.1
170 <div class="posted">
171 <div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script> at <a href="http://www.geekymedia.com/archives/2004/09/index.html#000360" title="Permanent Link to this Post.">12:52 AM</a><?php
172 if ($hits) {
173 print " | Read ";
174 echo "$hits";
175 print " time";
176 if($hits != 1) echo 's';
177 }
178 ?>
179 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=360" onclick="OpenComments(this.href); return false">Comments (0)</a>
180
181 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=360" onclick="OpenTrackback(this.href); return false">TrackBack</a>
182
183 </div>
184
185 </div>
186 <?php
187
188 // display the list of referers
189 echo '<div class="sidetitle">Referrers</div>', "\n";
190 rizwank 1.1 echo '<div class="side">', "\n";
191
192 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=360 GROUP BY referer ORDER BY count DESC, title';
193
194 $rs = mysql_query( $sql );
195 $n = 0;
196
197 while( $row = mysql_fetch_assoc( $rs ) ) {
198 $referer1 = $row['referer'];
199 $title = $row['title'];
200 $count = $row['count'];
201 $search = $row['search'];
202
203 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
204 $n++;
205 echo '<a href="', $referer1, '" target="_blank">';
206 echo $title . "</a> [" . $count . "]<br />\n";
207 }
208 }
209
210 if (!($n)) {
211 rizwank 1.1 echo "No referrals yet<br />";
212 }
213 else {
214 echo "<br />\n";
215 echo 'referrers [referrals]<br />';
216 }
217 echo '</div>';
218
219 echo "<div class='sidetitle'>Search Terms</div>\n";
220 echo "<div class='side'>";
221
222 $rs = mysql_query( $sql );
223 $n = 0;
224
225 while( $row = mysql_fetch_assoc( $rs ) ) {
226 $query = '';
227
228 $referer1 = $row['referer'];
229 $title = $row['title'];
230 $count = $row['count'];
231 $search = $row['search'];
232 rizwank 1.1
233 if ($search == 1) {
234 $n++;
235 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
236 echo $query . ' [' . $count . ']' . "<br />\n";
237 }
238 }
239
240 if (!($n)) { echo "No search terms yet<br />"; }
241 else { echo "<br />search terms [hits]"; }
242 echo "</div>";
243 ?>
244
245
246
247 </div>
248 </div>
249 <?php
250 //Change the following to your email address
|
252 rizwank 1.1
253 if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
254 {
255 mail($email, "Googlebot detected",
256 "Google has crawled : ".$_SERVER['REQUEST_URI']);
257 }
258 ?>
259 <br>
260 <php
261 $rs = mysql_query( "SELECT * FROM mt_entryhits" );
262 $deletetime = time() - (60 * 60 * 24);
263 mysql_query( "DELETE FROM mt_entryhits WHERE time < $deletetime and entry_id = 0" );
264
265 while ($row = mysql_fetch_assoc($rs)) {
266 if ($referer == $row['referer']) {
267 $title = $row['title'];
268 }
269 }
270
271 if (($title == '') || (strpos($title,'ttp://')) && ($referer !== '')) {
272 if ($title1 = getquery($referer)) {
273 rizwank 1.1 $title = addslashes($title1);
274 $search = 1;
275 }
276 else { $search = 0; }
277 if (!($search)) { $title = addslashes(URLHelper::getTitle($referer)); }
278 if (strpos($referer,'encquery')) {
279 $title = addslashes(substr($title,26,-2));
280 $search = 1;
281 }
282 if (strpos($referer,'info.dogpl')) {
283 $title = substr($title,21);
284 $search = 1;
285 }
286 if ((trim($title) == '-') || (trim($title) === '')) { $title = $referer; }
287 if (!($search) && (strlen(trim($title)) > 45)) {$title = substr($title,0,42) . "..."; }
288 else if (trim(strlen($title)) > 52) { $title = substr($title,0,49) . "..."; }
289 }
290
291 mysql_query( "UPDATE mt_entryhits SET title='$title', search=$search WHERE referer='$referer'" );
292
293 function getquery($ref){
294 rizwank 1.1 $queries = array("search=", "epq=", "p=", "qkw=", "q=", "query=", "va=", "qry=", "userQuery=", "searchfor=", "question=", "sb=");
295
296 while(list($key,$val)=each($queries)){
297 $pos = 0;//initialize
298 $pos = strpos($ref, $val);
299 if (strpos($ref,'encquery')) { $pos = 0; }
300 #$ret .= "($pos $val)";
301 if($pos > 0){
302 $endpos = strpos ($ref, "&", $pos);
303 if(trim($endpos) == ""){
304 $search = substr($ref, ($pos+strlen($val)), strlen($ref)-$pos);
305 }else{
306 $search = substr ($ref, ($pos+strlen($val)), ($endpos-$pos)-2);
307 }
308 $endpos = strpos ($search, "&");
309 if(trim($endpos)) {
310 $search = substr ($search, 0, $endpos);
311 }
312 $searched = trim($search);
313 $searched = str_replace("+", " ", $search);
314 $searched = str_replace("%2E", ".", $searched);
315 rizwank 1.1 $searched = str_replace("%2B", "+", $searched);
316 $searched = str_replace("%2b", "+", $searched);
317 $searched = str_replace("%22", '"', $searched);
318 $searched = str_replace("%22", '"', $searched);
319 $searched = str_replace("%20", " ", $searched);
320 $searched = str_replace("%3F", "?", $searched);
321 $searched = str_replace("%28", "(", $searched);
322 $searched = str_replace("%27", "'", $searched);
323 $searched = str_replace("%3A", ":", $searched);
324 $searched = str_replace("%2C", ",", $searched);
325 $searched = str_replace("%24", "$", $searched);
326 $searched = str_replace("%21", "!", $searched);
327 $searched = str_replace("%5C", "\\", $searched);
328 $searched = str_replace("%2F", "/", $searched);
329 if(trim($searched) == ""){
330 $searched = substr($ref, $pos, strlen($ref)-$pos)."($endpos)";
331 }
332 }
333 }
334 if(trim($searched) !== "") {
335 return "$searched";
336 rizwank 1.1 }else{
337 return false;
338 }
339 }// end function
340
341 ?>
342
343
344 </body>
345 </html>
|