Social Media Share Buttons & Social Sharing Icons - Version 1.7.7

Version Description

  • Added more themed icon banners
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Media Share Buttons & Social Sharing Icons
Version 1.7.7
Comparing to
See all releases

Code changes from version 1.7.6 to 1.7.7

Files changed (73) hide show
  1. images/website_theme/Others.png +0 -0
  2. images/website_theme/agriculture.png +0 -0
  3. images/website_theme/american-football.png +0 -0
  4. images/website_theme/animals.png +0 -0
  5. images/website_theme/art-design.png +0 -0
  6. images/website_theme/automotives.png +0 -0
  7. images/website_theme/baseball.png +0 -0
  8. images/website_theme/beauty.png +0 -0
  9. images/website_theme/beer.png +0 -0
  10. images/website_theme/cat.png +0 -0
  11. images/website_theme/christianity.png +0 -0
  12. images/website_theme/communications.png +0 -0
  13. images/website_theme/construction.png +0 -0
  14. images/website_theme/cooking.png +0 -0
  15. images/website_theme/cricket.png +0 -0
  16. images/website_theme/database.png +0 -0
  17. images/website_theme/dinosaurs.png +0 -0
  18. images/website_theme/diy.png +0 -0
  19. images/website_theme/dogs.png +0 -0
  20. images/website_theme/drinking.png +0 -0
  21. images/website_theme/education.png +0 -0
  22. images/website_theme/family.png +0 -0
  23. images/website_theme/fantasy.png +0 -0
  24. images/website_theme/fashion.png +0 -0
  25. images/website_theme/finance.png +0 -0
  26. images/website_theme/fishing.png +0 -0
  27. images/website_theme/flags.png +0 -0
  28. images/website_theme/flowers.png +0 -0
  29. images/website_theme/fruits.png +0 -0
  30. images/website_theme/furniture.png +0 -0
  31. images/website_theme/gaming.png +0 -0
  32. images/website_theme/golf.png +0 -0
  33. images/website_theme/health.png +0 -0
  34. images/website_theme/history.png +0 -0
  35. images/website_theme/holidays.png +0 -0
  36. images/website_theme/horse.png +0 -0
  37. images/website_theme/hunting.png +0 -0
  38. images/website_theme/it.png +0 -0
  39. images/website_theme/jewelry.png +0 -0
  40. images/website_theme/law.png +0 -0
  41. images/website_theme/love.png +0 -0
  42. images/website_theme/martial-arts.png +0 -0
  43. images/website_theme/motorsports.png +0 -0
  44. images/website_theme/music.png +0 -0
  45. images/website_theme/naturegardening.png +0 -0
  46. images/website_theme/occult.png +0 -0
  47. images/website_theme/pets.png +0 -0
  48. images/website_theme/photography.png +0 -0
  49. images/website_theme/realestate.png +0 -0
  50. images/website_theme/religion.png +0 -0
  51. images/website_theme/science.png +0 -0
  52. images/website_theme/scifi.png +0 -0
  53. images/website_theme/sealife.png +0 -0
  54. images/website_theme/shoes.png +0 -0
  55. images/website_theme/shopping.png +0 -0
  56. images/website_theme/sky-diving.png +0 -0
  57. images/website_theme/snooker.png +0 -0
  58. images/website_theme/sports.png +0 -0
  59. images/website_theme/tech.png +0 -0
  60. images/website_theme/teeth.png +0 -0
  61. images/website_theme/tennis.png +0 -0
  62. images/website_theme/theatre.png +0 -0
  63. images/website_theme/toys.png +0 -0
  64. images/website_theme/travel.png +0 -0
  65. images/website_theme/vegetables.png +0 -0
  66. images/website_theme/video.png +0 -0
  67. images/website_theme/volleyball.png +0 -0
  68. libs/controllers/sfsi_buttons_controller.php +38 -3583
  69. libs/controllers/sfsi_class_theme_check.php +356 -0
  70. libs/sfsi_install_uninstall.php +1 -1
  71. readme.txt +5 -2
  72. themedata.csv +69 -0
  73. ultimate_social_media_icons.php +3 -2
