9
I'm using ZEND:
http://framework.zend.com/manual/1.11/en/zend.http.user-agent.html
It has an adapter class based on this script:
http://wurfl.sourceforge.net/
You can get the type of the user agent like this:
$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
$userAgent = $bootstrap->getResource('useragent');
$deviceType = $userAgent->getDevice()->getType();
$bootstrap->getResource('layout')->setLayout($deviceType);
$deviceType will hold 'mobile' or 'desktop'. In this example user will see mobile.phtml or desktop.phtml depending on the devide they are using.
Great thing is that Xoops 3.0 is using Zend!