Logger::error(i18n::s('You are not allowed to perform this operation.')); // re-enforce the canonical link } elseif (!$zoom_type && $context['self_url'] && ($canonical = Categories::get_permalink($item)) && strncmp($context['self_url'], $canonical, strlen($canonical))) { Safe::header('Status: 301 Moved Permanently', TRUE, 301); Safe::header('Location: ' . $canonical); Logger::error(Skin::build_link($canonical)); // display the category } else { // remember surfer visit Surfer::is_visiting(Categories::get_permalink($item), Codes::beautify_title($item['title']), 'category:' . $item['id'], $item['active']); // increment silently the hits counter if not robot, nor associate, nor creator, nor at follow-up page if (Surfer::is_crawler() || Surfer::is_associate()) { } elseif (Surfer::get_id() && isset($item['create_id']) && Surfer::get_id() == $item['create_id']) { } elseif (!$zoom_type) { $item['hits'] = isset($item['hits']) ? $item['hits'] + 1 : 1; Categories::increment_hits($item['id']); } // initialize the rendering engine Codes::initialize(Categories::get_permalink($item)); // // page image -- $context['page_image'] // // the category or the anchor icon, if any if (isset($item['icon_url']) && $item['icon_url']) { $context['page_image'] = $item['icon_url']; } elseif (is_object($anchor)) { $context['page_image'] = $anchor->get_icon_url(); } // // page meta information -- $context['page_header'], etc. //