<?php include "Includes/include.php"; include "Includes/telldus_functions.php"; $id = $_GET["UnitId"]; $level = $_GET["level"]; $name = $_GET["name"]; TelldusUnitDim($id, $level);
header("location:main.php"); } if ($_GET["status"] == "OFF") { $id = $_GET["id"]; TelldusUnitOFF("{$id}"); header("location:main.php"); } if ($_GET["status"] == "DIM") { $id = $_GET["id"]; $level = $_GET["level"]; $step = $_GET["step"]; $level = $level + $step; if ($level > 100) { $level = 100; } TelldusUnitDim("{$id}", "{$level}"); } if ($_GET["status"] == "Tellstick") { TelldusExportConfig(); header("location:main.php"); } if ($_GET["status"] == "Firewall") { ExportFirewallConfig(); header("location:main.php"); } $query = "SELECT * FROM TelldusUnits"; $result = mysql_query($query); $num = mysql_numrows($result); menysystem(); echo "<Table width=\"60%\"> <font face=\"Arial\" size=\"2\">"; $i = 0;