Permalink
Browse files

Add Webhook to Warning Light

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 19, 2018
1 parent 81098ee commit 1c65994a60d03b0da0c39cb8d13a86359047c604
Showing with 25 additions and 0 deletions.
  1. +25 −0 config/index.php
@@ -108,6 +108,7 @@
// only need to include the conf options that are included in NEMS SST. The rest will be re-written from existing values.
$nemsconf['osbpass'] = sanitize($_POST['osbpass']);
$nemsconf['osbkey'] = sanitize($_POST['osbkey']);
$nemsconf['webhook'] = sanitize($_POST['webhook']);
$nemsconf['alias'] = preg_replace("/&#?[a-z0-9]{2,8};/i","",sanitize($_POST['alias']));
$nemsconf['allowupdate'] = intval($_POST['allowupdate']) ?: 5;
$nemsconf['checkin.enabled'] = intval($_POST['checkin_enabled']) ?: 0;
@@ -404,6 +405,30 @@ function sanitize($string) {
}
?>

</div>

<div class="row" style="background: #fff; margin: 0;">

<?php
if (ver('nems') >= 1.5) {
?>
<div class="col-md-4">
<header>Webhook URL</header>
<fieldset>
<section>
<label class="label">Webhook URL</label>
<label class="input">
<i class="icon-append fa fa-user"></i>
<input type="text" name="webhook" placeholder="" value="<?= $nemsconf['webhook'] ?>">
<b class="tooltip tooltip-bottom-right">Enter your webhook URL</b>
</label>
</section>
</fieldset>
</div>
<?php
}
?>

</div>

<header>Optional Services</header>

0 comments on commit 1c65994

Please sign in to comment.