Forum Moderators: coopster
Parse error: syntax error, unexpected ';' in /home/close/public_html/external/index.php on line 18 is the error I get and this is the code:
<?php
session_start();
if(!empty($url))
{
session_start();
session_unregister("exitLink");
session_register("exitLink");
$exitLink = $url;
header("Location: /external/");
exit;
}
if(empty($url) &&!empty($exitLink))
{
session_start();
echo?>
<html>
<head>
<title>Find4Close.com External Viewer</title>
<script type="text/javascript">
top.window.moveTo(0,0);
if (document.all)
{
top.window.resizeTo(screen.availWidth,screen.availHeight);
} else if (document.layers¦¦document.getElementById) {
if (top.window.outerHeight<screen.availHeight¦¦top.window.outerWidth<screen.availWidth)
{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
</script>
</head>
<body style="background-color: #FFFFFF; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" oncontextmenu="return false;">
<table width="100%" style="height: 100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr onClick="javascript:window.close();" onMouseOver="this.style.backgroundColor='#F6F6F6'; this.style.cursor='pointer'" onMouseOut="this.style.backgroundColor=''">
<td height="20" align="right" valign="middle"><span style="color: #000000; font-size: 11px; line-height: 11px; font-family: verdana;">« Close Window To Go Back to Find4close.com</span> </td>
</tr>
<tr>
<td align="center" valign="middle"><iframe name="extlink" src="<?php echo("$exitLink");?>" marginwidth="0" marginheight="0" width="100%" height="100%" frameborder="0" scrolling="auto" oncontextmenu="return false;"></iframe></td>
</tr>
</table>
</body>
</html>
<?php
exit;
} else {
session_start();
session_unregister("exitLink");
header("Location: [$HTTP_HOST...]
exit;
}
?>
echo?>
To just this:
?>
Good luck! :)