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)
-   -   [final]Lesser Admin Cp... (https://vborg.vbsupport.ru/showthread.php?t=41556)

Chris M 07-30-2002 07:19 PM

Well I can guarantee that it does work...

I know myself - If there was ever a time I was grateful for it, was when someone hacked into The Lyceum, and tried to delete my account 10 times...

Satan

Chris M 07-30-2002 07:20 PM

Hmmm...

Search for :

Code:

if ($userid==X)
Replace X with the Id of a user you protected...

Satan

Night Owl 07-30-2002 07:33 PM

Here is my code:

PHP Code:

// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {
if ((
$userid==1) and ($bbuserinfo[userid]!=1)) {  
echo 
"<p>You cannot update this Admin.</p>";
  
cpfooter();
  exit;
}
if ((
$usergroupid==17) and ($bbuserinfo[usergroupid]!=6)) {  
echo 
"<p>You cannot update this Admin.</p>";
  
cpfooter();
  exit;


OK. The can't update is working on me, user 1. So, to make it work on the other admins, do I just take this part of the code:

PHP Code:

if (($userid==1) and ($bbuserinfo[userid]!=1)) {  
echo 
"<p>You cannot update this Admin.</p>";
  
cpfooter();
  exit;


input the proper id numbers and add it below the existing piece of code?

Thank you for your time. Sorry I am being such a pain. I am feeling the pressure back at my board. :lol

Velocd 07-30-2002 09:22 PM

In this hack Satan you state towards the beginning of the instructions (step 6) to modify global.php. Are you referring to admin2/global.php or the original admin/global.php?

Chris M 07-30-2002 11:28 PM

The /admin2 global.php...

That is to set permissions for the co-admin, or lesser admin or whoever you want to call him/her/it/them...

@Night Owl - yes...

Satan

Hellburn 08-03-2002 11:15 AM

I dont unterstand what for files i must change. The original files or the admin2 files. What is right?:

Step5 = admin/usergroup.php
Step6 = ?/global.php (admin or admin2)
Step7 = admin2/user.php
Step8 = ?/user.php (admin or admin2)
Step9 = ?/index.php (admin or admin2)

thx you

P.S. Where i can see the usergroupid at the cp?

Chris M 08-03-2002 12:52 PM

All the files you must change are in the new /admin2 directory, unless stated otherwise...

I guess I did not state that clearly enough...

For the usergroupid - Goto your Control Panel, and click "Modify" in the "User Groups" subsection...

Hover over the edit button of the usergroup you want, and look at the link in the bottom left of the screen...The last digit, i.e. 6 = Admins, will be your usergroupid...

So it will appear as something like:

Code:

/usergroup.php?action=edit&usergroupid=6
Satan

Hellburn 08-03-2002 01:23 PM

thx

by Step 8 :

// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {

-------DO NOT COPY THIS LINE-------

And add below :

-------DO NOT COPY THIS LINE-------

if ($userid==X) and ($bbuserinfo[userid]!=X) {
echo "<p>You cannot delete this Admin.</p>";
cpfooter();
exit;
}

What id i must change for X ? My Admin id or the admin2 id?

Chris M 08-03-2002 01:29 PM

Your id...

Hmmm...

I think you copied 2 lines, but from different areas...

Lol...

The first part is updating...The second part mentions deleting lol...

Always replace X with your Userid unless stated otherwise...

Satan

Hellburn 08-03-2002 01:35 PM

Quote:

Originally posted by hellsatan
Your id...

Hmmm...

I think you copied 2 lines, but from different areas...

Lol...

The first part is updating...The second part mentions deleting lol...

Satan

i dont know what you want, i make only that what i read.


All times are GMT. The time now is 07:35 AM.

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.02435 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete