| @@ 59-65 (lines=7) @@ | ||
| 56 | if (!$GLOBALS['xoopsSecurity']->check(true, $_REQUEST['token'])) { |
|
| 57 | redirect_header(XOOPS_URL . '/modules/adslight/viewads.php?lid=' . addslashes($id) . '', 3, $GLOBALS['xoopsSecurity']->getErrors()); |
|
| 58 | } |
|
| 59 | if ($GLOBALS['xoopsModuleConfig']['adslight_use_captcha'] == '1') { |
|
| 60 | xoops_load('xoopscaptcha'); |
|
| 61 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
| 62 | if (!$xoopsCaptcha->verify()) { |
|
| 63 | redirect_header(XOOPS_URL . '/modules/adslight/contact.php?lid=' . addslashes($id) . '', 2, $xoopsCaptcha->getMessage()); |
|
| 64 | } |
|
| 65 | } |
|
| 66 | $lid = Request::getInt('id', 0, 'POST'); |
|
| 67 | $result = $xoopsDB->query('SELECT email, submitter, title, type, desctext, price, typeprice FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE lid = ' . $xoopsDB->escape($id)); |
|
| 68 | ||
| @@ 101-107 (lines=7) @@ | ||
| 98 | { |
|
| 99 | global $xoopsConfig, $xoopsTpl, $xoopsDB, $xoopsModule, $myts, $xoopsLogger, $moduleDirName, $main_lang; |
|
| 100 | ||
| 101 | if ('1' == $GLOBALS['xoopsModuleConfig']['adslight_use_captcha']) { |
|
| 102 | xoops_load('xoopscaptcha'); |
|
| 103 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
| 104 | if (!$xoopsCaptcha->verify()) { |
|
| 105 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 2, $xoopsCaptcha->getMessage()); |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | $lid = (int)$lid; |
|
| 110 | $result = $xoopsDB->query('SELECT lid, title, expire, type, desctext, tel, price, typeprice, date, email, submitter, town, country, photo FROM ' |
|
| @@ 97-103 (lines=7) @@ | ||
| 94 | { |
|
| 95 | global $xoopsConfig, $xoopsTpl, $xoopsDB, $xoopsModule, $myts, $xoopsLogger, $moduleDirName, $main_lang; |
|
| 96 | ||
| 97 | if ('1' == $GLOBALS['xoopsModuleConfig']['adslight_use_captcha']) { |
|
| 98 | xoops_load('xoopscaptcha'); |
|
| 99 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
| 100 | if (!$xoopsCaptcha->verify()) { |
|
| 101 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 2, $xoopsCaptcha->getMessage()); |
|
| 102 | } |
|
| 103 | } |
|
| 104 | ||
| 105 | $result = $xoopsDB->query('SELECT lid, title, expire, type, desctext, tel, price, typeprice, date, email, submitter, town, country, photo FROM ' |
|
| 106 | . $xoopsDB->prefix('adslight_listing') |
|