@@ 137-144 (lines=8) @@ | ||
134 | ||
135 | case 'save_quote': |
|
136 | // check to make sure this passes form submission security |
|
137 | if ($GLOBALS['xoopsSecurity'] instanceof XoopsSecurity) { |
|
138 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
139 | // failed xoops security check |
|
140 | redirect_header($_SERVER['PHP_SELF'], RandomquoteConstants::REDIRECT_DELAY_MEDIUM, $GLOBALS['xoopsSecurity']->getErrors(true)); |
|
141 | } |
|
142 | } else { |
|
143 | redirect_header('index.php', RandomquoteConstants::REDIRECT_DELAY_MEDIUM, _MD_RANDOMQUOTE_INVALID_SECURITY_TOKEN); |
|
144 | } |
|
145 | ||
146 | $input = new stdClass; // setup input array |
|
147 | ||
@@ 204-211 (lines=8) @@ | ||
201 | $id = Request::getInt('id', RandomquoteConstants::DEFAULT_ID); |
|
202 | if ($delOk) { |
|
203 | // check to make sure this passes form submission security |
|
204 | if ($GLOBALS['xoopsSecurity'] instanceof XoopsSecurity) { |
|
205 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
206 | // failed xoops security check |
|
207 | redirect_header($_SERVER['PHP_SELF'], RandomquoteConstants::REDIRECT_DELAY_MEDIUM, $GLOBALS['xoopsSecurity']->getErrors(true)); |
|
208 | } |
|
209 | } else { |
|
210 | redirect_header('index.php', RandomquoteConstants::REDIRECT_DELAY_MEDIUM, _MD_RANDOMQUOTE_INVALID_SECURITY_TOKEN); |
|
211 | } |
|
212 | $obj = $quotesHandler->get($id); |
|
213 | if ($obj instanceof RandomquoteQuotes) { |
|
214 | $itemId = $obj->getVar('id'); |