|
418 | 418 | $duplicate_detect = 1; |
419 | 419 | } |
420 | 420 | } |
| 421 | + |
| 422 | + $industry = ''; |
421 | 423 | if (isset($column[1])) { |
422 | 424 | $industry = sanitizeInput($column[1]); |
423 | 425 | } |
| 426 | + |
| 427 | + $referral = ''; |
424 | 428 | if (isset($column[2])) { |
425 | 429 | $referral = sanitizeInput($column[2]); |
426 | 430 | } |
| 431 | + |
| 432 | + $website = ''; |
427 | 433 | if (isset($column[3])) { |
428 | | - $website = sanitizeInput($column[3]); |
| 434 | + $website = sanitizeInput(preg_replace("(^https?://)", "", $column[3])); |
429 | 435 | } |
| 436 | + |
| 437 | + $location_name = ''; |
430 | 438 | if (isset($column[4])) { |
431 | 439 | $location_name = sanitizeInput($column[4]); |
432 | 440 | } |
| 441 | + |
| 442 | + $location_phone = ''; |
433 | 443 | if (isset($column[5])) { |
434 | | - $location_phone = preg_replace("/[^0-9]/", '',$column[5]); |
| 444 | + $location_phone = preg_replace("/[^0-9]/", '', $column[5]); |
435 | 445 | } |
| 446 | + |
| 447 | + $address = ''; |
436 | 448 | if (isset($column[6])) { |
437 | 449 | $address = sanitizeInput($column[6]); |
438 | 450 | } |
| 451 | + |
| 452 | + $city = ''; |
439 | 453 | if (isset($column[7])) { |
440 | 454 | $city = sanitizeInput($column[7]); |
441 | 455 | } |
| 456 | + |
| 457 | + $state = ''; |
442 | 458 | if (isset($column[8])) { |
443 | 459 | $state = sanitizeInput($column[8]); |
444 | 460 | } |
| 461 | + |
| 462 | + $zip = ''; |
445 | 463 | if (isset($column[9])) { |
446 | 464 | $zip = sanitizeInput($column[9]); |
447 | 465 | } |
| 466 | + |
| 467 | + $country = ''; |
448 | 468 | if (isset($column[10])) { |
449 | 469 | $country = sanitizeInput($column[10]); |
450 | 470 | } |
| 471 | + |
| 472 | + $contact_name = ''; |
451 | 473 | if (isset($column[11])) { |
452 | 474 | $contact_name = sanitizeInput($column[11]); |
453 | 475 | } |
| 476 | + |
| 477 | + $title = ''; |
454 | 478 | if (isset($column[12])) { |
455 | 479 | $title = sanitizeInput($column[12]); |
456 | 480 | } |
| 481 | + |
| 482 | + $contact_phone = ''; |
457 | 483 | if (isset($column[13])) { |
458 | 484 | $contact_phone = preg_replace("/[^0-9]/", '',$column[13]); |
459 | 485 | } |
| 486 | + |
| 487 | + $contact_extension = ''; |
460 | 488 | if (isset($column[14])) { |
461 | 489 | $contact_extension = preg_replace("/[^0-9]/", '',$column[14]); |
462 | 490 | } |
| 491 | + |
| 492 | + $contact_mobile = ''; |
463 | 493 | if (isset($column[15])) { |
464 | 494 | $contact_mobile = preg_replace("/[^0-9]/", '',$column[15]); |
465 | 495 | } |
| 496 | + |
| 497 | + $contact_email = ''; |
466 | 498 | if (isset($column[16])) { |
467 | 499 | $contact_email = sanitizeInput($column[16]); |
468 | 500 | } |
| 501 | + |
| 502 | + $hourly_rate = $config_default_hourly_rate; |
469 | 503 | if (isset($column[17])) { |
470 | 504 | $hourly_rate = floatval($column[17]); |
471 | 505 | } |
| 506 | + |
| 507 | + $currency_code = sanitizeInput($session_company_currency); |
472 | 508 | if (isset($column[18])) { |
473 | 509 | $currency_code = sanitizeInput($column[18]); |
474 | 510 | } |
| 511 | + |
| 512 | + $payment_terms = sanitizeInput($config_default_net_terms); |
475 | 513 | if (isset($column[19])) { |
476 | 514 | $payment_terms = intval($column[19]); |
477 | 515 | } |
| 516 | + |
| 517 | + $tax_id_number = ''; |
478 | 518 | if (isset($column[20])) { |
479 | 519 | $tax_id_number = sanitizeInput($column[20]); |
480 | 520 | } |
| 521 | + |
| 522 | + $abbreviation = ''; |
481 | 523 | if (isset($column[21])) { |
482 | 524 | $abbreviation = sanitizeInput($column[21]); |
483 | 525 | } |
|
0 commit comments