From 6b5cd13e899bcd090ea8843d16724bb985e346ca Mon Sep 17 00:00:00 2001 From: Simplas920 <65673359+Simplas920@users.noreply.github.com> Date: Sun, 14 Jun 2020 19:24:00 +0000 Subject: [PATCH 1/4] =?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?= =?UTF-8?q?=20(LicenseAdmin)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpla/LicenseAdmin.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/simpla/LicenseAdmin.php b/simpla/LicenseAdmin.php index 49e3b7f..028eee4 100755 --- a/simpla/LicenseAdmin.php +++ b/simpla/LicenseAdmin.php @@ -57,6 +57,44 @@ public function fetch() $this->design->assign('license', $l); + + if (! $l->valid) { + $end = date("Y-m-d", time()+60*60*24*31); // на 31 день + $c = ''; + for($i=0; $idesign->assign('testlicense', $key); + } return $this->design->fetch('license.tpl'); } From e056be1c60030ca87c344f5b84b39bb06ace9d63 Mon Sep 17 00:00:00 2001 From: Simplas920 <65673359+Simplas920@users.noreply.github.com> Date: Sun, 14 Jun 2020 19:28:49 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpla/LicenseAdmin.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/simpla/LicenseAdmin.php b/simpla/LicenseAdmin.php index 028eee4..1c5c83c 100755 --- a/simpla/LicenseAdmin.php +++ b/simpla/LicenseAdmin.php @@ -66,9 +66,6 @@ public function fetch() $c .= rand(0,9); } $license = $h.'#'.$end.'#'.$c; - $p = 11; - $g = 2; - $x = 7; //rand(2, $p-1); $y = pow($g, $x) % $p; // same as x $message = bin2hex($license); From 84810f5db32cae59df9c8d5819430a2621e07320 Mon Sep 17 00:00:00 2001 From: Simplas920 <65673359+Simplas920@users.noreply.github.com> Date: Sun, 14 Jun 2020 19:30:55 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=D0=9B=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpla/design/html/license.tpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/simpla/design/html/license.tpl b/simpla/design/html/license.tpl index 51c00b8..f5da174 100755 --- a/simpla/design/html/license.tpl +++ b/simpla/design/html/license.tpl @@ -20,7 +20,15 @@
- Проверить лицензию + {if $license->valid} + {if $license->expiration != '*'} + Купить лицензию + {else} + Проверить лицензию + {/if} + {else} + + {/if}
From 978f01d8675fbace0ffde324d838a2c611afa10b Mon Sep 17 00:00:00 2001 From: Simplas920 <65673359+Simplas920@users.noreply.github.com> Date: Sun, 14 Jun 2020 19:57:16 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpla/design/html/license.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpla/design/html/license.tpl b/simpla/design/html/license.tpl index f5da174..ac22463 100755 --- a/simpla/design/html/license.tpl +++ b/simpla/design/html/license.tpl @@ -3,7 +3,7 @@ {/capture} -
+