images/website_theme/Others.png ADDED
Binary file
images/website_theme/agriculture.png ADDED
Binary file
images/website_theme/american-football.png ADDED
Binary file
images/website_theme/animals.png ADDED
Binary file
images/website_theme/art-design.png ADDED
Binary file
images/website_theme/automotives.png ADDED
Binary file
images/website_theme/baseball.png ADDED
Binary file
images/website_theme/beauty.png ADDED
Binary file
images/website_theme/beer.png ADDED
Binary file
images/website_theme/cat.png ADDED
Binary file
images/website_theme/christianity.png ADDED
Binary file
images/website_theme/communications.png ADDED
Binary file
images/website_theme/construction.png ADDED
Binary file
images/website_theme/cooking.png ADDED
Binary file
images/website_theme/cricket.png ADDED
Binary file
images/website_theme/database.png ADDED
Binary file
images/website_theme/dinosaurs.png ADDED
Binary file
images/website_theme/diy.png ADDED
Binary file
images/website_theme/dogs.png ADDED
Binary file
images/website_theme/drinking.png ADDED
Binary file
images/website_theme/education.png ADDED
Binary file
images/website_theme/family.png ADDED
Binary file
images/website_theme/fantasy.png ADDED
Binary file
images/website_theme/fashion.png ADDED
Binary file
images/website_theme/finance.png ADDED
Binary file
images/website_theme/fishing.png ADDED
Binary file
images/website_theme/flags.png ADDED
Binary file
images/website_theme/flowers.png ADDED
Binary file
images/website_theme/fruits.png ADDED
Binary file
images/website_theme/furniture.png ADDED
Binary file
images/website_theme/gaming.png ADDED
Binary file
images/website_theme/golf.png ADDED
Binary file
images/website_theme/health.png ADDED
Binary file
images/website_theme/history.png ADDED
Binary file
images/website_theme/holidays.png ADDED
Binary file
images/website_theme/horse.png ADDED
Binary file
images/website_theme/hunting.png ADDED
Binary file
images/website_theme/it.png ADDED
Binary file
images/website_theme/jewelry.png ADDED
Binary file
images/website_theme/law.png ADDED
Binary file
images/website_theme/love.png ADDED
Binary file
images/website_theme/martial-arts.png ADDED
Binary file
images/website_theme/motorsports.png ADDED
Binary file
images/website_theme/music.png ADDED
Binary file
images/website_theme/naturegardening.png ADDED
Binary file
images/website_theme/occult.png ADDED
Binary file
images/website_theme/pets.png ADDED
Binary file
images/website_theme/photography.png ADDED
Binary file
images/website_theme/realestate.png ADDED
Binary file
images/website_theme/religion.png ADDED
Binary file
images/website_theme/science.png ADDED
Binary file
images/website_theme/scifi.png ADDED
Binary file
images/website_theme/sealife.png ADDED
Binary file
images/website_theme/shoes.png ADDED
Binary file
images/website_theme/shopping.png ADDED
Binary file
images/website_theme/sky-diving.png ADDED
Binary file
images/website_theme/snooker.png ADDED
Binary file
images/website_theme/sports.png ADDED
Binary file
images/website_theme/tech.png ADDED
Binary file
images/website_theme/teeth.png ADDED
Binary file
images/website_theme/tennis.png ADDED
Binary file
images/website_theme/theatre.png ADDED
Binary file
images/website_theme/toys.png ADDED
Binary file
images/website_theme/travel.png ADDED
Binary file
images/website_theme/vegetables.png ADDED
Binary file
images/website_theme/video.png ADDED
Binary file
images/website_theme/volleyball.png ADDED
Binary file
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -875,3605 +875,60 @@ if(@!function_exists("sfsi_sanitize_hex_color"))
875
}
876
function sfsi_returningElement($element) {return $element[0];}
877
878
- add_action('wp_ajax_bannerOption','sfsi_bannerOption');
879
- function sfsi_bannerOption()
880
- {
881
- if(get_option("show_new_notification") == "yes")
882
- {
883
- $keywordFile = SFSI_DOCROOT."/All_english_words_better_list.csv";
884
- $keywordData = @file_get_contents($keywordFile);
885
- $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
886
-
887
- $keywordEnglish = array_map('array_filter', $keywordEnglish);
888
- $keywordEnglish = array_filter(array_map(sfsi_returningElement($element), $keywordEnglish));
889
-
890
- $domainname = sfsi_getdomain(site_url());
891
-
892
- if(preg_match("/(cat|cattery|catrescue|recuedcat|kitten|kitty|meow)/im", $domainname))
893
- {
894
- if(!empty($domainname))
895
- {
896
- $domainname = preg_replace('/catherine|catherines/i', '', $domainname);
897
- $explode = explode(".", $domainname);
898
- $domainname = @$explode[0];
899
- }
900
-
901
- $catflag = false;
902
-
903
- if(preg_match("/(cattery|catrescue|recuedcat|kitten|kitty|meow)/im", $domainname))
904
- {
905
- $catflag = true;
906
- }
907
- elseif(preg_match("/(cats)/im", $domainname))
908
- {
909
- $explode = explode("cats", $domainname);
910
- $left = $explode[0];
911
- $right = $explode[1];
912
-
913
- $leftcatflag = false;
914
- if(!empty($left))
915
- {
916
- $left = str_split($left);
917
-
918
- $matchKeyword = ''; $j = 0;
919
- for($i = (count($left)-1); $i >= 0; $i--)
920
- {
921
- $matchKeyword = $left[$i].$matchKeyword;
922
-
923
- if($j > 0)
924
- {
925
- if(in_array($matchKeyword, $keywordEnglish))
926
- {
927
- $leftcatflag = true;
928
- break;
929
- }
930
- else
931
- {
932
- continue;
933
- }
934
- }
935
- else
936
- {
937
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
938
- {
939
- $leftcatflag = true;
940
- break;
941
- }
942
- }
943
-
944
- $j++;
945
- }
946
- }
947
-
948
- $rightcatflag = false;
949
- if(!empty($right))
950
- {
951
- $right = str_split($right);
952
-
953
- $matchKeyword = '';
954
- for($i = 0; $i < count($right); $i++)
955
- {
956
- $matchKeyword .= $right[$i];
957
-
958
- if($i > 0)
959
- {
960
- if(in_array($matchKeyword, $keywordEnglish))
961
- {
962
- $rightcatflag = true;
963
- break;
964
- }
965
- else
966
- {
967
- continue;
968
- }
969
- }
970
- else
971
- {
972
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
973
- {
974
- $rightcatflag = true;
975
- break;
976
- }
977
- }
978
- }
979
- }
980
-
981
- if(empty($left) && empty($right))
982
- {
983
- $catflag = true;
984
- }
985
- else
986
- {
987
- if(!empty($left) && !empty($right))
988
- {
989
- if($rightcatflag && $leftcatflag)
990
- {
991
- $catflag = true;
992
- }
993
- }
994
- elseif(empty($left) && !empty($right))
995
- {
996
- if($rightcatflag)
997
- {
998
- $catflag = true;
999
- }
1000
- }
1001
- elseif(!empty($left) && empty($right))
1002
- {
1003
- if($leftcatflag)
1004
- {
1005
- $catflag = true;
1006
- }
1007
- }
1008
- }
1009
- }
1010
- elseif(preg_match("/(cat)/im", $domainname))
1011
- {
1012
- $explode = explode("cat", $domainname);
1013
- $left = $explode[0];
1014
- $right = $explode[1];
1015
-
1016
- $leftcatflag = false;
1017
- if(!empty($left))
1018
- {
1019
- $left = str_split($left);
1020
-
1021
- $matchKeyword = ''; $j = 0;
1022
- for($i = (count($left)-1); $i >= 0; $i--)
1023
- {
1024
- $matchKeyword = $left[$i].$matchKeyword;
1025
-
1026
- if($j > 0)
1027
- {
1028
- if(in_array($matchKeyword, $keywordEnglish))
1029
- {
1030
- $leftcatflag = true;
1031
- break;
1032
- }
1033
- else
1034
- {
1035
- continue;
1036
- }
1037
- }
1038
- else
1039
- {
1040
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1041
- {
1042
- $leftcatflag = true;
1043
- break;
1044
- }
1045
- }
1046
-
1047
- $j++;
1048
- }
1049
- }
1050
-
1051
- $rightcatflag = false;
1052
- if(!empty($right))
1053
- {
1054
- $right = str_split($right);
1055
-
1056
- $matchKeyword = '';
1057
- for($i = 0; $i < count($right); $i++)
1058
- {
1059
- $matchKeyword .= $right[$i];
1060
- if($i > 0)
1061
- {
1062
- if(in_array($matchKeyword, $keywordEnglish))
1063
- {
1064
- $rightcatflag = true;
1065
- break;
1066
- }
1067
- else
1068
- {
1069
- continue;
1070
- }
1071
- }
1072
- else
1073
- {
1074
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1075
- {
1076
- $rightcatflag = true;
1077
- break;
1078
- }
1079
- }
1080
- }
1081
- }
1082
-
1083
- if(empty($left) && empty($right))
1084
- {
1085
- $catflag = true;
1086
- }
1087
- else
1088
- {
1089
- if(!empty($left) && !empty($right))
1090
- {
1091
- if($rightcatflag && $leftcatflag)
1092
- {
1093
- $catflag = true;
1094
- }
1095
- }
1096
- elseif(empty($left) && !empty($right))
1097
- {
1098
- if($rightcatflag)
1099
- {
1100
- $catflag = true;
1101
- }
1102
- }
1103
- elseif(!empty($left) && empty($right))
1104
- {
1105
- if($leftcatflag)
1106
- {
1107
- $catflag = true;
1108
- }
1109
- }
1110
- }
1111
- }
1112
- }
1113
- elseif(preg_match("/(horse|equine|gallop|pony|ponies)/im", $domainname))
1114
- {
1115
- if(!empty($domainname))
1116
- {
1117
- $domainname = preg_replace('/horseengine|seahorses|seahorse|seapony|seaponies|horseengines|ponytail/i', '', $domainname);
1118
- $explode = explode(".", $domainname);
1119
- $domainname = @$explode[0];
1120
- }
1121
-
1122
- $horseflag = false;
1123
-
1124
- if(preg_match("/(equine|gallop)/im", $domainname))
1125
- {
1126
- $horseflag = true;
1127
- }
1128
- elseif(preg_match("/(horses)/im", $domainname))
1129
- {
1130
- $explode = explode("horses", $domainname);
1131
- $left = $explode[0];
1132
- $right = $explode[1];
1133
-
1134
- $lefthorseflag = false;
1135
- if(!empty($left))
1136
- {
1137
- $left = str_split($left);
1138
-
1139
- $matchKeyword = ''; $j = 0;
1140
- for($i = (count($left)-1); $i >= 0; $i--)
1141
- {
1142
- $matchKeyword = $left[$i].$matchKeyword;
1143
-
1144
- if($j > 0)
1145
- {
1146
- if(in_array($matchKeyword, $keywordEnglish))
1147
- {
1148
- $lefthorseflag = true;
1149
- break;
1150
- }
1151
- else
1152
- {
1153
- continue;
1154
- }
1155
- }
1156
- else
1157
- {
1158
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1159
- {
1160
- $lefthorseflag = true;
1161
- break;
1162
- }
1163
- }
1164
-
1165
- $j++;
1166
- }
1167
- }
1168
-
1169
- $righthorseflag = false;
1170
- if(!empty($right))
1171
- {
1172
- $right = str_split($right);
1173
-
1174
- $matchKeyword = '';
1175
- for($i = 0; $i < count($right); $i++)
1176
- {
1177
- $matchKeyword .= $right[$i];
1178
-
1179
- if($i > 0)
1180
- {
1181
- if(in_array($matchKeyword, $keywordEnglish))
1182
- {
1183
- $righthorseflag = true;
1184
- break;
1185
- }
1186
- else
1187
- {
1188
- continue;
1189
- }
1190
- }
1191
- else
1192
- {
1193
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1194
- {
1195
- $righthorseflag = true;
1196
- break;
1197
- }
1198
- }
1199
- }
1200
- }
1201
-
1202
- if(empty($left) && empty($right))
1203
- {
1204
- $horseflag = true;
1205
- }
1206
- else
1207
- {
1208
- if(!empty($left) && !empty($right))
1209
- {
1210
- if($righthorseflag && $lefthorseflag)
1211
- {
1212
- $horseflag = true;
1213
- }
1214
- }
1215
- elseif(empty($left) && !empty($right))
1216
- {
1217
- if($righthorseflag)
1218
- {
1219
- $horseflag = true;
1220
- }
1221
- }
1222
- elseif(!empty($left) && empty($right))
1223
- {
1224
- if($lefthorseflag)
1225
- {
1226
- $horseflag = true;
1227
- }
1228
- }
1229
- }
1230
- }
1231
- elseif(preg_match("/(horse)/im", $domainname))
1232
- {
1233
- $explode = explode("horse", $domainname);
1234
- $left = $explode[0];
1235
- $right = $explode[1];
1236
-
1237
- $lefthorseflag = false;
1238
- if(!empty($left))
1239
- {
1240
- $left = str_split($left);
1241
-
1242
- $matchKeyword = ''; $j = 0;
1243
- for($i = (count($left)-1); $i >= 0; $i--)
1244
- {
1245
- $matchKeyword = $left[$i].$matchKeyword;
1246
-
1247
- if($j > 0)
1248
- {
1249
- if(in_array($matchKeyword, $keywordEnglish))
1250
- {
1251
- $lefthorseflag = true;
1252
- break;
1253
- }
1254
- else
1255
- {
1256
- continue;
1257
- }
1258
- }
1259
- else
1260
- {
1261
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1262
- {
1263
- $lefthorseflag = true;
1264
- break;
1265
- }
1266
- }
1267
-
1268
- $j++;
1269
- }
1270
- }
1271
-
1272
- $righthorseflag = false;
1273
- if(!empty($right))
1274
- {
1275
- $right = str_split($right);
1276
-
1277
- $matchKeyword = '';
1278
- for($i = 0; $i < count($right); $i++)
1279
- {
1280
- $matchKeyword .= $right[$i];
1281
- if($i > 0)
1282
- {
1283
- if(in_array($matchKeyword, $keywordEnglish))
1284
- {
1285
- $righthorseflag = true;
1286
- break;
1287
- }
1288
- else
1289
- {
1290
- continue;
1291
- }
1292
- }
1293
- else
1294
- {
1295
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1296
- {
1297
- $righthorseflag = true;
1298
- break;
1299
- }
1300
- }
1301
- }
1302
- }
1303
-
1304
- if(empty($left) && empty($right))
1305
- {
1306
- $horseflag = true;
1307
- }
1308
- else
1309
- {
1310
- if(!empty($left) && !empty($right))
1311
- {
1312
- if($righthorseflag && $lefthorseflag)
1313
- {
1314
- $horseflag = true;
1315
- }
1316
- }
1317
- elseif(empty($left) && !empty($right))
1318
- {
1319
- if($righthorseflag)
1320
- {
1321
- $horseflag = true;
1322
- }
1323
- }
1324
- elseif(!empty($left) && empty($right))
1325
- {
1326
- if($lefthorseflag)
1327
- {
1328
- $horseflag = true;
1329
- }
1330
- }
1331
- }
1332
- }
1333
- elseif(preg_match("/(ponies)/im", $domainname))
1334
- {
1335
- $explode = explode("ponies", $domainname);
1336
- $left = $explode[0];
1337
- $right = $explode[1];
1338
-
1339
- $lefthorseflag = false;
1340
- if(!empty($left))
1341
- {
1342
- $left = str_split($left);
1343
-
1344
- $matchKeyword = ''; $j = 0;
1345
- for($i = (count($left)-1); $i >= 0; $i--)
1346
- {
1347
- $matchKeyword = $left[$i].$matchKeyword;
1348
-
1349
- if($j > 0)
1350
- {
1351
- if(in_array($matchKeyword, $keywordEnglish))
1352
- {
1353
- $lefthorseflag = true;
1354
- break;
1355
- }
1356
- else
1357
- {
1358
- continue;
1359
- }
1360
- }
1361
- else
1362
- {
1363
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1364
- {
1365
- $lefthorseflag = true;
1366
- break;
1367
- }
1368
- }
1369
-
1370
- $j++;
1371
- }
1372
- }
1373
-
1374
- $righthorseflag = false;
1375
- if(!empty($right))
1376
- {
1377
- $right = str_split($right);
1378
-
1379
- $matchKeyword = '';
1380
- for($i = 0; $i < count($right); $i++)
1381
- {
1382
- $matchKeyword .= $right[$i];
1383
-
1384
- if($i > 0)
1385
- {
1386
- if(in_array($matchKeyword, $keywordEnglish))
1387
- {
1388
- $righthorseflag = true;
1389
- break;
1390
- }
1391
- else
1392
- {
1393
- continue;
1394
- }
1395
- }
1396
- else
1397
- {
1398
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1399
- {
1400
- $righthorseflag = true;
1401
- break;
1402
- }
1403
- }
1404
- }
1405
- }
1406
-
1407
- if(empty($left) && empty($right))
1408
- {
1409
- $horseflag = true;
1410
- }
1411
- else
1412
- {
1413
- if(!empty($left) && !empty($right))
1414
- {
1415
- if($righthorseflag && $lefthorseflag)
1416
- {
1417
- $horseflag = true;
1418
- }
1419
- }
1420
- elseif(empty($left) && !empty($right))
1421
- {
1422
- if($righthorseflag)
1423
- {
1424
- $horseflag = true;
1425
- }
1426
- }
1427
- elseif(!empty($left) && empty($right))
1428
- {
1429
- if($lefthorseflag)
1430
- {
1431
- $horseflag = true;
1432
- }
1433
- }
1434
- }
1435
- }
1436
- elseif(preg_match("/(pony)/im", $domainname))
1437
- {
1438
- $explode = explode("pony", $domainname);
1439
- $left = $explode[0];
1440
- $right = $explode[1];
1441
-
1442
- $lefthorseflag = false;
1443
- if(!empty($left))
1444
- {
1445
- $left = str_split($left);
1446
-
1447
- $matchKeyword = ''; $j = 0;
1448
- for($i = (count($left)-1); $i >= 0; $i--)
1449
- {
1450
- $matchKeyword = $left[$i].$matchKeyword;
1451
-
1452
- if($j > 0)
1453
- {
1454
- if(in_array($matchKeyword, $keywordEnglish))
1455
- {
1456
- $lefthorseflag = true;
1457
- break;
1458
- }
1459
- else
1460
- {
1461
- continue;
1462
- }
1463
- }
1464
- else
1465
- {
1466
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1467
- {
1468
- $lefthorseflag = true;
1469
- break;
1470
- }
1471
- }
1472
-
1473
- $j++;
1474
- }
1475
- }
1476
-
1477
- $righthorseflag = false;
1478
- if(!empty($right))
1479
- {
1480
- $right = str_split($right);
1481
-
1482
- $matchKeyword = '';
1483
- for($i = 0; $i < count($right); $i++)
1484
- {
1485
- $matchKeyword .= $right[$i];
1486
- if($i > 0)
1487
- {
1488
- if(in_array($matchKeyword, $keywordEnglish))
1489
- {
1490
- $righthorseflag = true;
1491
- break;
1492
- }
1493
- else
1494
- {
1495
- continue;
1496
- }
1497
- }
1498
- else
1499
- {
1500
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1501
- {
1502
- $righthorseflag = true;
1503
- break;
1504
- }
1505
- }
1506
- }
1507
- }
1508
-
1509
- if(empty($left) && empty($right))
1510
- {
1511
- $horseflag = true;
1512
- }
1513
- else
1514
- {
1515
- if(!empty($left) && !empty($right))
1516
- {
1517
- if($righthorseflag && $lefthorseflag)
1518
- {
1519
- $horseflag = true;
1520
- }
1521
- }
1522
- elseif(empty($left) && !empty($right))
1523
- {
1524
- if($righthorseflag)
1525
- {
1526
- $horseflag = true;
1527
- }
1528
- }
1529
- elseif(!empty($left) && empty($right))
1530
- {
1531
- if($lefthorseflag)
1532
- {
1533
- $horseflag = true;
1534
- }
1535
- }
1536
- }
1537
- }
1538
- }
1539
- elseif(preg_match("/(tooth|dentist|teeth|dental)/im", $domainname))
1540
- {
1541
- if(!empty($domainname))
1542
- {
1543
- $domainname = preg_replace('/bluetooth|gadgetooth/i', '', $domainname);
1544
- $explode = explode(".", $domainname);
1545
- $domainname = @$explode[0];
1546
- }
1547
- $toothflag = false;
1548
-
1549
- if(preg_match("/(dentist|teeth|dental)/im", $domainname))
1550
- {
1551
- $toothflag = true;
1552
- }
1553
- elseif(preg_match("/(tooth)/im", $domainname))
1554
- {
1555
- $explode = explode("tooth", $domainname);
1556
- $left = $explode[0];
1557
- $right = $explode[1];
1558
-
1559
- $lefttoothflag = false;
1560
- if(!empty($left))
1561
- {
1562
- $left = str_split($left);
1563
-
1564
- $matchKeyword = ''; $j = 0;
1565
- for($i = (count($left)-1); $i >= 0; $i--)
1566
- {
1567
- $matchKeyword = $left[$i].$matchKeyword;
1568
-
1569
- if($j > 0)
1570
- {
1571
- if(in_array($matchKeyword, $keywordEnglish))
1572
- {
1573
- $lefttoothflag = true;
1574
- break;
1575
- }
1576
- else
1577
- {
1578
- continue;
1579
- }
1580
- }
1581
- else
1582
- {
1583
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1584
- {
1585
- $lefttoothflag = true;
1586
- break;
1587
- }
1588
- }
1589
-
1590
- $j++;
1591
- }
1592
- }
1593
-
1594
- $righttoothflag = false;
1595
- if(!empty($right))
1596
- {
1597
- $right = str_split($right);
1598
-
1599
- $matchKeyword = '';
1600
- for($i = 0; $i < count($right); $i++)
1601
- {
1602
- $matchKeyword .= $right[$i];
1603
- if($i > 0)
1604
- {
1605
- if(in_array($matchKeyword, $keywordEnglish))
1606
- {
1607
- $righttoothflag = true;
1608
- break;
1609
- }
1610
- else
1611
- {
1612
- continue;
1613
- }
1614
- }
1615
- else
1616
- {
1617
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1618
- {
1619
- $righttoothflag = true;
1620
- break;
1621
- }
1622
- }
1623
- }
1624
- }
1625
-
1626
- if(empty($left) && empty($right))
1627
- {
1628
- $toothflag = true;
1629
- }
1630
- else
1631
- {
1632
- if(!empty($left) && !empty($right))
1633
- {
1634
- if($righttoothflag && $lefttoothflag)
1635
- {
1636
- $toothflag = true;
1637
- }
1638
- }
1639
- elseif(empty($left) && !empty($right))
1640
- {
1641
- if($righttoothflag)
1642
- {
1643
- $toothflag = true;
1644
- }
1645
- }
1646
- elseif(!empty($left) && empty($right))
1647
- {
1648
- if($lefttoothflag)
1649
- {
1650
- $toothflag = true;
1651
- }
1652
- }
1653
- }
1654
- }
1655
- }
1656
- elseif(preg_match("/(brew|beer|brewery|oktoberfest|barley|beerfest|brewers|brewer|stout|malt)/im", $domainname))
1657
- {
1658
- if(!empty($domainname))
1659
- {
1660
- $domainname = preg_replace('/hebrew|malta/i', '', $domainname);
1661
- $explode = explode(".", $domainname);
1662
- $domainname = @$explode[0];
1663
- }
1664
- $beerflag = false;
1665
-
1666
- if(preg_match("/(beer|brewery|oktoberfest|barley|beerfest|brewers|brewer)/im", $domainname))
1667
- {
1668
- $beerflag = true;
1669
- }
1670
- elseif(preg_match("/(brew)/im", $domainname))
1671
- {
1672
- $explode = explode("brew", $domainname);
1673
- $left = $explode[0];
1674
- $right = $explode[1];
1675
-
1676
- $leftbeerflag = false;
1677
- if(!empty($left))
1678
- {
1679
- $left = str_split($left);
1680
-
1681
- $matchKeyword = ''; $j = 0;
1682
- for($i = (count($left)-1); $i >= 0; $i--)
1683
- {
1684
- $matchKeyword = $left[$i].$matchKeyword;
1685
-
1686
- if($j > 0)
1687
- {
1688
- if(in_array($matchKeyword, $keywordEnglish))
1689
- {
1690
- $leftbeerflag = true;
1691
- break;
1692
- }
1693
- else
1694
- {
1695
- continue;
1696
- }
1697
- }
1698
- else
1699
- {
1700
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1701
- {
1702
- $leftbeerflag = true;
1703
- break;
1704
- }
1705
- }
1706
-
1707
- $j++;
1708
- }
1709
- }
1710
-
1711
- $rightbeerflag = false;
1712
- if(!empty($right))
1713
- {
1714
- $right = str_split($right);
1715
-
1716
- $matchKeyword = '';
1717
- for($i = 0; $i < count($right); $i++)
1718
- {
1719
- $matchKeyword .= $right[$i];
1720
- if($i > 0)
1721
- {
1722
- if(in_array($matchKeyword, $keywordEnglish))
1723
- {
1724
- $rightbeerflag = true;
1725
- break;
1726
- }
1727
- else
1728
- {
1729
- continue;
1730
- }
1731
- }
1732
- else
1733
- {
1734
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1735
- {
1736
- $rightbeerflag = true;
1737
- break;
1738
- }
1739
- }
1740
- }
1741
- }
1742
-
1743
- if(empty($left) && empty($right))
1744
- {
1745
- $beerflag = true;
1746
- }
1747
- else
1748
- {
1749
- if(!empty($left) && !empty($right))
1750
- {
1751
- if($rightbeerflag && $leftbeerflag)
1752
- {
1753
- $beerflag = true;
1754
- }
1755
- }
1756
- elseif(empty($left) && !empty($right))
1757
- {
1758
- if($rightbeerflag)
1759
- {
1760
- $beerflag = true;
1761
- }
1762
- }
1763
- elseif(!empty($left) && empty($right))
1764
- {
1765
- if($leftbeerflag)
1766
- {
1767
- $beerflag = true;
1768
- }
1769
- }
1770
- }
1771
- }
1772
- elseif(preg_match("/(stout)/im", $domainname))
1773
- {
1774
- $explode = explode("stout", $domainname);
1775
- $left = $explode[0];
1776
- $right = $explode[1];
1777
-
1778
- $leftbeerflag = false;
1779
- if(!empty($left))
1780
- {
1781
- $left = str_split($left);
1782
-
1783
- $matchKeyword = ''; $j = 0;
1784
- for($i = (count($left)-1); $i >= 0; $i--)
1785
- {
1786
- $matchKeyword = $left[$i].$matchKeyword;
1787
-
1788
- if($j > 0)
1789
- {
1790
- if(in_array($matchKeyword, $keywordEnglish))
1791
- {
1792
- $leftbeerflag = true;
1793
- break;
1794
- }
1795
- else
1796
- {
1797
- continue;
1798
- }
1799
- }
1800
- else
1801
- {
1802
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1803
- {
1804
- $leftbeerflag = true;
1805
- break;
1806
- }
1807
- }
1808
-
1809
- $j++;
1810
- }
1811
- }
1812
-
1813
- $rightbeerflag = false;
1814
- if(!empty($right))
1815
- {
1816
- $right = str_split($right);
1817
-
1818
- $matchKeyword = '';
1819
- for($i = 0; $i < count($right); $i++)
1820
- {
1821
- $matchKeyword .= $right[$i];
1822
- if($i > 0)
1823
- {
1824
- if(in_array($matchKeyword, $keywordEnglish))
1825
- {
1826
- $rightbeerflag = true;
1827
- break;
1828
- }
1829
- else
1830
- {
1831
- continue;
1832
- }
1833
- }
1834
- else
1835
- {
1836
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1837
- {
1838
- $rightbeerflag = true;
1839
- break;
1840
- }
1841
- }
1842
- }
1843
- }
1844
-
1845
- if(empty($left) && empty($right))
1846
- {
1847
- $beerflag = true;
1848
- }
1849
- else
1850
- {
1851
- if(!empty($left) && !empty($right))
1852
- {
1853
- if($rightbeerflag && $leftbeerflag)
1854
- {
1855
- $beerflag = true;
1856
- }
1857
- }
1858
- elseif(empty($left) && !empty($right))
1859
- {
1860
- if($rightbeerflag)
1861
- {
1862
- $beerflag = true;
1863
- }
1864
- }
1865
- elseif(!empty($left) && empty($right))
1866
- {
1867
- if($leftbeerflag)
1868
- {
1869
- $beerflag = true;
1870
- }
1871
- }
1872
- }
1873
- }
1874
- elseif(preg_match("/(malt)/im", $domainname))
1875
- {
1876
- $explode = explode("malt", $domainname);
1877
- $left = $explode[0];
1878
- $right = $explode[1];
1879
-
1880
- $leftbeerflag = false;
1881
- if(!empty($left))
1882
- {
1883
- $left = str_split($left);
1884
-
1885
- $matchKeyword = ''; $j = 0;
1886
- for($i = (count($left)-1); $i >= 0; $i--)
1887
- {
1888
- $matchKeyword = $left[$i].$matchKeyword;
1889
-
1890
- if($j > 0)
1891
- {
1892
- if(in_array($matchKeyword, $keywordEnglish))
1893
- {
1894
- $leftbeerflag = true;
1895
- break;
1896
- }
1897
- else
1898
- {
1899
- continue;
1900
- }
1901
- }
1902
- else
1903
- {
1904
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1905
- {
1906
- $leftbeerflag = true;
1907
- break;
1908
- }
1909
- }
1910
-
1911
- $j++;
1912
- }
1913
- }
1914
-
1915
- $rightbeerflag = false;
1916
- if(!empty($right))
1917
- {
1918
- $right = str_split($right);
1919
-
1920
- $matchKeyword = '';
1921
- for($i = 0; $i < count($right); $i++)
1922
- {
1923
- $matchKeyword .= $right[$i];
1924
- if($i > 0)
1925
- {
1926
- if(in_array($matchKeyword, $keywordEnglish))
1927
- {
1928
- $rightbeerflag = true;
1929
- break;
1930
- }
1931
- else
1932
- {
1933
- continue;
1934
- }
1935
- }
1936
- else
1937
- {
1938
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
1939
- {
1940
- $rightbeerflag = true;
1941
- break;
1942
- }
1943
- }
1944
- }
1945
- }
1946
-
1947
- if(empty($left) && empty($right))
1948
- {
1949
- $beerflag = true;
1950
- }
1951
- else
1952
- {
1953
- if(!empty($left) && !empty($right))
1954
- {
1955
- if($rightbeerflag && $leftbeerflag)
1956
- {
1957
- $beerflag = true;
1958
- }
1959
- }
1960
- elseif(empty($left) && !empty($right))
1961
- {
1962
- if($rightbeerflag)
1963
- {
1964
- $beerflag = true;
1965
- }
1966
- }
1967
- elseif(!empty($left) && empty($right))
1968
- {
1969
- if($leftbeerflag)
1970
- {
1971
- $beerflag = true;
1972
- }
1973
- }
1974
- }
1975
- }
1976
- }
1977
- elseif(preg_match("/(camera|photography|snapshot|photo|snap)/im", $domainname))
1978
- {
1979
- if(!empty($domainname))
1980
- {
1981
- $domainname = preg_replace('/cameracivile|cameradelcommercio|snapdragon|snappy/i', '', $domainname);
1982
- $explode = explode(".", $domainname);
1983
- $domainname = @$explode[0];
1984
- }
1985
- $cameraflag = false;
1986
-
1987
- if(preg_match("/(photography|snapshot)/im", $domainname))
1988
- {
1989
- $cameraflag = true;
1990
- }
1991
- elseif(preg_match("/(camera)/im", $domainname))
1992
- {
1993
- $explode = explode("camera", $domainname);
1994
- $left = $explode[0];
1995
- $right = $explode[1];
1996
-
1997
- $leftcameraflag = false;
1998
- if(!empty($left))
1999
- {
2000
- $left = str_split($left);
2001
-
2002
- $matchKeyword = ''; $j = 0;
2003
- for($i = (count($left)-1); $i >= 0; $i--)
2004
- {
2005
- $matchKeyword = $left[$i].$matchKeyword;
2006
-
2007
- if($j > 0)
2008
- {
2009
- if(in_array($matchKeyword, $keywordEnglish))
2010
- {
2011
- $leftcameraflag = true;
2012
- break;
2013
- }
2014
- else
2015
- {
2016
- continue;
2017
- }
2018
- }
2019
- else
2020
- {
2021
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2022
- {
2023
- $leftcameraflag = true;
2024
- break;
2025
- }
2026
- }
2027
-
2028
- $j++;
2029
- }
2030
- }
2031
-
2032
- $rightcameraflag = false;
2033
- if(!empty($right))
2034
- {
2035
- $right = str_split($right);
2036
-
2037
- $matchKeyword = '';
2038
- for($i = 0; $i < count($right); $i++)
2039
- {
2040
- $matchKeyword .= $right[$i];
2041
- if($i > 0)
2042
- {
2043
- if(in_array($matchKeyword, $keywordEnglish))
2044
- {
2045
- $rightcameraflag = true;
2046
- break;
2047
- }
2048
- else
2049
- {
2050
- continue;
2051
- }
2052
- }
2053
- else
2054
- {
2055
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2056
- {
2057
- $rightcameraflag = true;
2058
- break;
2059
- }
2060
- }
2061
- }
2062
- }
2063
-
2064
- if(empty($left) && empty($right))
2065
- {
2066
- $cameraflag = true;
2067
- }
2068
- else
2069
- {
2070
- if(!empty($left) && !empty($right))
2071
- {
2072
- if($rightcameraflag && $leftcameraflag)
2073
- {
2074
- $cameraflag = true;
2075
- }
2076
- }
2077
- elseif(empty($left) && !empty($right))
2078
- {
2079
- if($rightcameraflag)
2080
- {
2081
- $cameraflag = true;
2082
- }
2083
- }
2084
- elseif(!empty($left) && empty($right))
2085
- {
2086
- if($leftcameraflag)
2087
- {
2088
- $cameraflag = true;
2089
- }
2090
- }
2091
- }
2092
- }
2093
- elseif(preg_match("/(photo)/im", $domainname))
2094
- {
2095
- $explode = explode("photo", $domainname);
2096
- $left = $explode[0];
2097
- $right = $explode[1];
2098
-
2099
- $leftcameraflag = false;
2100
- if(!empty($left))
2101
- {
2102
- $left = str_split($left);
2103
-
2104
- $matchKeyword = ''; $j = 0;
2105
- for($i = (count($left)-1); $i >= 0; $i--)
2106
- {
2107
- $matchKeyword = $left[$i].$matchKeyword;
2108
-
2109
- if($j > 0)
2110
- {
2111
- if(in_array($matchKeyword, $keywordEnglish))
2112
- {
2113
- $leftcameraflag = true;
2114
- break;
2115
- }
2116
- else
2117
- {
2118
- continue;
2119
- }
2120
- }
2121
- else
2122
- {
2123
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2124
- {
2125
- $leftcameraflag = true;
2126
- break;
2127
- }
2128
- }
2129
-
2130
- $j++;
2131
- }
2132
- }
2133
-
2134
- $rightcameraflag = false;
2135
- if(!empty($right))
2136
- {
2137
- $right = str_split($right);
2138
-
2139
- $matchKeyword = '';
2140
- for($i = 0; $i < count($right); $i++)
2141
- {
2142
- $matchKeyword .= $right[$i];
2143
- if($i > 0)
2144
- {
2145
- if(in_array($matchKeyword, $keywordEnglish))
2146
- {
2147
- $rightcameraflag = true;
2148
- break;
2149
- }
2150
- else
2151
- {
2152
- continue;
2153
- }
2154
- }
2155
- else
2156
- {
2157
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2158
- {
2159
- $rightcameraflag = true;
2160
- break;
2161
- }
2162
- }
2163
- }
2164
- }
2165
-
2166
- if(empty($left) && empty($right))
2167
- {
2168
- $cameraflag = true;
2169
- }
2170
- else
2171
- {
2172
- if(!empty($left) && !empty($right))
2173
- {
2174
- if($rightcameraflag && $leftcameraflag)
2175
- {
2176
- $cameraflag = true;
2177
- }
2178
- }
2179
- elseif(empty($left) && !empty($right))
2180
- {
2181
- if($rightcameraflag)
2182
- {
2183
- $cameraflag = true;
2184
- }
2185
- }
2186
- elseif(!empty($left) && empty($right))
2187
- {
2188
- if($leftcameraflag)
2189
- {
2190
- $cameraflag = true;
2191
- }
2192
- }
2193
- }
2194
- }
2195
- elseif(preg_match("/(snap)/im", $domainname))
2196
- {
2197
- $explode = explode("snap", $domainname);
2198
- $left = $explode[0];
2199
- $right = $explode[1];
2200
-
2201
- $leftcameraflag = false;
2202
- if(!empty($left))
2203
- {
2204
- $left = str_split($left);
2205
-
2206
- $matchKeyword = ''; $j = 0;
2207
- for($i = (count($left)-1); $i >= 0; $i--)
2208
- {
2209
- $matchKeyword = $left[$i].$matchKeyword;
2210
-
2211
- if($j > 0)
2212
- {
2213
- if(in_array($matchKeyword, $keywordEnglish))
2214
- {
2215
- $leftcameraflag = true;
2216
- break;
2217
- }
2218
- else
2219
- {
2220
- continue;
2221
- }
2222
- }
2223
- else
2224
- {
2225
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2226
- {
2227
- $leftcameraflag = true;
2228
- break;
2229
- }
2230
- }
2231
-
2232
- $j++;
2233
- }
2234
- }
2235
-
2236
- $rightcameraflag = false;
2237
- if(!empty($right))
2238
- {
2239
- $right = str_split($right);
2240
-
2241
- $matchKeyword = '';
2242
- for($i = 0; $i < count($right); $i++)
2243
- {
2244
- $matchKeyword .= $right[$i];
2245
- if($i > 0)
2246
- {
2247
- if(in_array($matchKeyword, $keywordEnglish))
2248
- {
2249
- $rightcameraflag = true;
2250
- break;
2251
- }
2252
- else
2253
- {
2254
- continue;
2255
- }
2256
- }
2257
- else
2258
- {
2259
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2260
- {
2261
- $rightcameraflag = true;
2262
- break;
2263
- }
2264
- }
2265
- }
2266
- }
2267
-
2268
- if(empty($left) && empty($right))
2269
- {
2270
- $cameraflag = true;
2271
- }
2272
- else
2273
- {
2274
- if(!empty($left) && !empty($right))
2275
- {
2276
- if($rightcameraflag && $leftcameraflag)
2277
- {
2278
- $cameraflag = true;
2279
- }
2280
- }
2281
- elseif(empty($left) && !empty($right))
2282
- {
2283
- if($rightcameraflag)
2284
- {
2285
- $cameraflag = true;
2286
- }
2287
- }
2288
- elseif(!empty($left) && empty($right))
2289
- {
2290
- if($leftcameraflag)
2291
- {
2292
- $cameraflag = true;
2293
- }
2294
- }
2295
- }
2296
- }
2297
- }
2298
- elseif(preg_match("/(housing|realestate|realtor|property|immoveables)/im", $domainname))
2299
- {
2300
- /*if(!empty($domainname))
2301
- {
2302
- $domainname = preg_replace('/cameracivile|cameradelcommercio|snapdragon|snappy/i', '', $domainname);
2303
- $explode = explode(".", $domainname);
2304
- $domainname = @$explode[0];
2305
- }*/
2306
- $houseflag = false;
2307
-
2308
- if(preg_match("/(realestate|realtor|property|immoveables)/im", $domainname))
2309
- {
2310
- $houseflag = true;
2311
- }
2312
- elseif(preg_match("/(housing)/im", $domainname))
2313
- {
2314
- $explode = explode("housing", $domainname);
2315
- $left = $explode[0];
2316
- $right = $explode[1];
2317
-
2318
- $lefthouseflag = false;
2319
- if(!empty($left))
2320
- {
2321
- $left = str_split($left);
2322
-
2323
- $matchKeyword = ''; $j = 0;
2324
- for($i = (count($left)-1); $i >= 0; $i--)
2325
- {
2326
- $matchKeyword = $left[$i].$matchKeyword;
2327
-
2328
- if($j > 0)
2329
- {
2330
- if(in_array($matchKeyword, $keywordEnglish))
2331
- {
2332
- $lefthouseflag = true;
2333
- break;
2334
- }
2335
- else
2336
- {
2337
- continue;
2338
- }
2339
- }
2340
- else
2341
- {
2342
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2343
- {
2344
- $lefthouseflag = true;
2345
- break;
2346
- }
2347
- }
2348
-
2349
- $j++;
2350
- }
2351
- }
2352
-
2353
- $righthouseflag = false;
2354
- if(!empty($right))
2355
- {
2356
- $right = str_split($right);
2357
-
2358
- $matchKeyword = '';
2359
- for($i = 0; $i < count($right); $i++)
2360
- {
2361
- $matchKeyword .= $right[$i];
2362
- if($i > 0)
2363
- {
2364
- if(in_array($matchKeyword, $keywordEnglish))
2365
- {
2366
- $righthouseflag = true;
2367
- break;
2368
- }
2369
- else
2370
- {
2371
- continue;
2372
- }
2373
- }
2374
- else
2375
- {
2376
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2377
- {
2378
- $righthouseflag = true;
2379
- break;
2380
- }
2381
- }
2382
- }
2383
- }
2384
-
2385
- if(empty($left) && empty($right))
2386
- {
2387
- $houseflag = true;
2388
- }
2389
- else
2390
- {
2391
- if(!empty($left) && !empty($right))
2392
- {
2393
- if($righthouseflag && $lefthouseflag)
2394
- {
2395
- $houseflag = true;
2396
- }
2397
- }
2398
- elseif(empty($left) && !empty($right))
2399
- {
2400
- if($righthouseflag)
2401
- {
2402
- $houseflag = true;
2403
- }
2404
- }
2405
- elseif(!empty($left) && empty($right))
2406
- {
2407
- if($lefthouseflag)
2408
- {
2409
- $houseflag = true;
2410
- }
2411
- }
2412
- }
2413
- }
2414
- }
2415
- elseif(preg_match("/(cook|cooking|recipe|chef|baking|roasting|grilling|frying|bake|grill|fry)/im", $domainname))
2416
- {
2417
- if(!empty($domainname))
2418
- {
2419
- $domainname = preg_replace('/grillo|grilla/i', '', $domainname);
2420
- $explode = explode(".", $domainname);
2421
- $domainname = @$explode[0];
2422
- }
2423
- $cookflag = false;
2424
-
2425
- if(preg_match("/(cooking|recipe|chef|baking|roasting|grilling|frying)/im", $domainname))
2426
- {
2427
- $cookflag = true;
2428
- }
2429
- elseif(preg_match("/(cook)/im", $domainname))
2430
- {
2431
- $explode = explode("cook", $domainname);
2432
- $left = $explode[0];
2433
- $right = $explode[1];
2434
-
2435
- $leftcookflag = false;
2436
- if(!empty($left))
2437
- {
2438
- $left = str_split($left);
2439
-
2440
- $matchKeyword = ''; $j = 0;
2441
- for($i = (count($left)-1); $i >= 0; $i--)
2442
- {
2443
- $matchKeyword = $left[$i].$matchKeyword;
2444
-
2445
- if($j > 0)
2446
- {
2447
- if(in_array($matchKeyword, $keywordEnglish))
2448
- {
2449
- $leftcookflag = true;
2450
- break;
2451
- }
2452
- else
2453
- {
2454
- continue;
2455
- }
2456
- }
2457
- else
2458
- {
2459
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2460
- {
2461
- $leftcookflag = true;
2462
- break;
2463
- }
2464
- }
2465
-
2466
- $j++;
2467
- }
2468
- }
2469
-
2470
- $rightcookflag = false;
2471
- if(!empty($right))
2472
- {
2473
- $right = str_split($right);
2474
-
2475
- $matchKeyword = '';
2476
- for($i = 0; $i < count($right); $i++)
2477
- {
2478
- $matchKeyword .= $right[$i];
2479
- if($i > 0)
2480
- {
2481
- if(in_array($matchKeyword, $keywordEnglish))
2482
- {
2483
- $rightcookflag = true;
2484
- break;
2485
- }
2486
- else
2487
- {
2488
- continue;
2489
- }
2490
- }
2491
- else
2492
- {
2493
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2494
- {
2495
- $rightcookflag = true;
2496
- break;
2497
- }
2498
- }
2499
- }
2500
- }
2501
-
2502
- if(empty($left) && empty($right))
2503
- {
2504
- $cookflag = true;
2505
- }
2506
- else
2507
- {
2508
- if(!empty($left) && !empty($right))
2509
- {
2510
- if($rightcookflag && $leftcookflag)
2511
- {
2512
- $cookflag = true;
2513
- }
2514
- }
2515
- elseif(empty($left) && !empty($right))
2516
- {
2517
- if($rightcookflag)
2518
- {
2519
- $cookflag = true;
2520
- }
2521
- }
2522
- elseif(!empty($left) && empty($right))
2523
- {
2524
- if($leftcookflag)
2525
- {
2526
- $cookflag = true;
2527
- }
2528
- }
2529
- }
2530
- }
2531
- elseif(preg_match("/(bake)/im", $domainname))
2532
- {
2533
- $explode = explode("bake", $domainname);
2534
- $left = $explode[0];
2535
- $right = $explode[1];
2536
-
2537
- $leftcookflag = false;
2538
- if(!empty($left))
2539
- {
2540
- $left = str_split($left);
2541
-
2542
- $matchKeyword = ''; $j = 0;
2543
- for($i = (count($left)-1); $i >= 0; $i--)
2544
- {
2545
- $matchKeyword = $left[$i].$matchKeyword;
2546
-
2547
- if($j > 0)
2548
- {
2549
- if(in_array($matchKeyword, $keywordEnglish))
2550
- {
2551
- $leftcookflag = true;
2552
- break;
2553
- }
2554
- else
2555
- {
2556
- continue;
2557
- }
2558
- }
2559
- else
2560
- {
2561
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2562
- {
2563
- $leftcookflag = true;
2564
- break;
2565
- }
2566
- }
2567
-
2568
- $j++;
2569
- }
2570
- }
2571
-
2572
- $rightcookflag = false;
2573
- if(!empty($right))
2574
- {
2575
- $right = str_split($right);
2576
-
2577
- $matchKeyword = '';
2578
- for($i = 0; $i < count($right); $i++)
2579
- {
2580
- $matchKeyword .= $right[$i];
2581
- if($i > 0)
2582
- {
2583
- if(in_array($matchKeyword, $keywordEnglish))
2584
- {
2585
- $rightcookflag = true;
2586
- break;
2587
- }
2588
- else
2589
- {
2590
- continue;
2591
- }
2592
- }
2593
- else
2594
- {
2595
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2596
- {
2597
- $rightcookflag = true;
2598
- break;
2599
- }
2600
- }
2601
- }
2602
- }
2603
-
2604
- if(empty($left) && empty($right))
2605
- {
2606
- $cookflag = true;
2607
- }
2608
- else
2609
- {
2610
- if(!empty($left) && !empty($right))
2611
- {
2612
- if($rightcookflag && $leftcookflag)
2613
- {
2614
- $cookflag = true;
2615
- }
2616
- }
2617
- elseif(empty($left) && !empty($right))
2618
- {
2619
- if($rightcookflag)
2620
- {
2621
- $cookflag = true;
2622
- }
2623
- }
2624
- elseif(!empty($left) && empty($right))
2625
- {
2626
- if($leftcookflag)
2627
- {
2628
- $cookflag = true;
2629
- }
2630
- }
2631
- }
2632
- }
2633
- elseif(preg_match("/(grill)/im", $domainname))
2634
- {
2635
- $explode = explode("grill", $domainname);
2636
- $left = $explode[0];
2637
- $right = $explode[1];
2638
-
2639
- $leftcookflag = false;
2640
- if(!empty($left))
2641
- {
2642
- $left = str_split($left);
2643
-
2644
- $matchKeyword = ''; $j = 0;
2645
- for($i = (count($left)-1); $i >= 0; $i--)
2646
- {
2647
- $matchKeyword = $left[$i].$matchKeyword;
2648
-
2649
- if($j > 0)
2650
- {
2651
- if(in_array($matchKeyword, $keywordEnglish))
2652
- {
2653
- $leftcookflag = true;
2654
- break;
2655
- }
2656
- else
2657
- {
2658
- continue;
2659
- }
2660
- }
2661
- else
2662
- {
2663
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2664
- {
2665
- $leftcookflag = true;
2666
- break;
2667
- }
2668
- }
2669
-
2670
- $j++;
2671
- }
2672
- }
2673
-
2674
- $rightcookflag = false;
2675
- if(!empty($right))
2676
- {
2677
- $right = str_split($right);
2678
-
2679
- $matchKeyword = '';
2680
- for($i = 0; $i < count($right); $i++)
2681
- {
2682
- $matchKeyword .= $right[$i];
2683
- if($i > 0)
2684
- {
2685
- if(in_array($matchKeyword, $keywordEnglish))
2686
- {
2687
- $rightcookflag = true;
2688
- break;
2689
- }
2690
- else
2691
- {
2692
- continue;
2693
- }
2694
- }
2695
- else
2696
- {
2697
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2698
- {
2699
- $rightcookflag = true;
2700
- break;
2701
- }
2702
- }
2703
- }
2704
- }
2705
-
2706
- if(empty($left) && empty($right))
2707
- {
2708
- $cookflag = true;
2709
- }
2710
- else
2711
- {
2712
- if(!empty($left) && !empty($right))
2713
- {
2714
- if($rightcookflag && $leftcookflag)
2715
- {
2716
- $cookflag = true;
2717
- }
2718
- }
2719
- elseif(empty($left) && !empty($right))
2720
- {
2721
- if($rightcookflag)
2722
- {
2723
- $cookflag = true;
2724
- }
2725
- }
2726
- elseif(!empty($left) && empty($right))
2727
- {
2728
- if($leftcookflag)
2729
- {
2730
- $cookflag = true;
2731
- }
2732
- }
2733
- }
2734
- }
2735
- elseif(preg_match("/(fry)/im", $domainname))
2736
- {
2737
- $explode = explode("fry", $domainname);
2738
- $left = $explode[0];
2739
- $right = $explode[1];
2740
-
2741
- $leftcookflag = false;
2742
- if(!empty($left))
2743
- {
2744
- $left = str_split($left);
2745
-
2746
- $matchKeyword = ''; $j = 0;
2747
- for($i = (count($left)-1); $i >= 0; $i--)
2748
- {
2749
- $matchKeyword = $left[$i].$matchKeyword;
2750
-
2751
- if($j > 0)
2752
- {
2753
- if(in_array($matchKeyword, $keywordEnglish))
2754
- {
2755
- $leftcookflag = true;
2756
- break;
2757
- }
2758
- else
2759
- {
2760
- continue;
2761
- }
2762
- }
2763
- else
2764
- {
2765
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2766
- {
2767
- $leftcookflag = true;
2768
- break;
2769
- }
2770
- }
2771
-
2772
- $j++;
2773
- }
2774
- }
2775
-
2776
- $rightcookflag = false;
2777
- if(!empty($right))
2778
- {
2779
- $right = str_split($right);
2780
-
2781
- $matchKeyword = '';
2782
- for($i = 0; $i < count($right); $i++)
2783
- {
2784
- $matchKeyword .= $right[$i];
2785
- if($i > 0)
2786
- {
2787
- if(in_array($matchKeyword, $keywordEnglish))
2788
- {
2789
- $rightcookflag = true;
2790
- break;
2791
- }
2792
- else
2793
- {
2794
- continue;
2795
- }
2796
- }
2797
- else
2798
- {
2799
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2800
- {
2801
- $rightcookflag = true;
2802
- break;
2803
- }
2804
- }
2805
- }
2806
- }
2807
-
2808
- if(empty($left) && empty($right))
2809
- {
2810
- $cookflag = true;
2811
- }
2812
- else
2813
- {
2814
- if(!empty($left) && !empty($right))
2815
- {
2816
- if($rightcookflag && $leftcookflag)
2817
- {
2818
- $cookflag = true;
2819
- }
2820
- }
2821
- elseif(empty($left) && !empty($right))
2822
- {
2823
- if($rightcookflag)
2824
- {
2825
- $cookflag = true;
2826
- }
2827
- }
2828
- elseif(!empty($left) && empty($right))
2829
- {
2830
- if($leftcookflag)
2831
- {
2832
- $cookflag = true;
2833
- }
2834
- }
2835
- }
2836
- }
2837
- }
2838
- elseif(preg_match("/(drink|drinking|wine|winery|softdrinks|booze|guzzle|drunk)/im", $domainname))
2839
- {
2840
- /*if(!empty($domainname))
2841
- {
2842
- $domainname = preg_replace('/grillo|grilla/i', '', $domainname);
2843
- $explode = explode(".", $domainname);
2844
- $domainname = @$explode[0];
2845
- }*/
2846
- $drinkflag = false;
2847
-
2848
- if(preg_match("/(drinking|wine|winery|softdrinks|booze|guzzle)/im", $domainname))
2849
- {
2850
- $drinkflag = true;
2851
- }
2852
- elseif(preg_match("/(drunk)/im", $domainname))
2853
- {
2854
- $explode = explode("drunk", $domainname);
2855
- $left = $explode[0];
2856
- $right = $explode[1];
2857
-
2858
- $leftdrinkflag = false;
2859
- if(!empty($left))
2860
- {
2861
- $left = str_split($left);
2862
-
2863
- $matchKeyword = ''; $j = 0;
2864
- for($i = (count($left)-1); $i >= 0; $i--)
2865
- {
2866
- $matchKeyword = $left[$i].$matchKeyword;
2867
-
2868
- if($j > 0)
2869
- {
2870
- if(in_array($matchKeyword, $keywordEnglish))
2871
- {
2872
- $leftdrinkflag = true;
2873
- break;
2874
- }
2875
- else
2876
- {
2877
- continue;
2878
- }
2879
- }
2880
- else
2881
- {
2882
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2883
- {
2884
- $leftdrinkflag = true;
2885
- break;
2886
- }
2887
- }
2888
-
2889
- $j++;
2890
- }
2891
- }
2892
-
2893
- $rightdrinkflag = false;
2894
- if(!empty($right))
2895
- {
2896
- $right = str_split($right);
2897
-
2898
- $matchKeyword = '';
2899
- for($i = 0; $i < count($right); $i++)
2900
- {
2901
- $matchKeyword .= $right[$i];
2902
- if($i > 0)
2903
- {
2904
- if(in_array($matchKeyword, $keywordEnglish))
2905
- {
2906
- $rightdrinkflag = true;
2907
- break;
2908
- }
2909
- else
2910
- {
2911
- continue;
2912
- }
2913
- }
2914
- else
2915
- {
2916
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2917
- {
2918
- $rightdrinkflag = true;
2919
- break;
2920
- }
2921
- }
2922
- }
2923
- }
2924
-
2925
- if(empty($left) && empty($right))
2926
- {
2927
- $drinkflag = true;
2928
- }
2929
- else
2930
- {
2931
- if(!empty($left) && !empty($right))
2932
- {
2933
- if($rightdrinkflag && $leftdrinkflag)
2934
- {
2935
- $drinkflag = true;
2936
- }
2937
- }
2938
- elseif(empty($left) && !empty($right))
2939
- {
2940
- if($rightdrinkflag)
2941
- {
2942
- $drinkflag = true;
2943
- }
2944
- }
2945
- elseif(!empty($left) && empty($right))
2946
- {
2947
- if($leftdrinkflag)
2948
- {
2949
- $drinkflag = true;
2950
- }
2951
- }
2952
- }
2953
- }
2954
- elseif(preg_match("/(drink)/im", $domainname))
2955
- {
2956
- $explode = explode("drink", $domainname);
2957
- $left = $explode[0];
2958
- $right = $explode[1];
2959
-
2960
- $leftdrinkflag = false;
2961
- if(!empty($left))
2962
- {
2963
- $left = str_split($left);
2964
-
2965
- $matchKeyword = ''; $j = 0;
2966
- for($i = (count($left)-1); $i >= 0; $i--)
2967
- {
2968
- $matchKeyword = $left[$i].$matchKeyword;
2969
-
2970
- if($j > 0)
2971
- {
2972
- if(in_array($matchKeyword, $keywordEnglish))
2973
- {
2974
- $leftdrinkflag = true;
2975
- break;
2976
- }
2977
- else
2978
- {
2979
- continue;
2980
- }
2981
- }
2982
- else
2983
- {
2984
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
2985
- {
2986
- $leftdrinkflag = true;
2987
- break;
2988
- }
2989
- }
2990
-
2991
- $j++;
2992
- }
2993
- }
2994
-
2995
- $rightdrinkflag = false;
2996
- if(!empty($right))
2997
- {
2998
- $right = str_split($right);
2999
-
3000
- $matchKeyword = '';
3001
- for($i = 0; $i < count($right); $i++)
3002
- {
3003
- $matchKeyword .= $right[$i];
3004
- if($i > 0)
3005
- {
3006
- if(in_array($matchKeyword, $keywordEnglish))
3007
- {
3008
- $rightdrinkflag = true;
3009
- break;
3010
- }
3011
- else
3012
- {
3013
- continue;
3014
- }
3015
- }
3016
- else
3017
- {
3018
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3019
- {
3020
- $rightdrinkflag = true;
3021
- break;
3022
- }
3023
- }
3024
- }
3025
- }
3026
-
3027
- if(empty($left) && empty($right))
3028
- {
3029
- $drinkflag = true;
3030
- }
3031
- else
3032
- {
3033
- if(!empty($left) && !empty($right))
3034
- {
3035
- if($rightdrinkflag && $leftdrinkflag)
3036
- {
3037
- $drinkflag = true;
3038
- }
3039
- }
3040
- elseif(empty($left) && !empty($right))
3041
- {
3042
- if($rightdrinkflag)
3043
- {
3044
- $drinkflag = true;
3045
- }
3046
- }
3047
- elseif(!empty($left) && empty($right))
3048
- {
3049
- if($leftdrinkflag)
3050
- {
3051
- $drinkflag = true;
3052
- }
3053
- }
3054
- }
3055
- }
3056
- }
3057
- elseif (preg_match("/(travel|journey|trekking|voyage|trek|trip|hike|hiking)/im", $domainname))
3058
- {
3059
- if(!empty($domainname))
3060
- {
3061
- $domainname = preg_replace('/startrek|trekstar|strip|stripper|trippy|stripping|tripwire/i', '', $domainname);
3062
- $explode = explode(".", $domainname);
3063
- $domainname = @$explode[0];
3064
- }
3065
-
3066
- $travelflag = false;
3067
-
3068
- if(preg_match("/(travel|journey|trekking|voyage)/im", $domainname))
3069
- {
3070
- $travelflag = true;
3071
- }
3072
- elseif(preg_match("/(treks)/im", $domainname))
3073
- {
3074
- $explode = explode("treks", $domainname);
3075
- $left = $explode[0];
3076
- $right = $explode[1];
3077
-
3078
- $lefttravelflag = false;
3079
- if(!empty($left))
3080
- {
3081
- $left = str_split($left);
3082
-
3083
- $matchKeyword = ''; $j = 0;
3084
- for($i = (count($left)-1); $i >= 0; $i--)
3085
- {
3086
- $matchKeyword = $left[$i].$matchKeyword;
3087
-
3088
- if($j > 0)
3089
- {
3090
- if(in_array($matchKeyword, $keywordEnglish))
3091
- {
3092
- $lefttravelflag = true;
3093
- break;
3094
- }
3095
- else
3096
- {
3097
- continue;
3098
- }
3099
- }
3100
- else
3101
- {
3102
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3103
- {
3104
- $lefttravelflag = true;
3105
- break;
3106
- }
3107
- }
3108
-
3109
- $j++;
3110
- }
3111
- }
3112
-
3113
- $righttravelflag = false;
3114
- if(!empty($right))
3115
- {
3116
- $right = str_split($right);
3117
-
3118
- $matchKeyword = '';
3119
- for($i = 0; $i < count($right); $i++)
3120
- {
3121
- $matchKeyword .= $right[$i];
3122
-
3123
- if($i > 0)
3124
- {
3125
- if(in_array($matchKeyword, $keywordEnglish))
3126
- {
3127
- $righttravelflag = true;
3128
- break;
3129
- }
3130
- else
3131
- {
3132
- continue;
3133
- }
3134
- }
3135
- else
3136
- {
3137
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3138
- {
3139
- $righttravelflag = true;
3140
- break;
3141
- }
3142
- }
3143
- }
3144
- }
3145
-
3146
- if(empty($left) && empty($right))
3147
- {
3148
- $travelflag = true;
3149
- }
3150
- else
3151
- {
3152
- if(!empty($left) && !empty($right))
3153
- {
3154
- if($righttravelflag && $lefttravelflag)
3155
- {
3156
- $travelflag = true;
3157
- }
3158
- }
3159
- elseif(empty($left) && !empty($right))
3160
- {
3161
- if($righttravelflag)
3162
- {
3163
- $travelflag = true;
3164
- }
3165
- }
3166
- elseif(!empty($left) && empty($right))
3167
- {
3168
- if($lefttravelflag)
3169
- {
3170
- $travelflag = true;
3171
- }
3172
- }
3173
- }
3174
- }
3175
- elseif(preg_match("/(trek)/im", $domainname))
3176
- {
3177
- $explode = explode("trek", $domainname);
3178
- $left = $explode[0];
3179
- $right = $explode[1];
3180
-
3181
- $lefttravelflag = false;
3182
- if(!empty($left))
3183
- {
3184
- $left = str_split($left);
3185
-
3186
- $matchKeyword = ''; $j = 0;
3187
- for($i = (count($left)-1); $i >= 0; $i--)
3188
- {
3189
- $matchKeyword = $left[$i].$matchKeyword;
3190
-
3191
- if($j > 0)
3192
- {
3193
- if(in_array($matchKeyword, $keywordEnglish))
3194
- {
3195
- $lefttravelflag = true;
3196
- break;
3197
- }
3198
- else
3199
- {
3200
- continue;
3201
- }
3202
- }
3203
- else
3204
- {
3205
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3206
- {
3207
- $lefttravelflag = true;
3208
- break;
3209
- }
3210
- }
3211
-
3212
- $j++;
3213
- }
3214
- }
3215
-
3216
- $righttravelflag = false;
3217
- if(!empty($right))
3218
- {
3219
- $right = str_split($right);
3220
-
3221
- $matchKeyword = '';
3222
- for($i = 0; $i < count($right); $i++)
3223
- {
3224
- $matchKeyword .= $right[$i];
3225
- if($i > 0)
3226
- {
3227
- if(in_array($matchKeyword, $keywordEnglish))
3228
- {
3229
- $righttravelflag = true;
3230
- break;
3231
- }
3232
- else
3233
- {
3234
- continue;
3235
- }
3236
- }
3237
- else
3238
- {
3239
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3240
- {
3241
- $righttravelflag = true;
3242
- break;
3243
- }
3244
- }
3245
- }
3246
- }
3247
-
3248
- if(empty($left) && empty($right))
3249
- {
3250
- $travelflag = true;
3251
- }
3252
- else
3253
- {
3254
- if(!empty($left) && !empty($right))
3255
- {
3256
- if($righttravelflag && $lefttravelflag)
3257
- {
3258
- $travelflag = true;
3259
- }
3260
- }
3261
- elseif(empty($left) && !empty($right))
3262
- {
3263
- if($righttravelflag)
3264
- {
3265
- $travelflag = true;
3266
- }
3267
- }
3268
- elseif(!empty($left) && empty($right))
3269
- {
3270
- if($lefttravelflag)
3271
- {
3272
- $travelflag = true;
3273
- }
3274
- }
3275
- }
3276
- }
3277
- elseif(preg_match("/(trips)/im", $domainname))
3278
- {
3279
- $explode = explode("trips", $domainname);
3280
- $left = $explode[0];
3281
- $right = $explode[1];
3282
-
3283
- $lefttravelflag = false;
3284
- if(!empty($left))
3285
- {
3286
- $left = str_split($left);
3287
-
3288
- $matchKeyword = ''; $j = 0;
3289
- for($i = (count($left)-1); $i >= 0; $i--)
3290
- {
3291
- $matchKeyword = $left[$i].$matchKeyword;
3292
-
3293
- if($j > 0)
3294
- {
3295
- if(in_array($matchKeyword, $keywordEnglish))
3296
- {
3297
- $lefttravelflag = true;
3298
- break;
3299
- }
3300
- else
3301
- {
3302
- continue;
3303
- }
3304
- }
3305
- else
3306
- {
3307
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3308
- {
3309
- $lefttravelflag = true;
3310
- break;
3311
- }
3312
- }
3313
-
3314
- $j++;
3315
- }
3316
- }
3317
-
3318
- $righttravelflag = false;
3319
- if(!empty($right))
3320
- {
3321
- $right = str_split($right);
3322
-
3323
- $matchKeyword = '';
3324
- for($i = 0; $i < count($right); $i++)
3325
- {
3326
- $matchKeyword .= $right[$i];
3327
-
3328
- if($i > 0)
3329
- {
3330
- if(in_array($matchKeyword, $keywordEnglish))
3331
- {
3332
- $righttravelflag = true;
3333
- break;
3334
- }
3335
- else
3336
- {
3337
- continue;
3338
- }
3339
- }
3340
- else
3341
- {
3342
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3343
- {
3344
- $righttravelflag = true;
3345
- break;
3346
- }
3347
- }
3348
- }
3349
- }
3350
-
3351
- if(empty($left) && empty($right))
3352
- {
3353
- $travelflag = true;
3354
- }
3355
- else
3356
- {
3357
- if(!empty($left) && !empty($right))
3358
- {
3359
- if($righttravelflag && $lefttravelflag)
3360
- {
3361
- $travelflag = true;
3362
- }
3363
- }
3364
- elseif(empty($left) && !empty($right))
3365
- {
3366
- if($righttravelflag)
3367
- {
3368
- $travelflag = true;
3369
- }
3370
- }
3371
- elseif(!empty($left) && empty($right))
3372
- {
3373
- if($lefttravelflag)
3374
- {
3375
- $travelflag = true;
3376
- }
3377
- }
3378
- }
3379
- }
3380
- elseif(preg_match("/(trip)/im", $domainname))
3381
- {
3382
- $explode = explode("trip", $domainname);
3383
- $left = $explode[0];
3384
- $right = $explode[1];
3385
-
3386
- $lefttravelflag = false;
3387
- if(!empty($left))
3388
- {
3389
- $left = str_split($left);
3390
-
3391
- $matchKeyword = ''; $j = 0;
3392
- for($i = (count($left)-1); $i >= 0; $i--)
3393
- {
3394
- $matchKeyword = $left[$i].$matchKeyword;
3395
-
3396
- if($j > 0)
3397
- {
3398
- if(in_array($matchKeyword, $keywordEnglish))
3399
- {
3400
- $lefttravelflag = true;
3401
- break;
3402
- }
3403
- else
3404
- {
3405
- continue;
3406
- }
3407
- }
3408
- else
3409
- {
3410
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3411
- {
3412
- $lefttravelflag = true;
3413
- break;
3414
- }
3415
- }
3416
-
3417
- $j++;
3418
- }
3419
- }
3420
-
3421
- $righttravelflag = false;
3422
- if(!empty($right))
3423
- {
3424
- $right = str_split($right);
3425
-
3426
- $matchKeyword = '';
3427
- for($i = 0; $i < count($right); $i++)
3428
- {
3429
- $matchKeyword .= $right[$i];
3430
- if($i > 0)
3431
- {
3432
- if(in_array($matchKeyword, $keywordEnglish))
3433
- {
3434
- $righttravelflag = true;
3435
- break;
3436
- }
3437
- else
3438
- {
3439
- continue;
3440
- }
3441
- }
3442
- else
3443
- {
3444
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
3445
- {
3446
- $righttravelflag = true;
3447
- break;
3448
- }
3449
- }
3450
- }
3451
- }
3452
-
3453
- if(empty($left) && empty($right))
3454
- {
3455
- $travelflag = true;
3456
- }
3457
- else
3458
- {
3459
- if(!empty($left) && !empty($right))
3460
- {
3461
- if($righttravelflag && $lefttravelflag)
3462
- {
3463
- $travelflag = true;
3464
- }
3465
- }
3466
- elseif(empty($left) && !empty($right))
3467
- {
3468
- if($righttravelflag)
3469
- {
3470
- $travelflag = true;
3471
- }
3472
- }
3473
- elseif(!empty($left) && empty($right))
3474
- {
3475
- if($lefttravelflag)
3476
- {
3477
- $travelflag = true;
3478
- }
3479
- }
3480
- }
3481
- }
3482
- elseif(preg_match("/(hike)/im", $domainname))
3483
- {
3484
- $explode = explode("hike", $domainname);
3485
- $left = $explode[0];
3486
- $right = $explode[1];
3487
-
3488
- $lefttravelflag = false;
3489
- if(!empty($left))
3490
- {
3491
- $left = str_split($left);
3492
-
3493
- $matchKeyword = ''; $j = 0;
3494
- for($i = (count($left)-1); $i >= 0; $i--)
3495
- {
3496
- $matchKeyword = $left[$i].$matchKeyword;
3497
-
3498
- if($j > 0)
3499
- {
3500
- if(in_array($matchKeyword, $keywordEnglish))
3501
- {
3502
- $lefttravelflag = true;
3503
- break;
3504
- }
3505
- else
3506
- {
3507
- continue;
3508
- }
3509
- }
3510
- else
3511
- {
3512