-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.php
500 lines (427 loc) · 21.7 KB
/
check.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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
<?php
//*********************************************************************
// Marktplaats Checker (c) 2006-2013 Matthijs Draijer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//*********************************************************************
include ("../general_include/general_config.php");
include ("../general_include/shared_functions.php");
include ("../general_include/class.phpmailer.php");
include ("include/inc_config_general.php");
include ("lng/language_$Language.php");
include ("include/inc_functions.php");
$publicPage = true;
include ("include/inc_head.php");
setlocale(LC_ALL, 'nl_NL');
if(isset($_REQUEST['forcedID'])) {
$Termen = array($_REQUEST['forcedID']);
$Checken = true;
} else {
$Termen = getZoekTermen('', date("w"), date("H"), 1);
}
$debug = 1;
if($Checken) {
foreach($Termen as $term) {
# Alle advertenties inactief zetten.
# Advertenties die in deze run gevonden worden, worden weer actief gezet
makeAdsInactive($term);
# Initialiseren van verschillende variabelen
$teller_n = $teller_c = $teller_b = 0;
$PlainMessage = $PlainItem = $HTMLItem = $HTMLMessage = $Subjects = $foundIDs = array();
$p = 1;
$reclame = '';
$extraWitregel = false;
$nextPage = true;
# Zoek data van de huidige zoekopdracht op
$ZoekData = getZoekData($term);
$UserData = getUserData($ZoekData['user']);
$rss = $UserData['RSS'];
$URL = $ZoekData['URL'];
if($URL == '') $URL = getURL($term);
//$URL = addPCtoURL($URL, $UserData['postcode']);
//$URL = addLimit2URL($URL, 100);
//$URL .= $URL."&sortBy=SortIndex";
# Als er een mail verstuurd moet worden, mail initialiseren
if($rss == 0 OR $rss == 2) {
$PlainHeader = "";
$HTMLHeader = "<!-- Deze pagina is onderdeel van $ScriptTitle $Version gemaakt door Matthijs Draijer -->\n\n";
$HTMLHeader .= "<html>\n";
$HTMLHeader .= "<head>\n";
$HTMLHeader .= " <meta http-equiv='Content-Type' content='text/html;charset=ISO-8859-1'>\n";
$HTMLHeader .= " <title>$ScriptTitle $Version</title>\n";
$HTMLHeader .= " <meta name='viewport' content='width=device-width, initial-scale=1'>\n";
$HTMLHeader .= " <style>\n";
$HTMLHeader .= " *{ box-sizing: border-box; }\n";
$HTMLHeader .= " body { background-color:#ECE6D4; font-family: Verdana, Arial; color: #2D476D; font-size: 13px; }\n";
$HTMLHeader .= " .advertentie_blok { width: 480px; background-color:#EAEAEA; margin: auto; border: solid; border-color: #636367; border-width: 1; padding: 10px; margin-bottom:15px; }\n"; $HTMLHeader .= " .add_titel { font-size: 13px; }\n";
$HTMLHeader .= " .add_seller { font-size: 13px; }\n";
$HTMLHeader .= " .add_location { font-size: 13px; }\n";
$HTMLHeader .= " .add_status { font-size: 13px; }\n";
$HTMLHeader .= " .add_transport { font-size: 13px; }\n";
$HTMLHeader .= " .add_information { font-size: 13px; float:right; padding-top: 5px; padding-bottom: 5px; }\n";
$HTMLHeader .= " .add_price { font-size: 13px; font-weight: bold; }\n";
$HTMLHeader .= " .add_descr { float: none; font-size: 13px; }\n";
$HTMLHeader .= " .add_fotos { padding-top: 10px; column-count: 3; }\n";
$HTMLHeader .= " .add_foto { padding-bottom: 5px; margin: auto; }\n";
$HTMLHeader .= " .a_titel { font-size: 13px; color: #A80000; font-weight: bold; text-decoration: none; }\n";
$HTMLHeader .= " .a_titel:hover { text-decoration: underline; }\n";
$HTMLHeader .= " .a_seller { font-size: 13px; color: #A80000; font-style: italic; text-decoration: none; }\n";
$HTMLHeader .= " .a_seller:hover { text-decoration: underline; }\n";
$HTMLHeader .= " .a_location { font-size: 13px; color: #A80000; text-decoration: none; }\n";
$HTMLHeader .= " .a_location:hover { text-decoration: underline; }\n";
$HTMLHeader .= " @media screen and (max-width:500px) {.advertentie_blok { width: 100%; } .add_fotos { column-count: 1; } }\n";
$HTMLHeader .= " </style>";
$HTMLHeader .= "</head>\n";
$HTMLHeader .= "</head>\n";
$HTMLHeader .= "<body>\n";
}
# Zolang er nog volgende pagina is moet er door gegaan worden met checken.
while($nextPage) {
# Initialiseren van de hele bende
set_time_limit(30);
$newFound = false;
$inhoud = file_get_contents(addPage2URL($URL,$p));
$teller_p = 0;
# Alleen de relevante advertenties inlezen
$string = getString('<script id="__NEXT_DATA__" type="application/json">', '</script>', $inhoud, 0);
$json = json_decode($string[0], true);
# Array maken met losse advertenties
$listings = $json['props']['pageProps']['searchRequestAndResponse']['listings'];
$maximum = (count($listings)-1);
# Bij debuggen even laten zien welke pagina wordt bekeken
if($debug != 0) echo "<h2><a href='". addPage2URL($URL,$p) ."'>pagina $p</a></h2>\n";
# Bij ontwikkelen hoeven niet alle advertenties doorlopen te worden.
# 15 zijn voldoende
if($debug == 2) {
echo "URL : $URL<br>\nMaximum : $maximum<br>\n<br>\n";
if($maximum > 5) $maximum = 5;
}
# Doorloop alle advertenties op de pagina
for($i=0 ; $i <= $maximum ; $i++) {
$opnemenInMail = true;
$advertentie = $listings[$i];
$marktplaatsID = substr($advertentie['itemId'], 1);
# Bij ontwikkelen de ruwe tekst laten zien
if($debug == 2) {
echo '<hr>';
echo '[$i = '. $i .']<br>';
echo showArray('', $advertentie).'<br>';
}
# Alleen als er een plaatsnaam bekend is moet die geprocesed worden.
# Zonder plaatsnaam is het vaak een webshop of andere ongein
# Hetzelfde geld voor een advertentie die nog niet gevonden is deze batch
if(isset($advertentie['location']['cityName']) AND !in_array($marktplaatsID, $foundIDs)) {
$newFound = true;
$foundIDs[] = $marktplaatsID;
$changedTitle = $changedPrijs = $changedData = $changedTransport = $changedStatus = $newItem = false;
$basicData['status'] = $basicData['transport'] = $basicData['picture'] = '';
$basicData['key'] = $marktplaatsID;
$basicData['URL'] = $advertentie['vipUrl'];
$basicData['title'] = $advertentie['title'];
$basicData['descr_short'] = $advertentie['description'];
$basicData['price'] = $advertentie['priceInfo']['priceCents'];
$basicData['plaats'] = $advertentie['location']['cityName'];
//$basicData['provincie'] = $advertentie['location']['countryName'];
$basicData['afstand'] = $advertentie['location']['distanceMeters'];
if(isset($advertentie['attributes'][0]) AND $advertentie['attributes'][0]['key'] == 'condition') $basicData['status'] = $advertentie['attributes'][0]['value'];
if(isset($advertentie['attributes'][1]) AND $advertentie['attributes'][1]['key'] == 'condition') $basicData['status'] = $advertentie['attributes'][1]['value'];
if(isset($advertentie['attributes'][0]) AND $advertentie['attributes'][0]['key'] == 'delivery') $basicData['transport'] = $advertentie['attributes'][0]['value'];
if(isset($advertentie['attributes'][1]) AND $advertentie['attributes'][1]['key'] == 'delivery') $basicData['transport'] = $advertentie['attributes'][1]['value'];
if(isset($advertentie['imageUrls'])) $basicData['picture'] = implode("|", $advertentie['imageUrls']);
$basicData['URL_short'] = 'https://link.marktplaats.nl/'. $advertentie['itemId'];
$basicData['price_add'] = $advertentie['priceInfo']['priceType'];
$basicData['date'] = strtotime($advertentie['date']);
//$detailData['visits'] = formatString($bezoeken[0]);
$basicData['verkoper'] = $advertentie['sellerInformation']['sellerName'];
$basicData['verkoper_id'] = $advertentie['sellerInformation']['sellerId'];
# Als hij nog niet bekend is, moet er verder gezocht worden
if(!NewItem($basicData['key'], $term)) {
$oldData = getPageDataByMarktplaatsID($basicData['key'], $term);
# Wijziging in titel
if(urldecode($oldData['title']) != $basicData['title']) {
$changedTitle = true;
$changedData = true;
}
# Wijziging in prijs
if(formatPrice($oldData['prijs'], false) != formatPrice($basicData['price'], false)) {
$changedPrijs = true;
$changedData = true;
}
# Wijziging in transport
if($basicData['transport'] != '' AND $oldData['transport'] != $basicData['transport']) {
//echo $basicData['key']. ' van |'. $oldData['transport'] .'| naar |'. $basicData['transport'] .'|';
$changedTransport = true;
$changedData = true;
}
# Wijziging in status
if($basicData['status'] != '' AND $oldData['status'] != $basicData['status']) {
$changedStatus = true;
$changedData = true;
}
} else {
$newItem = true;
}
# Doe een 1ste check of deze op basis van prijs moet worden opgenomen in de mail
if(($ZoekData['pmin'] != '' AND $ZoekData['pmin'] != '0') OR ($ZoekData['pmax'] != '' AND $ZoekData['pmax'] != '0')) {
$opnemenInMail = false;
# Bij gereserveerd moet er gecheckt worden met de oude prijs
# niet de huidige, die staat op -1
if($data['price_add'] == 'RESERVED' AND $changedPrijs) {
$priceToCheck = $oldData['prijs'];
} else {
$priceToCheck = $basicData['price'];
}
if($ZoekData['pmin'] != '') {
if($ZoekData['pmax'] != '') {
if($priceToCheck > (100*$ZoekData['pmin']) AND $priceToCheck < (100*$ZoekData['pmax'])) {
$opnemenInMail = true;
}
} elseif($priceToCheck > (100*$ZoekData['pmin'])) {
$opnemenInMail = true;
}
}
if($ZoekData['pmax'] != '') {
if($priceToCheck < (100*$ZoekData['pmin'])) {
$opnemenInMail = true;
}
}
}
# Bij een nieuwe of gewijzigde advertenties moet de pagina van de advertentie worden ingelezen
if(($newItem OR $changedData) AND $opnemenInMail) {
# Er zijn verschillende soorten advertenties, daar wordt in de functie onderscheid tussen gemaakt
$detailData = getAdvancedMarktplaatsData('https://www.marktplaats.nl'.$basicData['URL']);
$data = array_merge($basicData, $detailData);
# Staat de coordinaten in de advertentie of moet er even worden gezocht
if($detailData['long'] != '' AND $detailData['lat'] != '') {
$coord = array($detailData['lat'], $detailData['long']);
} else {
$coord = getCoordinates('', '', $data['plaats']);
}
$afstand = getDistance($UserData['coord'], $coord);
$data['afstand'] = round($afstand/1000);
# Doe een 2de check of deze op basis van afstand moet worden opgenomen in de mail
if(($ZoekData['dmin'] != '' AND $ZoekData['dmin'] != '0') OR ($ZoekData['dmax'] != '' AND $ZoekData['dmax'] != '0')) {
$opnemenInMail = false;
if($ZoekData['dmin'] != '') {
if($ZoekData['dmax'] != '') {
if($afstand > (1000*$ZoekData['dmin']) AND $afstand < (1000*$ZoekData['dmax'])) {
$opnemenInMail = true;
}
} elseif($afstand > (1000*$ZoekData['dmin'])) {
$opnemenInMail = true;
}
}
if($ZoekData['dmax'] != '') {
if($afstand < (1000*$ZoekData['dmax'])) {
$opnemenInMail = true;
}
}
}
} else {
$data = $basicData;
}
# Bij ontwikkelen de losse data laten zien
if($debug == 2) {
echo '<hr>';
foreach($data as $key => $value) {
echo "<b>$key</b> -> $value<br>\n\n";
}
if($newItem) echo "Nieuw<br>\n";
if($changedData) echo "Gewijzigd<br>\n";
}
# Bij een nieuwe of gewijzigde advertentie tekst voor de mail opstellen
if(($newItem OR $changedData) AND $opnemenInMail) {
if($rss == 0 OR $rss == 2) {
$pictures = explode('|', $data['picture']);
$Item = $adInfo = array();
if($data['price_add'] == 'RESERVED') {
$currentPrice = "<b>Gereserveerd</b>";
} elseif($data['price_add'] == 'MIN_BID') {
$currentPrice = "<b>Bieden vanaf ". formatPrice($data['price']) ."</b>";
} elseif($data['price_add'] == 'SEE_DESCRIPTION') {
$currentPrice = "<b>Zie beschrijving</b>";
} elseif($data['price_add'] == 'FAST_BID') {
$currentPrice = "<b>Bieden</b>";
} else {
$currentPrice = "<b>". formatPrice($data['price']) ."</b>";
}
$PlainItem = strtoupper($data['title']). "\n";
$PlainItem .= makeTextBlock($data['descr_long'], 500). "\n";
$PlainItem .= $data['price']. "\n";
$PlainItem .= $data['plaats']. " (". $data['afstand'] ." km)\n";
$PlainItem .= $data['URL_short'];
# Metadata van de advertentie
$adInfo[] = "<span class='add_price'>". $currentPrice.($changedPrijs ? ' <s>'. formatPrice($oldData['prijs']) .'</s>' : '') ."</span>";
$adInfo[] = "<span class='add_seller'><a href='http://verkopers.marktplaats.nl/". $data['verkoper_id'] ."' class='a_seller'>". $data['verkoper'] ."</a></span>";
$adInfo[] = "<span class='add_location'><a href='http://maps.google.nl/maps?q=". $data['plaats'] ."%2C+Nederland&z=9' class='a_location'>". $data['plaats'] ."</a>". ($data['afstand'] > 0 ? ' ('. $data['afstand'] ." km)": '') ."</span>";
$adInfo[] = "<span class='add_online'>". strftime("%a %e %b %H:%M", $data['date']) ."</span>";
if(isset($data['status']) AND $data['status'] != '') $adInfo[] = "<span class='add_status'>".$data['status'].($changedStatus ? ' <s>'. $oldData['status'] .'</s>' : '')."</span>";
if(isset($data['transport']) AND $data['transport'] != '') $adInfo[] = "<span class='add_transport'>". $data['transport'].($changedTransport ? ' <s>'. $oldData['transport'] .'</s>' : '')."</span>";
# Eigenlijke data van de advertentie
$Item[] = '<!-- '. $data['key'] ." -->";
$Item[] = "<div class='advertentie_blok'>";
$Item[] = " <div class='add_titel'><a href='". $data['URL_short'] ."' class='a_titel'>". $data['title'] ."</a>". ($changedTitle ? ' <s>'. urldecode($oldData['title']) .'</s>' : '') . ($changedData ? ' (gewijzigd)' : '') ."</div>";
$Item[] = " <div class='add_information'>";
$Item[] = implode(' | ', $adInfo);
$Item[] = " </div>";
$Item[] = " <div class='add_descr'>". makeTextBlock($data['descr_long'], 500) ."</div>";
$Item[] = " <div class='add_fotos'>";
foreach($pictures as $key => $foto) {
$Item[] = " <img src='http:". str_replace('_#.', '_82.', $foto) ."' class='add_foto'>";
}
$Item[] = " </div>";
$Item[] = "</div>";
$PlainMessage[] = $PlainItem;
$HTMLMessage[] = implode("\n", $Item);
}
if($debug == 0) {
if($changedPrijs OR $changedTitle OR $changedStatus OR $changedTransport) {
$teller_c++;
} else {
$teller_n++;
}
}
} else {
$teller_b++;
}
$teller_p++;
if($debug == 1) {
echo $marktplaatsID. ": '<a href='". $basicData['URL_short'] ."'>". $data['title'] ."</a>'";
if($newItem) {
echo " is nieuw : ". strftime("%a %e %b %H:%M", $data['date']);
} elseif($changedTitle) {
echo " heeft gewijzigde titel";
} elseif($changedPrijs) {
echo " heeft gewijzigde prijs";
} elseif($changedStatus) {
echo " heeft gewijzigde status";
} elseif($changedTransport) {
echo " heeft gewijzigd transport";
} else {
echo " bestaat al";
}
if($opnemenInMail) {
echo ", gaat mee in de mail<br>\n";
} else {
echo ", valt buiten de criteria<br>\n";
}
}
$status = array(
'new' => $newItem,
'title' => $changedTitle,
'prijs' => $changedPrijs,
'status' => $changedStatus,
'transport' => $changedTransport
);
if($debug == 0) {
AddUpdateData($data, $term, $status);
}
} elseif(!isset($advertentie['location']['cityName']) AND $debug != 0) {
echo $marktplaatsID. ": geen plaatsnaam bekend<br>";
} elseif(in_array($marktplaatsID, $foundIDs) AND $debug != 0) {
echo $marktplaatsID. ": al eerder gevonden<br>";
}
}
# Zolang er een link is naar een volgende pagina doorgaan
# Om te voorkomen dat hij mogelijk eindeloos doorgaat een maximum ingebouwd van 10 pagina
if($newFound AND $p < 10) {
writeToLog($term, 'Einde pagina '. $p .' ('. $teller_p .' resultaten)');
$nextPage = true;
$p++;
} else {
$nextPage = false;
if($debug != 0) echo 'Laatste pagina, niks nieuws gevonden';
}
}
writeToLog($term, 'Totaal aantal gevonden resulaten : '. ($teller_c+$teller_n+$teller_b));
if($teller_n > 0 OR $teller_c > 0 OR $debug == 1) {
if($rss == 1 OR $rss == 2) {
makeRSSFeed($term, '');
writeToLog($term, 'RSS-feed geupdate');
}
if($rss == 0 OR $rss == 2) {
$PlainFooter = "\n";
$PlainFooter .= "$strCheckCommand : ". $ScriptRoot. "admin/edit.php?id=$term\n";
$PlainFooter .= "$strCheckResults : ". $URL;
$PlainFooter .= "\n\n";
$PlainFooter .= $ScriptTitle.' '.$Version ."\n";
$PlainFooter .= "© ". (date("Y") != 2006 ? '2006-' : ''). date("Y") ." Matthijs Draijer";
/*
$FooterText = " <table width=100%>\n";
$FooterText .= " <tr>\n";
$FooterText .= " <td align='left'><a href='". $ScriptRoot ."admin/edit.php?id=$term'>$strCheckCommand</a> | <a href='$URL'>$strCheckResults</a> | <a href='". $ScriptRoot ."admin/GoogleMaps.php?term=$term'>Google Maps</a> | <a href='". $ScriptRoot ."RSS/". $ZoekData['key'] .".xml'>RSS-feed</a></td>\n";
$FooterText .= " <td align='right'>© ". (date("Y") != 2006 ? '2006-' : ''). date("Y") ." <a href='mailto:Matthijs Draijer <hotscripts@draijer.org>?Subject=Opmerking over $ScriptTitle $Version'>Matthijs Draijer</a></td>\n";
$FooterText .= " </tr>\n";
$FooterText .= " </table>\n";
$HTMLFooter = "<tr>\n";
$HTMLFooter .= " <td> </td>\n";
$HTMLFooter .= "</tr>\n";
$HTMLFooter .= "<tr>\n";
$HTMLFooter .= " <td align='center'>". showBlock($FooterText) ."</td>\n";
$HTMLFooter .= "</tr>\n";
$HTMLFooter .= "</table>\n";
$HTMLFooter .= "</body>\n";
$HTMLFooter .= "</html>\n";
$HTMLFooter .= "\n\n<!-- Deze pagina is onderdeel van $ScriptTitle $Version gemaakt door Matthijs Draijer -->";
*/
$PlainMail = $PlainHeader . implode("\n\n--- --- --- --- ---\n\n", $PlainMessage) . $PlainFooter;
$HTMLFooter = "\n</body>\n";
$HTMLFooter .= "</html>";
$HTMLMail = $HTMLHeader;
$HTMLMail .= implode("\n\n", $HTMLMessage);
$HTMLMail .= $HTMLFooter;
if($debug == 0) {
if($teller_n != 0) {
$Subjects[] = $teller_n . " ". ($teller_n == 1 ? $strCheckItemNew : $strCheckItemsNew);
}
if($teller_c != 0) {
$Subjects[] = $teller_c . " ". ($teller_c == 1 ? $strCheckItemChanged : $strCheckItemsChanged);
}
$mail = new PHPMailer;
$mail->From = $ScriptMailAdress;
$mail->FromName = $ScriptTitle;
$mail->WordWrap = 90;
$mail->AddAddress($UserData['mailadres'], $UserData['naam']);
$mail->Subject = $SubjectPrefix . implode(' en ', $Subjects) ." $strCheckSubject '". getZoekString($term) ."'";
if($ZoekData['CC'] != '') {
$mail->AddCC($ZoekData['CC']);
}
if($UserData['HTML'] == 1) {
$mail->IsHTML(true);
$mail->Body = $HTMLMail;
$mail->AltBody = $PlainMail;
} else {
$mail->Body = $PlainMail;
}
if(!$mail->Send()) {
echo date("H:i") . " : $strMailError '". getZoekString($term) ."' ($term).<br>";
writeToLog($term, $strLogMailError . ' ('. $UserData['naam'] .')');
} else {
echo date("H:i") . " : $strMailOkay '". getZoekString($term) ."' ($term).<br>";
writeToLog($term, $strLogMailOkay . ' ('. $UserData['naam'] .')');
}
} else {
echo $HTMLMail;
echo $teller_p;
}
}
} else {
if($debug == 0) {
echo date("H:i") . " : $strCheckOkay '". getZoekString($term) ."' ($term).<br>";
writeToLog($term, $strLogChecked);
}
}
}
} else {
echo $strCheckNoCheck;
}
include ('include/inc_footer.php');
?>