2014-04-30 03:51:52 +04:00
|
|
|
<?php
|
|
|
|
|
2015-10-23 17:41:05 +03:00
|
|
|
if (
|
2016-01-11 18:02:20 +03:00
|
|
|
function_exists('date_default_timezone_set') &&
|
2015-10-23 17:41:05 +03:00
|
|
|
function_exists('date_default_timezone_get')
|
|
|
|
) {
|
|
|
|
date_default_timezone_set(@date_default_timezone_get());
|
2015-07-21 15:21:12 +03:00
|
|
|
}
|
|
|
|
|
2016-01-11 18:02:20 +03:00
|
|
|
if (!defined('_PS_VERSION_')) {
|
|
|
|
exit;
|
2015-10-23 17:41:05 +03:00
|
|
|
} else {
|
2016-01-11 18:02:20 +03:00
|
|
|
$allowed = array('1.4', '1.5', '1.6');
|
|
|
|
$version = substr(_PS_VERSION_, 0, 3);
|
|
|
|
if (!in_array($version, $allowed)) {
|
|
|
|
exit;
|
|
|
|
} else {
|
|
|
|
require_once (dirname(__FILE__) . '/bootstrap.php');
|
|
|
|
require(dirname(__FILE__) . '/version.' . $version . '.php');
|
2015-07-21 15:21:12 +03:00
|
|
|
}
|
2014-04-30 03:51:52 +04:00
|
|
|
}
|
2016-01-11 18:02:20 +03:00
|
|
|
|