Files
webgui/plugins/dynamix/Registration.page
2016-07-07 15:58:43 -07:00

263 lines
7.5 KiB
Plaintext

Menu="About"
Title="Registration"
Type="xmenu"
---
<?PHP
/* Copyright 2005-2016, Lime Technology
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<?
function my_time2($time) {
return $time ? my_time($time) : "Anytime";
}
?>
<style>
.thanks{padding-left:10px;color:#6FA239;font-weight:bold;}
.thanks.red{color:#CC0000;}
.remark{padding:0 10px;text-align:justify;}
</style>
<?if (strstr($var['regTy'], "error")):?>
Flash GUID:
: **Error** - <a href="https://lime-technology.com/contact" target="_blank">Contact Support</a>
> There is some kind of error accessing your physical USB Flash boot device.
<?endif;?>
<?if (strstr($var['regTy'], "blacklisted")):?>
Flash GUID:
: <?=$var['flashGUID'];?>
&nbsp;
: **Blacklisted** - <a href="https://lime-technology.com/contact" target="_blank">Contact Support</a>
> Your USB Flash boot device has been *blacklisted*. This can occur as a result of transfering your key to
> a replacement USB Flash device. USB Flash devices may also be *blacklisted* when it is discovered that the
> GUID is not uninque (this is common with USB card readers).
<?endif;?>
<?if (strstr($var['regTy'], "invalid")):?>
<form markdown="1" method="GET" action="https://lime-technology.com/getkey" target="_blank">
<input type="hidden" name="TrialGUID" value="<?=$var['flashGUID'];?>">
<input type="hidden" name="deviceCount" value="<?=$var['deviceCount'];?>">
<span class='thanks red'>The registered GUID does not match the USB Flash boot device GUID</span>
Flash GUID:
: <?=$var['flashGUID'];?>
Registered GUID:
: <?=$var['regGUID'];?>
Registered to:
: <big><?=$var['regTo'];?></big>
Registered on:
: <?=my_time($var['regTm']);?>
<?if (strstr($var['regTy'], "Trial")):?>
Expiration:
: <?=my_time($var['regTm2']);?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Purchase Key">
<?else:?>
Replaceable:
: <?=my_time2($var['regTm2']);?>
<?if ($var['regTm2']==0 || $var['regTm2']<time()):?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Purchase Key"> <input type="button" value="Replace Key" onclick="openBox('/webGui/include/ReplaceKey.php','Replace Key',600,900);">
<?else:?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Purchase Key"> <input type="button" value="Replace Key" disabled>
<?endif;?>
<?endif;?>
</form>
<?endif;?>
<?if (strstr($var['regTy'], "missing")):?>
<form markdown="1" method="GET" action="https://lime-technology.com/getkey" target="_blank">
<input type="hidden" name="TrialGUID" value="<?=$var['flashGUID'];?>">
<input type="hidden" name="deviceCount" value="<?=$var['deviceCount'];?>">
<span class='thanks red'>Key file is missing.</span>
Flash GUID:
: <?=$var['flashGUID'];?>
Registered GUID:
: <?=$var['regGUID'];?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Purchase Key">
</form>
<?endif;?>
<?if (strstr($var['regTy'], "unregistered")):?>
<form markdown="1" method="GET" action="https://lime-technology.com/getkey" target="_blank">
<input type="hidden" name="TrialGUID" value="<?=$var['flashGUID'];?>">
<input type="hidden" name="deviceCount" value="<?=$var['deviceCount'];?>">
<span class="thanks">Thank you for trying unRAID Server OS!</span>
<div markdown="1" class="remark">
Your server will not be usable until you purchase a registration key or install a <big>**free** 30-day *Trial*</big> key.
<br>Registration keys are bound to your USB Flash boot device GUID (serial number). Please use a high-quality device
between 512MB and 32GB in size.
<span class="red-text">Important:</span>
+ Please make sure your <u>[server time](DateTime)</u> is accurate to within 5 minutes.
+ Please make sure there is a <u>[DNS server](NetworkSettings)</u> specified.
</div>
Flash GUID:
: <?=$var['flashGUID'];?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Purchase Key"> <input type="button" value="Get Trial Key" onclick="openBox('/webGui/include/TrialRequest.php','Get Trial Key',600,900);">
</form>
<?endif;?>
<?if (strstr($var['regTy'], "expired")):?>
<form markdown="1" method="GET" action="https://lime-technology.com/getkey" target="_blank">
<input type="hidden" name="TrialGUID" value="<?=$var['flashGUID'];?>">
<input type="hidden" name="deviceCount" value="<?=$var['deviceCount'];?>">
<span class="thanks">Thank you for trying unRAID Server OS!</span>
<div markdown="1" class="remark">
<span class='red-text'>Your *Trial* key has expired.</span>
To continue using unRAID Server OS you may purchase a registration key. Alternately, you may request a *Trial* extension key.
**Note:** most *Trial* extension requests are processed immediately but please allow up to one business day to receive your *Trial* extension key.
</div>
Flash GUID:
: <?=$var['flashGUID'];?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Purchase Key"> <input type="button" value="Request Extension" onclick="openBox('/webGui/include/TrialRequest.php','Request Trial Extension Key',600,900);">
</form>
<?endif;?>
<?if ($var['regTy']=="Trial"):?>
<form markdown="1" method="GET" action="https://lime-technology.com/getkey" target="_blank">
<input type="hidden" name="TrialGUID" value="<?=$var['flashGUID'];?>">
<input type="hidden" name="deviceCount" value="<?=$var['deviceCount'];?>">
<span class="thanks">Thank you for trying unRAID Server OS!</span>
***Trial*** key expires on:
: <?=my_time($var['regTm2']);?>&nbsp;
Flash GUID:
: <?=$var['flashGUID'];?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Purchase Key">
</form>
<?endif;?>
<?if ($var['regTy']=="Basic"):?>
<span class="thanks">Thank you for choosing unRAID Server OS!</span>
Registered to:
: <big><?=$var['regTo'];?></big>
Registered on:
: <?=my_time($var['regTm']);?>
Replaceable:
: <?=my_time2($var['regTm2']);?>
<form markdown="1" method="GET" action="https://lime-technology.com/getkey" target="_blank">
<input type="hidden" name="BasicGUID" value="<?=$var['flashGUID'];?>">
<input type="hidden" name="deviceCount" value="<?=$var['deviceCount'];?>">
Flash GUID:
: <?=$var['flashGUID'];?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Upgrade">
</form>
<?endif;?>
<?if ($var['regTy']=="Plus"):?>
<span class="thanks">Thank you for choosing unRAID Server OS!</span>
Registered to:
: <big><?=$var['regTo'];?></big>
Registered on:
: <?=my_time($var['regTm']);?>&nbsp;
Replaceable:
: <?=my_time2($var['regTm2']);?>
<form markdown="1" method="GET" action="https://lime-technology.com/getkey" target="_blank">
<input type="hidden" name="PlusGUID" value="<?=$var['flashGUID'];?>">
<input type="hidden" name="deviceCount" value="<?=$var['deviceCount'];?>">
Flash GUID:
: <?=$var['flashGUID'];?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="submit" value="Upgrade">
</form>
<?endif;?>
<?if ($var['regTy']=="Pro"):?>
<span class="thanks">Thank you for choosing unRAID Server OS!</span>
Registered to:
: <big><?=$var['regTo'];?></big>
Registered on:
: <?=my_time($var['regTm']);?>&nbsp;
Replaceable:
: <?=my_time2($var['regTm2']);?>
Flash GUID:
: <?=$var['flashGUID'];?>
<?=$var['deviceCount'];?> Attached storage device(s)
: <input type="button" value="Done" onclick="done()">
<?else:?>
&nbsp;
: <input type="button" value="Done" onclick="done()">
<?endif;?>