<?php
// Screw licenses. This is too trivial. Use this code any way you want.
define('MOBILE_SITE_URL', 'http://example.com/m');
if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== FALSE ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== FALSE) {
header("Location: " . MOBILE_SITE_URL);
}
?>