A
download xtc_check_agent.inc.php
Language: PHP
License: GPL
Copyright: (c) 2002-2003 osCommerce(html_output.php,v 1.52 2003/03/19); www.oscommerce.com (c) 2003 nextcommerce (xtc_href_link.inc.php,v 1.3 2003/08/13); www.nextcommerce.org (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2003 XT-Commer
LOC: 319
Project Info
melponeme(xoopsbrasileiro)
Server: BerliOS
Type: cvs
...omercio\XBComercio_v1x\inc\
   .htaccess
   base64todec.inc.php
   changedatain.inc.php
   changedataout.inc.php
   create_coupon_code.inc.php
   dectobase64.inc.php
   tep_add_tax.inc.php
   ...ctivate_banners.inc.php
   xtc_add_tax.inc.php
   xtc_address_format.inc.php
   xtc_address_label.inc.php
   ...address_summary.inc.php
   ...array_to_string.inc.php
   xtc_banner_exists.inc.php
   xtc_break_string.inc.php
   xtc_browser_detect.inc.php
   ..._also_purchased.inc.php
   ..._categories_box.inc.php
   ...nufacturers_box.inc.php
   xtc_calculate_tax.inc.php
   xtc_check_agent.inc.php
   ...tegories_status.inc.php
   xtc_check_gzip.inc.php
   xtc_check_stock.inc.php
   ...tock_attributes.inc.php
   xtc_checkdate.inc.php
   xtc_collect_posts.inc.php
   ...nvert_linefeeds.inc.php
   xtc_count_cart.inc.php
   ...ss_book_entries.inc.php
   ...customer_orders.inc.php
   xtc_count_modules.inc.php
   ...payment_modules.inc.php
   ...cts_in_category.inc.php
   ...hipping_modules.inc.php
   ...create_password.inc.php
   ...te_random_value.inc.php
   ...te_sort_heading.inc.php
   ...currency_exists.inc.php
   ...stomer_greeting.inc.php
   xtc_date_long.inc.php
   xtc_date_short.inc.php
   xtc_db_close.inc.php
   xtc_db_connect.inc.php
   ...nnect_installer.inc.php
   xtc_db_data_seek.inc.php
   xtc_db_error.inc.php
   xtc_db_fetch_array.inc.php
   ...db_fetch_fields.inc.php
   xtc_db_free_result.inc.php
   xtc_db_input.inc.php
   xtc_db_insert_id.inc.php
   xtc_db_install.inc.php
   xtc_db_num_rows.inc.php
   xtc_db_output.inc.php
   xtc_db_perform.inc.php
   ...b_prepare_input.inc.php
   xtc_db_query.inc.php
   ...query_installer.inc.php
   xtc_db_select_db.inc.php
   ...test_connection.inc.php
   ...e_db_permission.inc.php
   xtc_delete_file.inc.php
   xtc_display_banner.inc.php
   ...splay_tax_value.inc.php
   ..._content_bullet.inc.php
   ...aw_box_contents.inc.php
   ...raw_box_heading.inc.php
   ..._checkbox_field.inc.php
   ...field_installer.inc.php
   xtc_draw_form.inc.php
   ...aw_hidden_field.inc.php
   ...field_installer.inc.php
   ...raw_input_field.inc.php
   ...field_installer.inc.php
   ..._password_field.inc.php
   ...field_installer.inc.php
   ..._pull_down_menu.inc.php
   ...raw_radio_field.inc.php
   ...field_installer.inc.php
   ...selection_field.inc.php
   ...field_installer.inc.php
   xtc_draw_separator.inc.php
   ..._textarea_field.inc.php
   ...ncrypt_password.inc.php
   xtc_error_message.inc.php
   xtc_exit.inc.php
   xtc_expire_banners.inc.php
   ...expire_specials.inc.php
   xtc_filesize.inc.php
   xtc_findTitle.inc.php
   ...format_filesize.inc.php
   xtc_format_price.inc.php
   ...price_graduated.inc.php
   ...mat_price_order.inc.php
   ...t_special_price.inc.php
   xtc_gdlib_check.inc.php
   ...dress_format_id.inc.php
   ..._all_get_params.inc.php
   ...ttributes_model.inc.php
   xtc_get_categories.inc.php
   xtc_get_countries.inc.php
   ..._with_iso_codes.inc.php
   ...et_country_list.inc.php
   ...et_country_name.inc.php
   ...rrencies_values.inc.php
   ...er_status_value.inc.php
   ...tomers_statuses.inc.php
   xtc_get_db_cache.inc.php
   xtc_get_download.inc.php
   xtc_get_ip_address.inc.php
   ...t_manufacturers.inc.php
   xtc_get_order_data.inc.php
   ...rent_categories.inc.php
   xtc_get_path.inc.php
   xtc_get_prid.inc.php
   ...et_product_path.inc.php
   ...attribute_price.inc.php
   ..._price_checkout.inc.php
   ...t_products_name.inc.php
   ..._products_price.inc.php
   ...s_special_price.inc.php
   ..._products_stock.inc.php
   xtc_get_qty.inc.php
   ...ing_status_name.inc.php
   ...ort_description.inc.php
   ..._products_price.inc.php
   ...t_subcategories.inc.php
   ...et_tax_class_id.inc.php
   ...tax_description.inc.php
   xtc_get_tax_rate.inc.php
   ..._rate_from_desc.inc.php
   ...op_level_domain.inc.php
   xtc_get_uprid.inc.php
   xtc_get_zone_code.inc.php
   xtc_get_zone_name.inc.php
   ..._account_update.inc.php
   xtc_gzip_output.inc.php
   ...y_subcategories.inc.php
   ...duct_attributes.inc.php
   ...hide_session_id.inc.php
   xtc_href_link.inc.php
   xtc_image.inc.php
   xtc_image_button.inc.php
   xtc_image_submit.inc.php
   xtc_in_array.inc.php
   xtc_is_leap_year.inc.php
   xtc_not_null.inc.php
   xtc_output_warning.inc.php
   ...e_category_path.inc.php
   ...nput_field_data.inc.php
   ...e_search_string.inc.php
   xtc_php_mail.inc.php
   xtc_precision.inc.php
   xtc_rand.inc.php
   xtc_random_name.inc.php
   xtc_random_select.inc.php
   xtc_read_cache.inc.php
   ...calculate_price.inc.php
   xtc_redirect.inc.php
   ...ove_non_numeric.inc.php
   xtc_round.inc.php
   ...w_number_format.inc.php
   ...t_banner_status.inc.php
   ..._status_upgrade.inc.php
   ...specials_status.inc.php
   xtc_set_time_limit.inc.php
   xtc_setcookie.inc.php
   ...ategory_content.inc.php
   xtc_sqlSafeString.inc.php
   xtc_string_to_int.inc.php
   ...unlink_temp_dir.inc.php
   ...ner_click_count.inc.php
   ...r_display_count.inc.php
   ...ate_whos_online.inc.php
   xtc_validate_email.inc.php
   ...lidate_password.inc.php
   xtc_word_count.inc.php
   xtc_write_cache.inc.php
   ...write_user_info.inc.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<?php
/* -----------------------------------------------------------------------------------------
   $Id: xtc_check_agent.inc.php,v 1.1 2004/07/13 23:48:15 mauriciolima Exp $

   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   Copyright (c) 2003 XT-Commerce
   -----------------------------------------------------------------------------------------
   based on:
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(html_output.php,v 1.52 2003/03/19); www.oscommerce.com
   (c) 2003     nextcommerce (xtc_href_link.inc.php,v 1.3 2003/08/13); www.nextcommerce.org

   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/


function xtc_check_agent()
{
if (CHECK_CLIENT_AGENT=='true') {
   $Robots = array (
   "antibot",
   "appie",
   "architext",
   "bjaaland",
   "digout4u",
   "echo",
   "fast-webcrawler",
   "ferret",
   "googlebot",
   "gulliver",
   "harvest",
   "htdig",
   "ia_archiver",
   "jeeves",
   "jennybot",
   "linkwalker",
   "lycos",
   "mercator",
   "moget",
   "muscatferret",
   "myweb",
   "netcraft",
   "nomad",
   "petersnews",
   "scooter",
   "slurp",
   "unlost_web_crawler",
   "voila",
   "voyager",
   "webbase",
   "weblayers",
   "wget",
   "wisenutbot",
   "acme.spider",
   "ahoythehomepagefinder",
   "alkaline",
   "arachnophilia",
   "aretha",
   "ariadne",
   "arks",
   "aspider",
   "atn.txt",
   "atomz",
   "auresys",
   "backrub",
   "bigbrother",
   "blackwidow",
   "blindekuh",
   "bloodhound",
   "brightnet",
   "bspider",
   "cactvschemistryspider",
   "cassandra",
   "cgireader",
   "checkbot",
   "churl",
   "cmc",
   "collective",
   "combine",
   "conceptbot",
   "coolbot",
   "core",
   "cosmos",
   "cruiser",
   "cusco",
   "cyberspyder",
   "deweb",
   "dienstspider",
   "digger",
   "diibot",
   "directhit",
   "dnabot",
   "download_express",
   "dragonbot",
   "dwcp",
   "e-collector",
   "ebiness",
   "eit",
   "elfinbot",
   "emacs",
   "emcspider",
   "esther",
   "evliyacelebi",
   "nzexplorer",
   "fdse",
   "felix",
   "fetchrover",
   "fido",
   "finnish",
   "fireball",
   "fouineur",
   "francoroute",
   "freecrawl",
   "funnelweb",
   "gama",
   "gazz",
   "gcreep",
   "getbot",
   "geturl",
   "golem",
   "grapnel",
   "griffon",
   "gromit",
   "hambot",
   "havindex",
   "hometown",
   "htmlgobble",
   "hyperdecontextualizer",
   "iajabot",
   "ibm",
   "iconoclast",
   "ilse",
   "imagelock",
   "incywincy",
   "informant",
   "infoseek",
   "infoseeksidewinder",
   "infospider",
   "inspectorwww",
   "intelliagent",
   "irobot",
   "iron33",
   "israelisearch",
   "javabee",
   "jbot",
   "jcrawler",
   "jobo",
   "jobot",
   "joebot",
   "jubii",
   "jumpstation",
   "katipo",
   "kdd",
   "kilroy",
   "ko_yappo_robot",
   "labelgrabber.txt",
   "larbin",
   "legs",
   "linkidator",
   "linkscan",
   "lockon",
   "logo_gif",
   "macworm",
   "magpie",
   "marvin",
   "mattie",
   "mediafox",
   "merzscope",
   "meshexplorer",
   "mindcrawler",
   "momspider",
   "monster",
   "motor",
   "mwdsearch",
   "netcarta",
   "netmechanic",
   "netscoop",
   "newscan-online",
   "nhse",
   "northstar",
   "occam",
   "octopus",
   "openfind",
   "orb_search",
   "packrat",
   "pageboy",
   "parasite",
   "patric",
   "pegasus",
   "perignator",
   "perlcrawler",
   "phantom",
   "piltdownman",
   "pimptrain",
   "pioneer",
   "pitkow",
   "pjspider",
   "pka",
   "plumtreewebaccessor",
   "poppi",
   "portalb",
   "puu",
   "python",
   "raven",
   "rbse",
   "resumerobot",
   "rhcs",
   "roadrunner",
   "robbie",
   "robi",
   "robofox",
   "robozilla",
   "roverbot",
   "rules",
   "safetynetrobot",
   "search_au",
   "searchprocess",
   "senrigan",
   "sgscout",
   "shaggy",
   "shaihulud",
   "sift",
   "simbot",
   "site-valet",
   "sitegrabber",
   "sitetech",
   "slcrawler",
   "smartspider",
   "snooper",
   "solbot",
   "spanner",
   "speedy",
   "spider_monkey",
   "spiderbot",
   "spiderline",
   "spiderman",
   "spiderview",
   "spry",
   "ssearcher",
   "suke",
   "suntek",
   "sven",
   "tach_bw",
   "tarantula",
   "tarspider",
   "techbot",
   "templeton",
   "teoma_agent1",
   "titin",
   "titan",
   "tkwww",
   "tlspider",
   "ucsd",
   "udmsearch",
   "urlck",
   "valkyrie",
   "victoria",
   "visionsearch",
   "vwbot",
   "w3index",
   "w3m2",
   "wallpaper",
   "wanderer",
   "wapspider",
   "webbandit",
   "webcatcher",
   "webcopy",
   "webfetcher",
   "webfoot",
   "weblinker",
   "webmirror",
   "webmoose",
   "webquest",
   "webreader",
   "webreaper",
   "websnarf",
   "webspider",
   "webvac",
   "webwalk",
   "webwalker",
   "webwatch",
   "whatuseek",
   "whowhere",
   "wired-digital",
   "wmir",
   "wolp",
   "wombat",
   "worm",
   "wwwc",
   "wz101",
   "xget",
   "awbot",
   "bobby",
   "boris",
   "bumblebee",
   "cscrawler",
   "daviesbot",
   "ezresult",
   "gigabot",
   "gnodspider",
   "internetseer",
   "justview",
   "linkbot",
   "linkchecker",
   "nederland.zoek",
   "perman",
   "pompos",
   "pooodle",
   "redalert",
   "shoutcast",
   "slysearch",
   "ultraseek",
   "webcompass",
   "yandex",
   "robot",
   "bot",
   "psbot",
   "crawl"
   );



   $botID = strtolower($_SERVER['HTTP_USER_AGENT']);
   $botID2 = strtolower(getenv("HTTP_USER_AGENT"));
   for ($i = 0; $i < count($Robots); $i++)
   {

      if (strstr($botID, $Robots[$i]) or strstr($botID2, $Robots[$i]))
      {
         return 1;
      }

   }
   return 0;
} else {
return 0;
}

}

?>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us