RevCMS HK Fixing, help pls.

Jan 7, 2016
194
15
Hi, before you ask did I even search? Yes. Did I try the fix?: yes. Did it work: Obviously not if I am asking for help, my HK / ase keeps saying incorrect access level everytime I try to login.

My dash code is ->
Code:
 <div id="main">
    <div id="links"></div>
    <div id="header">
      <div id="logo">
        <div id="logo_text">
          <!-- class="logo_colour", allows you to change the color of the logo text -->
          <h1>ASE</h1>
        </div>
      </div>
    </div>
    <div id="site_content">
      <div id="sidebar_container">
        <!-- insert your sidebar items here -->
        <div class="sidebar">
          <div class="sidebar_top"></div>
          <div class="sidebar_item">
           <br />
           [ <a href='index.php?url=dash'>Return to Dashboard</a> ] [ <a href='index.php?url=logout'>Log out</a> ]<br /> <br />
            <p>
            <?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 8) { ?>
            Player Management <br /> <img src='../app/tpl/skins/<?php echo $_CONFIG['template']['style']; ?>/hk/images/line.png'> <br />
            &raquo; <a href='index.php?url=sub'>Last 50 VIP purchases</a> <br />
            &raquo; <a href='index.php?url=vip'>Give a user Regular VIP</a> <br />
            &raquo; <a href='index.php?url=svip'>Give a user Super VIP</a> <br />
            &raquo; <a href='index.php?url=edit'>Edit a users account</a> <br />
            <br />
            Administration <br /> <img src='../app/tpl/skins/<?php echo $_CONFIG['template']['style']; ?>/hk/images/line.png'> <br />
            &raquo; <a href='index.php?url=news'>Post news article</a><br />
            <br />
            <?php } if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 8) { ?>
            Moderation <br /> <img src='../app/tpl/skins/<?php echo $_CONFIG['template']['style']; ?>/hk/images/line.png'> <br />
            &raquo; <a href='index.php?url=banlist'>Ban List</a> <br />
            &raquo; <a href='index.php?url=ip'>IP lookup</a> <br />
            <br />
           
            <?php } ?>
            <br />
            Statistics<br />
            <img src='../app/tpl/skins/<?php echo $_CONFIG['template']['style']; ?>/hk/images/line.png'> <br />
                    Server Status:
            {status} <br />
            {online} user(s) online <br />
   
            </p>
          </div>
          <div class="sidebar_base"></div>
        </div>
      </div>
      <div id="content_container">

        <div id="content">
          <!-- insert the page content here -->
          <br />         

          <?php

echo "<center>Please choose an option from the menu to the left.</center>";

?>

        </div>

      </div>
    </div>
  </div>
   <center>Powered by ZapASE by Jontycat - Design by Predict</center>
   <center>Implemented into RevCMS by Kryptos</center><br />
I even tried changing the lines to 8 and the database rank to 8 but no go.
 
Jan 7, 2016
194
15
<div id="main">
<div id="links"></div>
<div class="header" id="login">
</div>
<div id="site_conten" class="login">
<div id="content_container" class="login">

<div id="content" class="login">
<!-- insert the page content here -->
<h1>{hotelName} ASE</h1>
<p>Welcome to the {hotelName} Hotel All Seeing Eye. Your IP has been logged (<?php echo $_SERVER["REMOTE_ADDR"]; ?>)
Please note any attempt to brute-force or exploit this system will be noticed by Zap administration so if you do not have clearance to this area, fuck off. <br /></p>

<?php echo $template->form->error; ?>

<br />
<form method="post" action="index.php?url=login">
Username: <br /> <input type="text" name="username" class="login"/> <br /> <br />
Password: <br /> <input type="password" name="password" class="login"/> <br /> <br /><br />
<input type="submit" value="Log into ASE" name="login" class="login"/>
</form><br /><br /> <center>Powered by ZapASE by Jontycat - Design by Predict</center>
<center>Implemented into RevCMS by Kryptos</center><br />
</div>
</div>
</div>
</div>
 

BIOS

ಠ‿ಠ
Apr 25, 2012
906
247
My user is ranked 7 just like the other files
I'm not sure as I can't see the entire thing but I can see (from what you have provided) that some elements require you to be rank 8 or greater.

My dash code is ->

Code:
<?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 8){ ?>

<?php }if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 8){ ?>
I believe there may be a config or rank variable somewhere within the HK that you can modify to a lower rank number, as it may be currently set to rank 8 also.
 

Users who are viewing this thread

Top