1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115:
<?php
session_start();
$_classPath = "../";
if ($_REQUEST['type'] != 'json') {
require_once $_classPath . "/lib/Subsys/JsHttpRequest/Php.php";
$JsHttpRequest = new Subsys_JsHttpRequest_Php("windows-1251");
}
include($_classPath . "class/obj.class.php");
PHPShopObj::loadClass("base");
PHPShopObj::loadClass("system");
PHPShopObj::loadClass("date");
PHPShopObj::loadClass("security");
$PHPShopBase = new PHPShopBase($_classPath . "inc/config.ini");
$PHPShopSystem = new PHPShopSystem();
@$fp = fopen("../../index.php", "r");
if ($fp) {
$fstat = fstat($fp);
fclose($fp);
$FileDate = PHPShopDate::dataV($fstat['mtime']);
}
function GetFile($dir) {
global $SysValue;
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
$fstat = explode(".", $file);
if ($fstat[1] == "lic")
return $file;
}
closedir($dh);
}
}
$GetFile = GetFile("../../license/");
@$License = parse_ini_file_true("../../license/" . $GetFile, 1);
$TechPodUntilUnixTime = $License['License']['SupportExpires'];
if (is_numeric($TechPodUntilUnixTime))
$TechPodUntil = PHPShopDate::dataV($TechPodUntilUnixTime);
else
$TechPodUntil = " - ";
$LicenseUntilUnixTime = $License['License']['Expires'];
if (is_numeric($LicenseUntilUnixTime))
$LicenseUntil = PHPShopDate::dataV($LicenseUntilUnixTime);
else
$LicenseUntil = " - ";
if ($License['License']['Pro'] == 'Start') {
$product_name = 'Basic';
} else {
if ($License['License']['Pro'] == 'Enabled')
$product_name = 'Pro';
else
$product_name = 'Enterprise';
}
if (PHPShopSecurity::true_skin($_COOKIE['bootstrap_theme']))
$theme = ' + ' . $_COOKIE['bootstrap_theme'] . '.css';
else
$theme = null;
$version = null;
foreach (str_split($GLOBALS['SysValue']['upload']['version']) as $w)
$version.=$w . '.';
if(empty($License['License']['DomenLocked']))
$License['License']['DomenLocked']='-';
$Info = "
---------------------------------------------
" . $product_name . "
" . substr($version, 0, strlen($version)-1). "
" . $PHPShopSystem->getParam('skin') . " " . $theme . "
" . $FileDate . "
" . $LicenseUntil . "
" . $TechPodUntil . "
".$License['License']['DomenLocked']."
---------------------------------------------
" . date("Y") . "";
$_RESULT = array(
"info" => $Info,
'success' => 1
);
if ($_REQUEST['type'] == 'json') {
$_RESULT['info'] = PHPShopString::win_utf8($_RESULT['info']);
echo json_encode($_RESULT);
}
?>