| @@ 61-67 (lines=7) @@ | ||
| 58 | if (!$xoopsGTicket->check(true, 'token')) { |
|
| 59 | redirect_header(XOOPS_URL . '/modules/adslight/viewads.php?lid=' . addslashes($id) . '', 3, $xoopsGTicket->getErrors()); |
|
| 60 | } |
|
| 61 | if ($GLOBALS['xoopsModuleConfig']['adslight_use_captcha'] == '1') { |
|
| 62 | xoops_load('xoopscaptcha'); |
|
| 63 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
| 64 | if (!$xoopsCaptcha->verify()) { |
|
| 65 | redirect_header(XOOPS_URL . '/modules/adslight/contact.php?lid=' . addslashes($id) . '', 2, $xoopsCaptcha->getMessage()); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | $lid = Request::getInt('id', 0, 'POST'); |
|
| 69 | $result = $xoopsDB->query('SELECT email, submitter, title, type, desctext, price, typeprice FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE lid = ' . $xoopsDB->escape($id)); |
|
| 70 | ||
| @@ 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') |
|