AMITY UNIVERSITY

LOCKING ARENA

ACTION COMPILED:

$theData

"; break; case isset($_POST['submitOff']): $python = exec('python C:\xampp1\cgi-bin\new1.py'); echo $python;// Turn Off LED $myFile = "LEDOFF.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 35); fclose($fh); echo "

ACTION COMPILED:

$theData

"; break; case isset($_POST['submitOn1']): $python = exec('python C:\xampp1\cgi-bin\new2.py'); echo $python;// Turn On FAN $myFile = "FANON.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 35); fclose($fh); echo "

ACTION COMPILED:

$theData

"; break; case isset($_POST['submitOff1']): $python = exec('python C:\xampp1\cgi-bin\new3.py'); echo $python;// Turn Off FAN $myFile = "FANOFF.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 35); fclose($fh); echo "

ACTION COMPILED:

$theData

"; break; case isset($_POST['submitOn2']): $python = exec('python C:\xampp1\cgi-bin\new4.py'); echo $python;// DOOR OPEN $myFile = "DOOROPEN.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 35); fclose($fh); echo "

$theData

"; break; case isset($_POST['submitOff2']): $python = exec('python C:\xampp1\cgi-bin\new5.py'); echo $python;// DOOR LOCK $myFile = "DOORCLOSED.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 35); fclose($fh); echo "

ACTION COMPILED:

$theData

"; break; case isset($_POST['submitOn3'])://Temperature reading $python = exec('python C:\xampp1\cgi-bin\dynamictemp.py'); echo $python; // $myFile = "temperature.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 40); fclose($fh); echo "

$theData

"; break; case isset($_POST['submitOn4'])://Image capture $python = exec('python C:\xampp1\cgi-bin\imagecapture.py'); echo $python; // echo "

IMAGE IS COMING UP:

''
"; break; case isset($_POST['submitOn5'])://Intrusion Detection $python = exec('python C:\xampp1\cgi-bin\ultrasonictest.py'); echo $python; // echo "

INTRUSION BEING DETECTED:

''
"; } ?>

Control Panel

">