<?php
error_reporting(0);

if (isset($_POST['poweron']))
{
    $curlHandle = curl_init('http://pivpn.1n9i9c7om.com:8123/api/webhook/-PIKLTm1a7tROw1sDKH-vwjR1');
    curl_setopt($curlHandle, CURLOPT_POST, true);
    curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);

    $curlResponse = curl_exec($curlHandle);
    curl_close($curlHandle);

    echo $curlResponse;
}


?>

<!DOCTYPE html>
<html>
<header>
<title>NICO - NAS Intelligent Control Operator</title> 
<link rel="stylesheet" href="main.css">
</header>
<body>

<center><h1>IT'S <s>PEANUTBUTTER</s> JELLYTIME</h1></center>

<form method="POST">
   <input class="button" type="submit" name="poweron" value="JELLYTIME" />
</form>
</body>
</html>