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