Skip to content

Commit

Permalink
Remove licence blocker
Browse files Browse the repository at this point in the history
  • Loading branch information
dautushenka committed Feb 4, 2016
1 parent 808561b commit 38c78fd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 65 deletions.
16 changes: 1 addition & 15 deletions dle_uploads/dle_vs_ipb3.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ function clean_url($url)
}
}

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

class ipb_member
{
public $member = array();
Expand All @@ -37,19 +35,7 @@ class ipb_member
protected $connected = false;

public function __construct(db &$db)
{

if (
!preg_match("#" . LIC_DOMAIN . "#i", $_SERVER['HTTP_HOST']) &&
!preg_match('#localhost#i', $_SERVER['HTTP_HOST']) &&
strpos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_ADDR']) === false
)
{
echo "Âû èñïîëüçóåòå íå ëèöåíçèîííóþ âåðñèþ ìîäóëÿ DLE + Invision Power Board 3.<br/>";
echo "Çà èíôîðìàöèåé îáðàùàéòåñü íà ôîðóì <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a>";
exit;
}

{
if (file_exists(ENGINE_DIR . "/data/dle_ipb_conf.php"))
{
$dle_ipb_conf = array();
Expand Down
12 changes: 1 addition & 11 deletions dle_uploads/engine/inc/dle_ipb3.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

$licence = /*licadm*/'.'/*/licadm*/;
if(!defined('DATALIFEENGINE'))
{
die("Hacking attempt!");
Expand Down Expand Up @@ -37,16 +36,7 @@ function makeDropDown($options, $name, $selected)
return $output;
}

if (!preg_match("#" . $licence . "#i", $_SERVER['HTTP_HOST']) &&
!preg_match('#localhost#', $_SERVER['HTTP_HOST']) &&
strpos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_ADDR']) === false
)
{

dle_ipb_msg("error", $lang_dle_ipb['error_lic'], $lang_dle_ipb['lic_text']);
exit;
}


function echomenu ($image, $header_text, $p = 0)
{
global $lang_dle_ipb;
Expand Down
16 changes: 1 addition & 15 deletions dle_uploads_utf8/dle_vs_ipb3.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ function clean_url($url)
}
}

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

class ipb_member
{
public $member = array();
Expand All @@ -37,19 +35,7 @@ class ipb_member
protected $connected = false;

public function __construct(db &$db)
{

if (
!preg_match("#" . LIC_DOMAIN . "#i", $_SERVER['HTTP_HOST']) &&
!preg_match('#localhost#i', $_SERVER['HTTP_HOST']) &&
strpos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_ADDR']) === false
)
{
echo "Вы используете не лицензионную версию модуля DLE + Invision Power Board 3.<br/>";
echo "За информацией обращайтесь на форум <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a>";
exit;
}

{
if (file_exists(ENGINE_DIR . "/data/dle_ipb_conf.php"))
{
$dle_ipb_conf = array();
Expand Down
11 changes: 0 additions & 11 deletions dle_uploads_utf8/engine/inc/dle_ipb3.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

$licence = /*licadm*/'ozersk.ru'/*/licadm*/;
if(!defined('DATALIFEENGINE'))
{
die("Hacking attempt!");
Expand Down Expand Up @@ -36,16 +35,6 @@ function makeDropDown($options, $name, $selected)
$output .= "</select>";
return $output;
}

if (!preg_match("#" . $licence . "#i", $_SERVER['HTTP_HOST']) &&
!preg_match('#localhost#', $_SERVER['HTTP_HOST']) &&
strpos($_SERVER['HTTP_HOST'], $_SERVER['SERVER_ADDR']) === false
)
{

dle_ipb_msg("error", $lang_dle_ipb['error_lic'], $lang_dle_ipb['lic_text']);
exit;
}

function echomenu ($image, $header_text, $p = 0)
{
Expand Down
13 changes: 0 additions & 13 deletions ipb3_uploads/admin/applications/forums/extensions/memberSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
**/


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

/**
* Member Synchronization extensions
*
Expand Down Expand Up @@ -77,17 +75,6 @@ public 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
)
{
echo "Вы используете не лицензионную версию модуля DLE + Invision Power Board 3.<br/>";
echo "За информацией обращайтесь на форум <a href='http://forum.kaliostro.net/'>http://forum.kaliostro.net/</a>";
exit;
}


require_once(dirname(__FILE__) . "/dbconfig.php");
require_once(dirname(__FILE__) . "/dle_config.php");
Expand Down

0 comments on commit 38c78fd

Please sign in to comment.