You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 91 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - What code to change? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Cody
Guest






PostPosted: Mon Jun 09, 2003 3:18 pm Reply with quoteBack to top

Hello,

I believe the code I need to change is somwhere withing this:

Code:

$sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=0";
$result = $db->sql_query($sql);
$member_online_num = $db->sql_numrows($result);
$who_online_now = "";
$i = 1;
while ($session = $db->sql_fetchrow($result)) {
    if (isset($session["guest"]) and $session["guest"] == 0) {
      $result1 = sql_query("select radminsuper from ".$prefix."_authors where aid='".$session[uname]."'", $dbi);
      list($radminsuper) = sql_fetch_row($result1, $dbi);
      if ($radminsuper==1) {
         $addAdmin = '(Admin)';
      }
        else $addAdmin='';

        if ($i < 10) {
            $who_online_now .= "0$i:&<A HREF=\"userinfo-.html$session[uname]\">$session[uname] $addAdmin</a><br>\n";
        } else {
            $who_online_now .= "$i:&<A HREF=\"userinfo-.html$session[uname]\">$session[uname] $addAdmin</a><br>\n";
        }
        $who_online_now .= ($i != $member_online_num ? "  " : "");
        $i++;
    }
}


Any ideas what I should change to only allow Administrators to view ANY part of the IP?

Thanks
Cody
Find all posts by Anonymous
Cody
Guest






PostPosted: Mon Jun 09, 2003 3:23 pm Reply with quoteBack to top

Oops, that was supposed to be a reply to my earlier post. I am attempting to make it to where only Administrators can view part of the IP, regular users can not.


Sorry--

Cody
Find all posts by Anonymous
Cody
Guest






PostPosted: Mon Jun 09, 2003 3:40 pm Reply with quoteBack to top

I have removed the following code:

Code:
while ($session = $db->sql_fetchrow($result)) {
    if (isset($session["guest"]) and $session["guest"] == 1) {
        if ($i < 10) {
            $gwho_online_now .= "0$i:&".convertIP($session[uname])."<br>\n";
        } else {
            $gwho_online_now .= "$i:&".convertIP($session[uname])."<br>\n";
        }
        $gwho_online_now .= ($i != $gmember_online_num ? "  " : "");
        $i++;
    }
}


This is had made to where NO ONE can see any IPs on the homepage; however, how can I make it to where the administrator still sees IPs?

Thanks
Cody
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.382 Seconds - 277 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::