Permalink
Browse files

Merge branch 'master' of https://github.com/Cat5TV/nems-www

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 26, 2018
2 parents b3717b2 + 0421bed commit 341a6d36862673788f2d808e9078f95ae92dd5cf
Showing with 13 additions and 0 deletions.
  1. +13 −0 config/index.php
@@ -109,6 +109,7 @@
$nemsconf['osbpass'] = sanitize($_POST['osbpass']);
$nemsconf['osbkey'] = sanitize($_POST['osbkey']);
$nemsconf['alias'] = preg_replace("/&#?[a-z0-9]{2,8};/i","",sanitize($_POST['alias']));
$nemsconf['allowupdate'] = intval($_POST['allowupdate']) ?: 1;
$nemsconfoutput = '';
foreach ($nemsconf as $key=>$value) {
$nemsconfoutput .= $key . '=' . $value . PHP_EOL;
@@ -185,6 +186,18 @@ function sanitize($string) {
<b class="tooltip tooltip-bottom-right">Give This NEMS Server a Unique Name</b>
</label>
</section>
<?php if (ver('nems') >= 1.5) { ?>
<section>
<label class="label">NEMS Update</label>
<label class="select">
<select name="allowupdate">
<option value="1"<?php if (!isset($nemsconf['allowupdate']) || $nemsconf['allowupdate'] == 1) echo ' SELECTED'; ?>>Keep this NEMS server up to date</option>
<option value="2"<?php if (isset($nemsconf['allowupdate']) && $nemsconf['allowupdate'] == 2) echo ' SELECTED'; ?>>Do not update this NEMS server</option>
</select>
<i></i>
</label>
</section>
<?php } ?>
</fieldset>
</div>

0 comments on commit 341a6d3

Please sign in to comment.