Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの
Revision | 1edb49c35158c557757c1bfc0e3efa33b1da1e9c (tree) |
---|---|
Time | 2006-10-15 22:37:12 |
Author | hsur <hsur@1ca2...> |
Commiter | hsur |
*** empty log message ***
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@454 1ca29b6e-896d-4ea0-84a5-967f57386b96
@@ -221,6 +221,17 @@ | ||
221 | 221 | function doAction($type) |
222 | 222 | { |
223 | 223 | global $CONF,$manager; |
224 | + $aActionsNotToCheck = array( | |
225 | + '', | |
226 | + 'ping', | |
227 | + 'form', | |
228 | + 'redirect', | |
229 | + 'left', | |
230 | + ); | |
231 | + if (!in_array($type, $aActionsNotToCheck)) { | |
232 | + if (!$manager->checkTicket()) return _ERROR_BADTICKET; | |
233 | + } | |
234 | + | |
224 | 235 | switch ($type) { |
225 | 236 | |
226 | 237 | // When no action type is given, assume it's a ping |
@@ -260,8 +271,6 @@ | ||
260 | 271 | |
261 | 272 | // Detect trackback |
262 | 273 | case 'detect': |
263 | - if (!$manager->checkTicket()) return ''; | |
264 | - | |
265 | 274 | list($url, $title) = |
266 | 275 | $this->getURIfromLink(html_entity_decode(requestVar('tb_link'))); |
267 | 276 |
@@ -286,14 +295,12 @@ | ||
286 | 295 | |
287 | 296 | // delete a trackback(local) |
288 | 297 | case 'deletelc': |
289 | - if (!$manager->checkTicket()) return _ERROR_BADTICKET; | |
290 | - | |
291 | 298 | $err = $this->deleteLocal(intRequestVar('tb_id'), intRequestVar('from_id')); |
292 | 299 | if( $err ) |
293 | 300 | return $err; |
294 | 301 | header('Location: ' . serverVar('HTTP_REFERER')); |
295 | 302 | break; |
296 | - } | |
303 | + } | |
297 | 304 | |
298 | 305 | exit; |
299 | 306 | } |