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