I'm having some problems with that func..
For example this works good:
PHP Code:
<p><?php echo $lang['text']; ?></p>
This works good too:
PHP Code:
<?
if (isset($_SESSION['user_id'])) {?>
<div class="myaccount">
<a href="account.php">»» My Account</a><br>
<a href="settings.php">»» Settings</a><br>
<a href="logout.php">»» Logout</a></div>
<? }
else {
echo '<span class="members_area">';
echo $lang["LOGIN_TITLE"]; // what i'm talking about..
echo '</span>';
echo '<a href="login.php" id="sign_in_btn" title="Sign In to your Account">';
echo '<img src="images/login.png" height="8" width="9" alt="Sign in icon">';
echo '<span>Sign In</span></a></a></li>';
echo '<p>';
echo '<script type="text/javascript" src="include/usersmysql.php?uvon=showon"></script>';
}
?>
But how to combine it here?
PHP Code:
$reout = '<div id="uvon"><h4>Online: '. ($nrusr+$nrvst). '</h4> Visitors: '. $nrvst. '<br/>Users: '. $nrusr. $usron. '</div>';
The "Online" / "Users" & "Visitors", how should
<?php echo $lang['text']; ?> work there?
Or this one; echo '<span>$lang["REGISTER_REGISTER"]</span></a>';