| @@ 493-510 (lines=18) @@ | ||
| 490 | $keywords = $wfmyts->addSlashes(trim(substr($_POST['keywords'], 0, $xoopsModuleConfig['keywordlength']))); |
|
| 491 | $item_tag = $wfmyts->addSlashes(trim($_POST['item_tag'])); |
|
| 492 | $forumid = (isset($_POST['forumid']) && $_POST['forumid'] > 0) ? (int)$_POST['forumid'] : 0; |
|
| 493 | if ($xoopsModuleConfig['useaddress']) { |
|
| 494 | $googlemap = ($_POST['googlemap'] !== 'http://maps.google.com') ? $wfmyts->addSlashes($_POST['googlemap']) : ''; |
|
| 495 | $yahoomap = ($_POST['yahoomap'] !== 'http://maps.yahoo.com') ? $wfmyts->addSlashes($_POST['yahoomap']) : ''; |
|
| 496 | $multimap = ($_POST['multimap'] !== 'http://www.multimap.com') ? $wfmyts->addSlashes($_POST['multimap']) : ''; |
|
| 497 | $street1 = $wfmyts->addSlashes(trim($_POST['street1'])); |
|
| 498 | $street2 = $wfmyts->addSlashes(trim($_POST['street2'])); |
|
| 499 | $town = $wfmyts->addSlashes(trim($_POST['town'])); |
|
| 500 | $state = $wfmyts->addSlashes(trim($_POST['state'])); |
|
| 501 | $zip = $wfmyts->addSlashes(trim($_POST['zip'])); |
|
| 502 | $tel = $wfmyts->addSlashes(trim($_POST['tel'])); |
|
| 503 | $fax = $wfmyts->addSlashes(trim($_POST['fax'])); |
|
| 504 | $voip = $wfmyts->addSlashes(trim($_POST['voip'])); |
|
| 505 | $mobile = $wfmyts->addSlashes(trim($_POST['mobile'])); |
|
| 506 | $email = WfLinksUtility::convertEmail($wfmyts->addSlashes(trim($_POST['email']))); |
|
| 507 | $vat = $wfmyts->addSlashes(trim($_POST['vat'])); |
|
| 508 | } else { |
|
| 509 | $googlemap = $yahoomap = $multimap = $street1 = $street2 = $town = $state = $zip = $tel = $fax = $voip = $mobile = $email = $vat = ''; |
|
| 510 | } |
|
| 511 | ||
| 512 | $submitter = $xoopsUser->uid(); |
|
| 513 | $publisher = $wfmyts->addSlashes(trim($_POST['publisher'])); |
|
| @@ 50-67 (lines=18) @@ | ||
| 47 | $item_tag = $wfmyts->addSlashes(ltrim($_REQUEST['item_tag'])); |
|
| 48 | } |
|
| 49 | ||
| 50 | if ($xoopsModuleConfig['useaddress']) { |
|
| 51 | $googlemap = ($_POST['googlemap'] !== 'http://maps.google.com') ? $wfmyts->addSlashes($_POST['googlemap']) : ''; |
|
| 52 | $yahoomap = ($_POST['yahoomap'] !== 'http://maps.yahoo.com') ? $wfmyts->addSlashes($_POST['yahoomap']) : ''; |
|
| 53 | $multimap = ($_POST['multimap'] !== 'http://www.multimap.com') ? $wfmyts->addSlashes($_POST['multimap']) : ''; |
|
| 54 | $street1 = $wfmyts->addSlashes(ltrim($_REQUEST['street1'])); |
|
| 55 | $street2 = $wfmyts->addSlashes(ltrim($_REQUEST['street2'])); |
|
| 56 | $town = $wfmyts->addSlashes(ltrim($_REQUEST['town'])); |
|
| 57 | $state = $wfmyts->addSlashes(ltrim($_REQUEST['state'])); |
|
| 58 | $zip = $wfmyts->addSlashes(ltrim($_REQUEST['zip'])); |
|
| 59 | $tel = $wfmyts->addSlashes(ltrim($_REQUEST['tel'])); |
|
| 60 | $fax = $wfmyts->addSlashes(ltrim($_REQUEST['fax'])); |
|
| 61 | $voip = $wfmyts->addSlashes(ltrim($_REQUEST['voip'])); |
|
| 62 | $mobile = $wfmyts->addSlashes(ltrim($_REQUEST['mobile'])); |
|
| 63 | $email = WfLinksUtility::convertEmail($wfmyts->addSlashes(ltrim($_REQUEST['email']))); |
|
| 64 | $vat = $wfmyts->addSlashes(ltrim($_REQUEST['vat'])); |
|
| 65 | } else { |
|
| 66 | $googlemap = $yahoomap = $multimap = $street1 = $street2 = $town = $state = $zip = $tel = $fax = $voip = $mobile = $email = $vat = ''; |
|
| 67 | } |
|
| 68 | ||
| 69 | $country = $wfmyts->addSlashes(ltrim($_REQUEST['country'])); |
|
| 70 | ||