@@ 55-57 (lines=3) @@ | ||
52 | if (Request::hasVar('submit', 'POST')) { |
|
53 | $howlong = $GLOBALS['xoopsModuleConfig']['adslight_howlong']; |
|
54 | ||
55 | if (!$GLOBALS['xoopsSecurity']->check(true, $_REQUEST['token'])) { |
|
56 | redirect_header(XOOPS_URL . '/', 3, $GLOBALS['xoopsSecurity']->getErrors()); |
|
57 | } |
|
58 | ||
59 | // xoops_load("xoopscaptcha"); |
|
60 | // $xoopsCaptcha = XoopsCaptcha::getInstance(); |
@@ 66-68 (lines=3) @@ | ||
63 | if (Request::hasVar('submit', 'POST')) { |
|
64 | $howlong = $GLOBALS['xoopsModuleConfig']['adslight_howlong']; |
|
65 | ||
66 | if (!$GLOBALS['xoopsSecurity']->check(true, $_REQUEST['token'])) { |
|
67 | redirect_header(XOOPS_URL . '/', 3, $GLOBALS['xoopsSecurity']->getErrors()); |
|
68 | } |
|
69 | ||
70 | if (Request::getString('title', '', 'POST') == '') { |
|
71 | // $erh->show('1001'); //'0001' => 'Could not connect to the forums database.', |
@@ 55-57 (lines=3) @@ | ||
52 | } |
|
53 | global $xoopsConfig, $xoopsDB, $myts, $meta; |
|
54 | ||
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(); |
@@ 392-394 (lines=3) @@ | ||
389 | { |
|
390 | global $xoopsDB, $xoopsConfig, $myts, $xoopsLogger, $moduleDirName, $main_lang; |
|
391 | ||
392 | if (!$GLOBALS['xoopsSecurity']->check(true, $_REQUEST['token'])) { |
|
393 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 3, $GLOBALS['xoopsSecurity']->getErrors()); |
|
394 | } |
|
395 | $title = $myts->addSlashes($title); |
|
396 | $status = $myts->addSlashes($status); |
|
397 | $expire = $myts->addSlashes($expire); |