Adds new panel for admin, supermod and mod
in blocks/loginblock.php
find
replace with
in header.php
find
replace with
Add the new cps and add images to images/admin :D
in blocks/loginblock.php
find
<center><a href="account.php"><?php echo T_("ACCOUNT"); ?></a> <br />
<?php if ($CURUSER["control_panel"]=="yes") {print("<a href=\"admincp.php\">".T_("STAFFCP")."</a>");}?>
</center>replace with
<center><a href="account.php"><?php echo T_("ACCOUNT"); ?></a>
<?php if($CURUSER["class"]=="5") {print ("<br/><a href=modcp.php>".T_("STAFFCP")."</a>");}?>
<?php if($CURUSER["class"]=="6") {print ("<br/><a href=smodcp.php>".T_("STAFFCP")."</a>");}?>
<?php if($CURUSER["class"]=="7") {print("<br/><a href=\"admincp.php\">".T_("STAFFCP")."</a>");}?>
</center>in header.php
find
if ($CURUSER["control_panel"]=="yes") {
print("[<a href='admincp.php'>".T_("STAFFCP")."</a>] ");
}replace with
if ($CURUSER["class"]>"7") {
print("<a class='admincp' href=admincp.php>AdminCP</a> ");
}
if ($CURUSER["class"]>"6") {
print("<a class='admincp' href=smodcp.php>SmodCP</a> ");
}
if ($CURUSER["class"]>"5") {
print("<a class='admincp' href=modcp.php>ModCP</a> ");
}Add the new cps and add images to images/admin :D
