Skip to content

Commit

Permalink
Remove licance blocker
Browse files Browse the repository at this point in the history
  • Loading branch information
dautushenka committed Feb 4, 2016
1 parent 1ab4e7c commit af2874e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

define('LIC_DOMAIN', /*lic*/'wotwar\.ru'/*/lic*/);

/**
* Class XenIntegration
*
Expand All @@ -27,20 +25,7 @@ class XenIntegration
protected $_parse = null;

protected function __construct()
{
if (
!preg_match("#" . LIC_DOMAIN . "#i", $_SERVER['HTTP_HOST']) &&
!preg_match('#localhost#i', $_SERVER['HTTP_HOST']) &&
strpos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_ADDR']) === false
)
{
$this->displayAndExit(
"Вы используете не лицензионную версию модуля DLE + XenForo.<br/>
За информацией обращайтесь на форум <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a><br/>
You are not using licensed version of the module DLE + XenForo.<br/>
For information, visit the forum <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a>");
}

{
$forumConfigFile = dirname(__FILE__) . "/config.php";
if (!file_exists($forumConfigFile)) {
$this->displayAndExit("Вы должны скопировать файл конфигурации %s с форума в папку с модулем интеграции %s", 'library/config.php', $forumConfigFile);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

define('LIC_DOMAIN', /*lic*/'vipmiss\.ru'/*/lic*/);

/**
* Class XenIntegration
*
Expand All @@ -27,20 +25,7 @@ class XenIntegration
protected $_parse = null;

protected function __construct()
{
if (
!preg_match("#" . LIC_DOMAIN . "#i", $_SERVER['HTTP_HOST']) &&
!preg_match('#localhost#i', $_SERVER['HTTP_HOST']) &&
strpos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_ADDR']) === false
)
{
$this->displayAndExit(
"Âû èñïîëüçóåòå íå ëèöåíçèîííóþ âåðñèþ ìîäóëÿ DLE + XenForo.<br/>
Çà èíôîðìàöèåé îáðàùàéòåñü íà ôîðóì <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a><br/>
You are not using licensed version of the module DLE + XenForo.<br/>
For information, visit the forum <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a>");
}

{
$forumConfigFile = dirname(__FILE__) . "/config.php";
if (!file_exists($forumConfigFile)) {
$this->displayAndExit("Âû äîëæíû ñêîïèðîâàòü ôàéë êîíôèãóðàöèè %s ñ ôîðóìà â ïàïêó ñ ìîäóëåì èíòåãðàöèè %s", 'library/config.php', $forumConfigFile);
Expand Down
16 changes: 0 additions & 16 deletions XenForo_uploads/library/DLEIntegration/DLE.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

define('LIC_DOMAIN', /*lic*/'.'/*/lic*/);

class db {};

class DLEIntegration_DLE
Expand All @@ -12,20 +10,6 @@ class DLEIntegration_DLE

protected function __construct()
{
if (
!preg_match("#" . LIC_DOMAIN . "#i", $_SERVER['HTTP_HOST']) &&
!preg_match('#localhost#i', $_SERVER['HTTP_HOST']) &&
strpos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_ADDR']) === false
)
{
@header("Content-type: text/html; charset=UTF-8");
echo "Вы используете не лицензионную версию модуля DLE + XenForo.<br/>";
echo "За информацией обращайтесь на форум <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a><br/>";
echo "You are not using licensed version of the module DLE + XenForo.<br/>";
echo "For information, visit the forum <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a>";
exit();
}

require_once dirname(__FILE__) . '/config/dbconfig.php';
require_once dirname(__FILE__) . '/config/dle_config.php';

Expand Down

0 comments on commit af2874e

Please sign in to comment.