samflash
New Member
Hi, I am adding a HTML/CSS version to a flash website. I didn't design the website - www.shaneblack.ie
I want to change the following PHP code so that if the browser is an iPod or iPad that it will go to my CSS/HTML version of the website - http://www.shaneblack.ie/indeHTML.html
Here's the code. Does anyone know how to change this to do what is needed, please.
I want to change the following PHP code so that if the browser is an iPod or iPad that it will go to my CSS/HTML version of the website - http://www.shaneblack.ie/indeHTML.html
Here's the code. Does anyone know how to change this to do what is needed, please.
<?php
// Include application details
include("_classes/Application.php");
//define("CONFIG_WEBCRAWLER_TEST", 1);
_import("local.WebCrawler");
// Create crawler object
$crawler = new WebCrawler("homepage");
// If crawler, get contents to display
if($crawler->isCrawler) {
$crawler->setXmlPage("content_get.php?id=homepage");
$crawler->addField("Title", "/", "title");
$crawler->addField("Content", "/", "", "html");
}
else {
/*
Only show enter page if flash isn't installed
// Set cookie to skip intro (keep cookie for 2 weeks)
_import("Cookies");
// Set cookie each time
Cookies::set("skip_enter_page", 1, 14);
*/
}
// Display flash or crawler html (requiredFlashVersion)
$crawler->display(8);
?>
// Include application details
include("_classes/Application.php");
//define("CONFIG_WEBCRAWLER_TEST", 1);
_import("local.WebCrawler");
// Create crawler object
$crawler = new WebCrawler("homepage");
// If crawler, get contents to display
if($crawler->isCrawler) {
$crawler->setXmlPage("content_get.php?id=homepage");
$crawler->addField("Title", "/", "title");
$crawler->addField("Content", "/", "", "html");
}
else {
/*
Only show enter page if flash isn't installed
// Set cookie to skip intro (keep cookie for 2 weeks)
_import("Cookies");
// Set cookie each time
Cookies::set("skip_enter_page", 1, 14);
*/
}
// Display flash or crawler html (requiredFlashVersion)
$crawler->display(8);
?>