| 425 | | //---------- incrementation of the number of hits, we do this only if no action |
| | 425 | |
| | 426 | //---------- incrementation of the number of hits |
| | 427 | // don't increment counter if in the Mozilla Firefox prefetch |
| | 428 | if (isset($_SERVER['HTTP_X_MOZ']) and $_SERVER['HTTP_X_MOZ'] == 'prefetch') |
| | 429 | { |
| | 430 | add_event_handler('allow_increment_element_hit_count', create_function('$b', 'return false;')); |
| | 431 | } |
| | 432 | else |
| | 433 | { |
| | 434 | // don't increment counter if comming from the same picture (actions) |
| | 435 | if (pwg_get_session_var('referer_image_id',0) == $page['image_id']) |
| | 436 | { |
| | 437 | add_event_handler('allow_increment_element_hit_count', create_function('$b', 'return false;')); |
| | 438 | } |
| | 439 | pwg_set_session_var('referer_image_id', $page['image_id']); |
| | 440 | } |
| | 441 | |
| | 442 | // don't increment if adding a comment |