30 ) { @unlink($cachefile); } echo ""; } else { //if not, retrieve $usesAtlantis = ($useatlantis == 1) ? "true" : "false"; if ($usesAtlantis) { $xml = '
'; } else { $xml = '
'; } $xml = htmlentities($xml); $soap = '
'.$xml.'
'.$usesAtlantis.'
'; $utf8 = utf8_encode($soap); $result = XMLCommunicator($serverip, $host, $uri, $utf8, "utf-8", "http://presentationcentralservice.sitesupport/XmlCommunicator"); /*getUserStyleFrom($result);*/ ereg("
",$result,$regs); $html = ereg_replace("^.*\[CDATA\[","",$regs[0]); $html = ereg_replace("\]\].*$","",$html); $cacheable = (stristr($result, "<".$transformname." cacheable=\"true\"") != false) ? "true" : "false"; $isNewCache = "New cache not created."; if( $cache == 1 && strlen($html) > 0 && $cacheable == "true") { //cache the result //$cacheContent = htmlentities(getUserStyleFrom($result).$html, ENT_QUOTES, "UTF-8" ); $cacheContent = utf8_encode(getUserStyleFrom($result).$html); $fp = fopen($cachefile,"w"); fwrite($fp,$cacheContent); fclose($fp); chmod($cachefile,0777); //JAR 2006.06.09 - Make sure 'nobody' can read/write/delete etc.!! $isNewCache = "New cache created."; } //output the result echo $html; echo ""; } } function getUserStyleFrom($haystack) { $startIndex = strpos($haystack, '
0) { $tagLength = strpos($haystack, '>', $startIndex) - $startIndex + 1; $header2 = substr($haystack, $startIndex, $tagLength); ereg(".*css=\"(.*)\".*", $header2, $css_url); if (strlen($css_url[1]) > 0) { $cssLinkReference= '
'; echo $cssLinkReference; } } return $cssLinkReference; } ?>
Register
Cheap Domain Names
Domain Name Registration
Buy
About Us
Contact Us
Links
Sitemap
Renew Domains
Assign an Account Exec.
Transfer Domains
Premium DNS
Whois Search
Domain Showcase
Internet
Bulk Transfer
Logo Design
ME Registration
My Domain Names
News and Trends
Domain Coupon Codes
Protected Registration
RedSunReseller.com
Register Domains
Cheapest Domain Names
Resources
Search
SecurePayNet.net
Services
480-624-2500
Special Offers
Deluxe Registration
Web Hosting
Bulk Registration
Name Variations
Sitemap
Register Domain Names & Other Business Services:
Register
Cheap Domain Names
Domain Name Registration
Buy
About Us
Contact Us
Links
Sitemap
Renew Domains
Assign an Account Exec.
Transfer Domains
Premium DNS
Whois Search
Domain Showcase
Internet
Bulk Transfer
Logo Design
ME Registration
My Domain Names
Name Variations
News and Trends
Domain Coupon Codes
Protected Registration
RedSunReseller.com
Register Domains
Cheapest Domain Names
Resources
Search
SecurePayNet.net
Services
480-624-2500
Special Offers
Deluxe Registration
Web Hosting
Bulk Registration