vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Restrict Access to Your Profile from other Admins... (https://vborg.vbsupport.ru/showthread.php?t=37382)

Chris M 04-12-2002 10:00 PM

Restrict Access to Your Profile from other Admins...
 
Quote:

Thanks to nicksaunders for help with this...

If you need any help with problems you may experience, please contact :

hellsatan


In User.php (Admin Folder)


Add :
------

Quote:

if (($userid == "aa") && ($bbuserinfo[userid] == "bb" OR $bbuserinfo[userid] == "cc")) {
show_nopermission();
}

After :
-------

Quote:

return 1;

}

cpheader();

Key :
------

aa = your userid number
bb = another admins userid
cc = another admins userid

-------

This basically restricts the other admins from being able to view your profile, meaning that they cannot edit it at all...
(Version 1.0 is still available...)

Update : Version 2.0!!!

Well...I never thought there could be an update to this, but there is, so there:p...

Here is the new php code to insert into "admin/user.php", in the same place as before...

Click here for the new attachment...

This time, replace any instances of "aa" with your userid, and "bb" with anyone else you would like to be able to access your profile...

This makes it easier, as you need not add all the userid's of people you DONT want to view your profile, just the userid's of the people you DO want to be able to view your profile...

Satan

P.S. - The Attachment below is Version 1.0...

Chris M 04-13-2002 07:48 PM

TestAdmin1 is the account I added to test if they could access my profile...

They get the message below...

Satan

Chris M 04-13-2002 07:50 PM

This picture is when I access the Admin Cp, looking for my profile...

Satan

Scott MacVicar 04-14-2002 11:38 AM

why not try
PHP Code:

if(($userid "aa") && ($userid != $bbuserinfo[userid] || $bbuserinfo[userid] == "bb")) {
  echo 
"<p>You cannot edit this admins profile</p>";
  
cpfooter();
  exit;


just changed it to allow the userid to edit their own profile and so the error message looks more admin panel-ish.

Chris M 04-14-2002 02:40 PM

Cool...

Thanks PPN...

Looks alot better now...

Satan

Chris M 04-15-2002 12:00 PM

Coming Soon...

I am going to be updating this Hack very soon, and with it I am going to include a re-direct to the Find Users page, and, if my friend helps me, a password-override function incase anyone edits the admin/user.php file and makes it so you cannot access their profile, or worse yet, your own...

Satan

Alan Ang 04-26-2002 12:51 AM

hi PPN,

i tried to use your hack, but i realised that my aa cannot access to other user's profile except his own?

Quote:

Originally posted by PPN
why not try
PHP Code:

if(($userid "aa") && ($userid != $bbuserinfo[userid] || $bbuserinfo[userid] == "bb")) {
  echo 
"<p>You cannot edit this admins profile</p>";
  
cpfooter();
  exit;


just changed it to allow the userid to edit their own profile and so the error message looks more admin panel-ish.


Alan Ang 04-26-2002 01:08 AM

anyway, i tried to use this instead and it works well...

Quote:

if (($userid == "aa") && ($bbuserinfo[userid] == "bb" OR $bbuserinfo[userid] == "bb")) {
echo "<p>You cannot edit this admins profile</p>";
cpfooter();
exit;

}
but one problem though... i realised that the other admin can still access to the usergroup and he can modify the admin user group to disable the administrator from accessing the CP.

is there anyway to restrict other admins from accessing or editing the "Adminstrative Permissions" panel?

Alan Ang 04-26-2002 01:21 AM

hellsatan,

can we something similar to restrict a certain user group (eg, super moderator with CP access) from viewing and editing the admin usergroup?

:D

Neo 04-26-2002 01:23 AM

PHP Code:

if ($userid==&& $bbuserinfo[userid]!=1) {
  echo 
"<p>You cannot edit the main admins profile</p>";
  
cpfooter();
  exit;


this works perfect for me.

Alan Ang 04-26-2002 01:37 AM

thanks neo, works well for me too...

any idea how to restrict the other admin to access the usergroups and edit them?

Chris M 04-26-2002 01:39 PM

Not sure...

See This Thread

I have got an idea for it, but I need more time...With GCSEs and stuff...

Satan

Alan Ang 04-26-2002 02:03 PM

ok, hellsatan.

will wait for your good news.

Chris M 04-26-2002 06:50 PM

Goody Good...

I await my good news also...:D

Satan

ZiRu$ 04-26-2002 06:53 PM

I think that if you cant trust your admins, they shouldnt be admins

Chris M 04-26-2002 10:27 PM

Oh we can trust them...

Just some of them forget that some have been there longer...

This is just a reminder...

If the elder admins have SuperAdmin status, only they can remove other SuperAdmins...

Satan

Chris M 05-05-2002 02:44 PM

For you people with vbhacker, I made a file for you...

Not much:D

Satan

Chris M 06-21-2002 07:43 PM

Well...I never thought there could be an update to this, but there is, so there:p...

Here is the new php code to insert into "admin/user.php", in the same place as before...

PHP Code:

if (($userid == "aa") && ($userid != $bbuserinfo[userid] OR $bbuserinfo[userid] != "bb")) {
   print 
"You are not allowed to access this profile!!!";


This time, replace any instances of "aa" with your userid, and "bb" with anyone else you would like to be able to access your profile...

This makes it easier, as you need not add all the userid's of people you DONT want to view your profile, just the userid's of the people you DO want to be able to view your profile...

Satan


All times are GMT. The time now is 07:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01248 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete