Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 74
Member
Member
Offline
Joined: Feb 2001
Posts: 74
I'm not really a Perl modder, but I was wanting to modify my CP so only a fellow admin and I could see the other Admin/Moderator's passwords. So far, it seems to work on our 6.3.1 system.
Quote
code:
Code
FIND:

if (($user_profile[8] eq 'Administrator') || ($user_profile[8] eq 'Moderator')) {
$user_profile[1] = $vars_wordlets_cp{memsearch_edit_passwd_noview};
}


REPLACE:
# Stop the other Admins from seeing Passwords
if (($ubbadmin[4] ne '00000000') && ($ubbadmin[4] ne '00000000')) {
if (($user_profile[8] eq 'Administrator') || ($user_profile[8] eq 'Moderator')) {
$user_profile[1] = $vars_wordlets_cp{memsearch_edit_passwd_noview};
}
}

Replace 00000000 with your UBB ID, and there you go. If you wish to be the only admin, remove
code:
[qb]
Code
&& ($ubbadmin[4] ne '00000000')
[/qb]
And if you wish to add more, simply add another && ($ubbadmin[4] ne '00000000') after it.

Special thanks to my Friend CmptrWz for helping me out.


{SFP} Sonic
Expecting the Unexpected!
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Nice Sonic, thanks for sharing smile


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Nifty, thanks for that. smile

Joined: Feb 2000
Posts: 59
Member
Member
Offline
Joined: Feb 2000
Posts: 59
Nice one! smile

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
The last thing I want is someone getting their password taken and having a hack give the invader the other admins and moderators passwords.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)