From 504ceca35b2dd5b62fb21c5e64673ea36046a5a5 Mon Sep 17 00:00:00 2001 From: Simplas920 <65673359+Simplas920@users.noreply.github.com> Date: Wed, 20 May 2020 20:53:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B4=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BB=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Продление лицензии * Продление лицензии --- simpla/LicenseAdmin.php | 8 ++++++++ simpla/design/html/license.tpl | 1 + 2 files changed, 9 insertions(+) diff --git a/simpla/LicenseAdmin.php b/simpla/LicenseAdmin.php index ffbdd48..0d43246 100755 --- a/simpla/LicenseAdmin.php +++ b/simpla/LicenseAdmin.php @@ -37,6 +37,14 @@ public function fetch() $this->design->assign('license', $l); + if ($l->valid) { + if ($result = file_get_contents("http://license.simplacommerce.com/index.php?host=".$_SERVER['HTTP_HOST'])) + { + $tl = result; + $this->design->assign('testlicense', $tl); + } + } + return $this->design->fetch('license.tpl'); } diff --git a/simpla/design/html/license.tpl b/simpla/design/html/license.tpl index 012e684..d73f74d 100755 --- a/simpla/design/html/license.tpl +++ b/simpla/design/html/license.tpl @@ -13,6 +13,7 @@

Лицензия действительна {if $license->expiration != '*'}до {$license->expiration}{/if} для домен{$license->domains|count|plural:'а':'ов'} {foreach $license->domains as $d}{$d}{if !$d@last}, {/if}{/foreach}

{else}

Лицензия недействительна

+ {/if}