Only Admin can see users - Script Register Users

jaypzzle
Posts: 4

Only Admin can see users - Script Register Users

Please I would like to set this so only the admin can see Total users, Newest User, Online Users, in Script Register Users or for it to not be seen at all. Thanks for your answers and directives. You are really awesome....and so is your script.

Admin
Hello,
Try this:
1. In the allusers.php file replace the line of code:

Code: Select all

if(isset($_REQUEST['usr'])) {

with this:

Code: Select all

if(isset($_REQUEST['usr']) && isset($_SESSION['rank']) && $_SESSION['rank']==9){

2. In the usrbody.php file delete all this code (lines 62-67):

Code: Select all

<aside id="rightusr"><div id="userss">'.
$lsite['userpage']['totalusr'].'<span class="sb">'.$objUsers->users['total'].'</span><br/>'.
$lsite['userpage']['newusr'].$objUsers->users['last'].
 '<h5>'.$lsite['userpage']['online'].'</h5>
 <div id="useron">'.$objUsers->users['online'].'</div>
</div></aside>

Adv. Posts: 01

Similar Topics