Only Admin can see users - Script Register Users
-
- 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
Posts:805
Hello,
Try this:
1. In the allusers.php file replace the line of code:
with this:
2. In the usrbody.php file delete all this code (lines 62-67):
Try this:
1. In the allusers.php file replace the line of code:
Code: Select all
if(isset($_REQUEST['usr'])) {
Code: Select all
if(isset($_REQUEST['usr']) && isset($_SESSION['rank']) && $_SESSION['rank']==9){
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>