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";
}
$device = my_word($var['deviceCount']);
$plural = $var['deviceCount']==1 ? '' : 's';
?>
<style>
span.thanks{padding-left:10px;color:#6FA239;font-weight:bold;}
span.thanks.red{color:#F0000C;}
span.device{font-weight:normal;font-style:italic;}
div.remark{padding:0 10px;text-align:justify;}
</style>

<?if (strstr($var['regTy'], "error")):?>

<span class='thanks red'>Error accessing your physical USB Flash boot device</span>

Flash GUID:
: <a href="https://lime-technology.com/contact" target="_blank">Contact Support</a>

<?endif;?>

<?if (strstr($var['regTy'], "blacklisted")):?>

<span class='thanks red'>Blacklisted USB Flash GUID</span>

Flash GUID:
: <?=$var['flashGUID'];?>

&nbsp;
: <a href="https://lime-technology.com/contact" target="_blank">Contact Support</a>

<div markdown="1" class="remark">
Your USB Flash boot device has been *blacklisted*. This can occur as a result of transfering your key to
a replacement USB Flash device.<br>
USB Flash devices may also be *blacklisted* when it is discovered the
GUID is not uninque (this is common with USB card readers).
</div>

<?endif;?>

<?if (strstr($var['regTy'], "invalid key")):?>
<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:
: <span class="big"><?=htmlspecialchars($var['regTo'])?></span>

Registered on:
: <?=my_time($var['regTm']);?>

<?if (strstr($var['regTy'], "Trial")):?>

Expiration:
: <?=my_time($var['regTm2']);?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <input type="submit" value="Purchase Key">

<?else:?>

Replaceable:
: <?=my_time2($var['regTm2']);?>

<?if ($var['regTm2']==0 || $var['regTm2']<time()):?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <input type="submit" value="Purchase Key"> <input type="button" value="Replace Key" onclick="openBox('/webGui/include/ReplaceKey.php','Replace Key',600,900);">

<?else:?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <input type="submit" value="Purchase Key"> <input type="button" value="Replace Key" disabled>

<?endif;?>
<?endif;?>
</form>
<?endif;?>

<?if (strstr($var['regTy'], "invalid installation")):?>
<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'>Invalid <em>Trial</em> Installation</span>

Flash GUID:
: <?=$var['flashGUID'];?>

Registered GUID:
: <?=$var['regGUID'];?>

Registered to:
: <span class="big"><?=htmlspecialchars($var['regTo'])?></span>

Registered on:
: <?=my_time($var['regTm']);?>

Expiration:
: <?=my_time($var['regTm2']);?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <input type="submit" value="Purchase Key">

</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'>Wrong or Missing Key file.</span>

Flash GUID:
: <?=$var['flashGUID'];?>

Registered GUID:
: <?=$var['regGUID'];?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <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 <span class="big">**free** 30-day *Trial*</span> 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'];?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <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'];?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <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'];?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <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:
: <span class="big"><?=htmlspecialchars($var['regTo'])?></span>

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'];?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <input type="submit" value="Upgrade">

</form>
<?endif;?>

<?if ($var['regTy']=="Plus"):?>

<span class="thanks">Thank you for choosing unRAID Server OS!</span>

Registered to:
: <span class="big"><?=htmlspecialchars($var['regTo'])?></span>

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'];?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <input type="submit" value="Upgrade">

</form>
<?endif;?>

<?if ($var['regTy']=="Pro"):?>

<span class="thanks">Thank you for choosing unRAID Server OS!</span>

Registered to:
: <span class="big"><?=htmlspecialchars($var['regTo'])?></span>

Registered on:
: <?=my_time($var['regTm']);?>&nbsp;

Replaceable:
: <?=my_time2($var['regTm2']);?>

Flash GUID:
: <?=$var['flashGUID'];?>

<span class="device">This system has <?=$device?> attached storage device<?=$plural?>.</span>
: <input type="button" value="Done" onclick="done()">

<?else:?>

&nbsp;
: <input type="button" value="Done" onclick="done()">

<?endif;?>
