<?php  
header("Content-type: text/xml"); 
$session = kerio("upnp::UpnpPhp"); 
$uuidIGD = "0"; 
$uuidWD = "0"; 
$uuidWCD = "0"; 
$session->getUuid($uuidIGD, "urn:schemas-upnp-org:device:InternetGatewayDevice:1"); 
$session->getUuid($uuidWD, "urn:schemas-upnp-org:device:WANDevice:1"); 
$session->getUuid($uuidWCD, "urn:schemas-upnp-org:device:WANConnectionDevice:1"); 
echo "<?xml version=\"1.0\"?>\n"; 
?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>Kerio WinRoute Firewall</friendlyName>
<manufacturer>Kerio</manufacturer>
<manufacturerURL>http://www.kerio.com/</manufacturerURL>
<modelName>Kerio WinRoute Firewall</modelName>
<modelDescription></modelDescription>
<modelNumber></modelNumber>
<UDN>uuid:<?php echo $uuidIGD;?></UDN>
<serviceList>
<service>
<serviceType>urn:schemas-kerio-com:service:Info:1</serviceType>
<serviceId>urn:kerio-com:serviceId:Info1</serviceId>
<controlURL>/desc/info.php</controlURL>
<eventSubURL>/desc/info.php</eventSubURL>
<SCPDURL>/desc/info.php</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice</friendlyName>
<manufacturer>Microsoft</manufacturer>
<manufacturerURL>http://www.microsoft.com/</manufacturerURL>
<modelDescription>Residential Gateway</modelDescription>
<modelName>Internet Connection Sharing</modelName>
<modelNumber>1</modelNumber>
<modelURL>http://www.microsoft.com/</modelURL>
<serialNumber>0000001</serialNumber>
<UDN>uuid:<?php echo $uuidWD;?></UDN>
<UPC>00000-00001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>
<controlURL>/control/control.php</controlURL>
<eventSubURL>/desc/wancic.php?name=urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</eventSubURL>
<SCPDURL>/desc/wancic.php</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice</friendlyName>
<manufacturer>Kerio Technologies</manufacturer>
<manufacturerURL>http://www.kerio.com/</manufacturerURL>
<modelDescription>Part of Kerio Internet Gateway Device</modelDescription>
<modelName>WinRoute Standard - Enterprise</modelName>
<modelNumber>1</modelNumber>
<modelURL>http://www.kerio.com/</modelURL>
<serialNumber>0000001</serialNumber>
<UDN>uuid:<?php echo $uuidWCD;?></UDN>
<UPC>00000-00001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>
<controlURL>/control/control.php</controlURL>
<eventSubURL>/desc/wanipc.php?name=urn:schemas-upnp-org:service:WANIPConnection:1</eventSubURL>
<SCPDURL>/desc/wanipc.php</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
</deviceList>
<?php
$session->getPresentationUrl($url); 
if ($url != "") { 
echo "<presentationURL>http://".$_SERVER['HTTP_HOST']."/".$url."</presentationURL>"; 
} 
?>
</device>
</root>
