RevCMS Template problem

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669
NOT HABBO
So, I am making a theme with RevCMS, but this is not habbo related. For some reason, the template {username} isn't working when I log in.


PHP:
            <?php if(!isset($_SESSION['user']['id']))
 
            {
 
                echo "<ul class='nav'><li><a href='#about'>{username}</a></li></ul>";
 
            }
 
            else {
 
            echo "<form class='navbar-form pull-right' action='index' method='post'>
 
              <input class='span2' type='text' id='username' placeholder='username'>
 
              <input class='span2' type='password' placeholder='Password'>
 
              <input type='submit' name='login' value='Login' style='margin-right:2px; width: 104px;'/>
 
            </form>
 
            ";
 
          }
 
          ?>
Comes out as
 

ViiTactiiCZz

Member
Mar 19, 2013
35
5
Code:
<?php
if (isset($_SESSION['user']['id'])) {
    ?>
    <ul class='nav'><li><a href='#about'>{username}</a></li></ul>
    <?php
} else {
    ?>
    <form class='navbar-form pull-right' action='index' method='post'>
 
        <input class='span2' type='text' id='username' placeholder='username'>
 
        <input class='span2' type='password' placeholder='Password'>
 
        <input type='submit' name='login' value='Login' style='margin-right:2px; width: 104px;'/>
 
    </form>
    <?php
}
?>
 

Users who are viewing this thread

Top