<?php //for update IP to the DB $name = $_GET["r"]; //$ip = $_GET["ip"]; require_once "class.php"; $testRoom = new roomControl(); $testRoom->updateIP($name, $_SERVER['REMOTE_ADDR']); closeWindows(); //$testRoom->turnOffLink($name);