Example #1
0
<script>
    window.onunload = refreshParent;
    function refreshParent() {
        window.opener.location.reload();
    }
</script>
</head>
<body>
<?php 
$room = $_GET["r"];
$ip = $_GET["ip"];
require_once "class.php";
// Turnoff1 Only turn the Aircon off and also shutdown the PC
$testRoom = new roomControl();
$testRoom->url = 'http://' . $ip;
$testRoom->name = $room;
$testRoom->ip = $ip;
$testRoom->turnOffTable2();
sleep(2);
$testRoom->turnOffProjector2();
sleep(2);
$testRoom->turnOff32();
sleep(2);
$testRoom->turnOffAir_con2();
sleep(2);
closeWindows();
?>

</body>

</html>