XHTML improvements

This commit is contained in:
Marc Delisle
2009-12-29 17:45:15 +00:00
parent 2519dd3855
commit e7d20c38bf
2 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ require_once './libraries/common.inc.php';
if ( false === $GLOBALS['cfg']['AllowThirdPartyFraming']) {
?>
<script type="text/javascript">
//<![CDATA[
try {
// can't access this if on a different domain
var topdomain = top.document.domain;
@@ -32,6 +33,7 @@ catch(e) {
alert("Redirecting... (error: " + e);
top.location.replace(self.document.URL.substring(0, self.document.URL.lastIndexOf("/")+1));
}
//]]>
</script>
<?php
}