Find this line:
echo $context['html_headers'];
below it, write these:
// START iPhone, iPod, Safari Mobile, Adroid detect
echo '
<script type="text/javascript">
var agent = navigator.userAgent.toLowerCase();
var iphone = ((agent.indexOf(\'iphone\'))!=-1);
if (iphone) {window.location = "index.php?theme=3";}
var iphone = ((agent.indexOf(\'ipod\'))!=-1);
if (iphone) {window.location = "index.php?theme=3";}
var iphone = ((agent.indexOf(\'android\'))!=-1);
if (iphone) {window.location = "index.php?theme=3";}
var iphone = ((agent.indexOf(\'safari mobile\'))!=-1);
if (iphone) {window.location = "index.php?theme=3";}
</script>';
// END iPhone, iPod, Safari Mobile, Adroid detect
replace the theme=3 part with your iphone theme number!











