Example #1
0
$CRBD3202->name = $room;
//$CRBD3202 ->checkStatus();
echo $CRBD3202->name . "<br>";
echo "<a href = 'turn_on.php?r=" . $CRBD3202->name . "&ip=" . $ip . "' target ='_blank'>On</a>||";
echo "<a href = 'turn_off.php?r=" . $CRBD3202->name . "&ip=" . $ip . "' target ='_blank'>Off</a>||";
echo "<a href = 'checkStatus.php?r=" . $CRBD3202->name . "&ip=" . $ip . "' target ='_blank'>Status</a>||";
echo "<br/><br/><br/>";
//CRBD3206
$room = "CRBD3206";
$ip = "10.10.96.123";
$CRBD3206 = new roomControl();
$CRBD3206->url = 'http://' . $ip;
$CRBD3206->name = $room;
//$CRBD3206 ->checkStatus();
echo $CRBD3206->name . "<br>";
echo "Computer is " . $CRBD3206->checkWindows($room) . "<br/>";
echo "<a href = '" . $CRBD3206->turnOffLink($room) . "' target = '_blank'>Turn off Windows</a> ||";
echo "<a href = 'turn_on.php?r=" . $CRBD3206->name . "&ip=" . $ip . "' target ='_blank'>On</a>||";
echo "<a href = 'turn_off.php?r=" . $CRBD3206->name . "&ip=" . $ip . "' target ='_blank'>Off</a>||";
echo "<a href = 'checkStatus.php?r=" . $CRBD3206->name . "&ip=" . $ip . "' target ='_blank'>Status</a>||";
echo "<br/><br/><br/>";
//CRBD3207
$room = "CRBD3207";
$ip = "10.10.96.124";
$CRBD3207 = new roomControl();
$CRBD3207->url = 'http://' . $ip;
$CRBD3207->name = $room;
//$CRBD3207 ->checkStatus();
echo $CRBD3207->name . "<br>";
echo "<a href = 'turn_on.php?r=" . $CRBD3207->name . "&ip=" . $ip . "' target ='_blank'>On</a>||";
echo "<a href = 'turn_off.php?r=" . $CRBD3207->name . "&ip=" . $ip . "' target ='_blank'>Off</a>||";
Example #2
0
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Test</title></head>
<body><br>3206&nbsp;&nbsp; <br>
<?php 
$room = $_GET["r"];
$ip = $_GET["ip"];
require_once "class.php";
$testRoom = new roomControl();
$testRoom->url = 'http://' . $ip;
$testRoom->name = $room;
$testRoom->checkStatus();
echo $testRoom->checkWindows($room);
//closeWindows();
?>
<br/>- Shutdown Windows<br>- Turn off power strip<br>- Turn off Projector&nbsp; <br><br></body>


</html>