Ejemplo n.º 1
0
<link rel="stylesheet" type="text/css" href="include/main.css">
<script>
    window.onunload = refreshParent;
    function refreshParent() {
        window.opener.location.reload();
    }
</script>
</head>
<body>
<?php 
$room = $_GET["r"];
$ip = $_GET["ip"];
require_once "class.php";
$testRoom = new roomControl();
$testRoom->url = 'http://' . $ip;
$testRoom->name = $room;
$testRoom->ip = $ip;
$testRoom->turnOnTable2();
sleep(1);
$testRoom->turnOnProjector2();
sleep(1);
$testRoom->turnOn32();
sleep(1);
$testRoom->turnOnAir_con2();
sleep(1);
closeWindows();
?>

</body>

</html>