2009-07-12, 10:01 PM
Hello!
I've met some problem with eval function after I installed mybb on windows (php 5.2.6).
I get these errors:
line 330:
header_welcomeblock_guest code:
I suppose there's problem with some special chars on windows.
This is fresh just-installed copy of mybb. It works fine on unix-like servers.
Is there any php configuration detail, I've missed?
Thanks.
I've met some problem with eval function after I installed mybb on windows (php 5.2.6).
I get these errors:
Parse error: syntax error, unexpected T_STRING in C:\server\mybb\global.php(330) : eval()'d code on line 2
line 330:
eval("\$welcomeblock = \"".$templates->get("header_welcomeblock_guest")."\";");
header_welcomeblock_guest code:
<!-- start: header_welcomeblock_guest -->
<script type="text/javascript">
<!--
lang.username = "{$lang->login_username}";
lang.password = "{$lang->login_password}";
lang.login = "{$lang->login}";
lang.lost_password = " — <a href=\"{$mybb->settings[''bburl'']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
lang.register_url = " — <a href=\"{$mybb->settings[''bburl'']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
// -->
</script>
<span style="float: right;">{$lang->welcome_current_time}</span>
<span id="quick_login">{$lang->welcome_guest} (<a href="{$mybb->settings[''bburl'']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> — <a href="{$mybb->settings[''bburl'']}/member.php?action=register">{$lang->welcome_register}</a>)</span>
<!-- end: header_welcomeblock_guest --><br />
I suppose there's problem with some special chars on windows.
This is fresh just-installed copy of mybb. It works fine on unix-like servers.
Is there any php configuration detail, I've missed?
Thanks.