Files
lulandia.pl/modules/x13linkrewrite-old/x13linkrewrite.php
2025-04-01 00:38:54 +02:00

49 lines
969 B
PHP

<?php
if (!defined('_PS_VERSION_')) {
exit;
}
if (!class_exists('x13LinkRewriteModel'))
if (!defined('X13_ION_VERSION_LR')){
if (PHP_VERSION_ID >= 70100) {
$x13IonVer = '-71';
} else if (PHP_VERSION_ID >= 70000) {
$x13IonVer = '-7';
} else {
$x13IonVer = '';
}
define('X13_ION_VERSION_LR', $x13IonVer);
}
require_once(dirname(__FILE__).'/classes/x13LinkRewriteModel' . X13_ION_VERSION_LR . '.php');
class x13linkrewrite extends x13LinkRewriteModel
{
protected $_html;
protected $_errors;
function __construct()
{
$this->name = 'x13linkrewrite';
$this->tab = 'seo';
$this->author = 'x13.pl';
$this->version = '1.0.2';
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Link Rewrite - 301/302/302 - SEO');
$this->description = $this->l('Add rewrite to your old links.');
}
function install()
{
if (!parent::install())
return false;
return true;
}
}