<?php /** * @name Plugin SEF * @version 1.5.0 * @package Fiyo CMS * @copyright Copyright (C) 2012 Fiyo CMS. * @license GNU/GPL, see LICENSE.txt */ defined('_FINDEX_') or die('Access Denied'); /************* SEF PAGINATION FUNCTION *********** /* * load FiSef system */ require 'plg_system.php'; redirect_www(); redirect_link();
if (in_array($u_agent, $block_agent)) { // Block user agents exit; } #Short Url Redirect Codingdong require_once 'config.php'; #include_once('Lib/link.php'); #error_reporting(0); if ($_GET) { if (isset($_GET['c'])) { $shortcode = @$_GET['c']; $Link = new Link($shortcode); $ori_url = $Link->getLongUrl(); if (isset($ori_url)) { if ($Link->isExceptCountry() === false) { redirect_link($Link->getConRedirectUrl()); $Link->RecordClick(); exit; } if ($Link->OnlyUniqueVisitor()) { if ($Link->isReturnVisitor()) { ReturnVisitorMsg(); exit; } } ob_start(); #header("HTTP/1.1 301 Moved Permanently"); if (@$_SERVER['HTTP_REFERER'] == null) { header("Location: {$ori_url}", true, 301); } else { redirect_blank_referrer($ori_url);