From 7adc366ffe6deab3067d8542e96958ef82147bf3 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Thu, 21 Jan 2021 11:44:23 -0800 Subject: [PATCH] refactor: customized registration.page removed duplicated code --- dynamix.unraid.net.plg | 105 ++++++++++++++++++++++------------------- 1 file changed, 56 insertions(+), 49 deletions(-) diff --git a/dynamix.unraid.net.plg b/dynamix.unraid.net.plg index d97866fd2..58061e908 100644 --- a/dynamix.unraid.net.plg +++ b/dynamix.unraid.net.plg @@ -2373,7 +2373,6 @@ function my_time_any($time) { function my_time_now($time) { return $time ? _(my_time($time),0) : _('Unknown'); } -$attached_devices=sprintf(_("This server has %s attached storage device".($var['deviceCount']==1?'.':'s.')),$var['deviceCount']); ?> + _(Thank you for trying Unraid OS)_! - + + + _(Thank you for choosing Unraid OS)_! + +
:registration_1_plug: Your server will not be usable until you purchase a Registration key or install a free 30-day *Trial* key. A *Trial* @@ -2410,6 +2414,7 @@ Note: USB memory card readers are generally **not** supported because most do no +
:registration_3_plug: Your *Trial* key includes all the functionality and device support of a *Pro* Registration key. @@ -2420,36 +2425,30 @@ At that point, you may either purchase a Registration key, or request a *Trial* :end
-_(***Trial*** key expires on)_: -: - +
_(Cannot connect to key-server)_! _(Your *Trial* key requires an internet connection)_. _(Please check your)_ [_(Network Settings)_](NetworkSettings).
-_(***Trial*** key expires on)_: -: - +
_(Release has been withdrawn)_! _(This release has been withdrawn for use with *Trial* keys)_.
-_(***Trial*** key expires on)_: -: - +
_(Your *Trial* key has expired)_. :registration_4_plug: @@ -2462,6 +2461,7 @@ Most *Trial* extension requests are processed immediately but please allow up to + _(Invalid *Trial* Installation)_
:registration_5_plug: @@ -2473,21 +2473,10 @@ For more information, please [Contact Support](https://lime-technology.com/conta :end
-_(Registered GUID)_: -: - -_(Registered to)_: -: - -_(Registered on)_: -: - -_(Expiration)_: -: - + _(Missing Key File)_
:registration_6_plug: @@ -2503,8 +2492,11 @@ If this was a *Trial* installation, you may purchase a Registration key. + _(The registered GUID does not match the USB Flash boot device GUID)_ + +
:registration_7_plug: *Trial* installations are only valid with the originally registered USB Flash device. @@ -2512,7 +2504,9 @@ If this was a *Trial* installation, you may purchase a Registration key. To continue using this installation with this USB Flash device, you may purchase a Registration key. :end
+ +
:registration_8_plug: The Registration key file does not correspond to the USB Flash boot device. @@ -2526,31 +2520,12 @@ another replacement key sooner, [Contact Support](https://lime-technology.com/co **Note:** Replacing a Registration key results in permanently *blacklisting* the previous USB Flash GUID. :end
- - -_(Registered GUID)_: -: - -_(Registered to)_: -: - -_(Registered on)_: -: - - - -_(Expiration): -: - - - -_(Replaceable)_: -: + _(Blacklisted USB Flash GUID)_
:registration_9_plug: @@ -2566,19 +2541,39 @@ For more information, please [Contact Support](https://lime-technology.com/conta - + + +_(***Trial*** key expires on)_: +: + + + + + +_(Expiration)_: +: + + + + + _(Registered to)_: : _(Registered on)_: : -_(Replaceable)_: -: + + + + +_(Registered GUID)_: +: + _(Error accessing your physical USB Flash boot device)_
_(There is a physical problem accessing your USB Flash boot device)_. _(Please)_ [Contact Support](https://lime-technology.com/contact). @@ -2588,18 +2583,30 @@ _(Flash GUID)_: +_(Flash GUID)_: +: + + + _(Flash Vendor)_: : _(Flash Product)_: : -_(Flash GUID)_: -: + + +_(Replaceable)_: +: + + + + + +
-
]]>