Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
[final]Lesser Admin Cp... Details »»
[final]Lesser Admin Cp...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 07-25-2002 Last Update: Never Installs: 128
 
No support by the author.

Please do the following before attempting to install:

1.) Backup your Files before doing anything
2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files, I cannot condone your install of this hack...
3.) If you want to Backup your Database, You can - There shouldn't be any need to...

The file(s) you should have is/are:

install_lesseradmincp_txt.php
install_lesseradmincp_usergroups_txt.php

Install Info:
Hack Version: 1.4
Files to edit: 4
Templates to add: 0
Templates to edit: 0
Queries to Run: 1
Time to install: Approx 5 Minutes

Credits
Requested by - Nobody

Support - I am offering support, but only in THIS THREAD...I unfortunately cannot be here during the coming weeks (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread

Hack info

What does it do? - This basically will allow you to make a Lesser Control Panel for your other Admins...I know I released the "Total Admin Security" hack (link in my profile), but this will allow you to ensure that they cant delete your templates, especially if you put them in a seperate usergroup...

I know you will want a screenshot, so here is a screenshot of my Co-Admin Control Panel...The second Screenshot is of the Co-Admin Permissions...The third is of the Usergroup gone from edit user and add user...The fourth is of the Usergroup gone from search options, and the fifth is from search display options...

Live Demo/Screenshots

Co-Admin Control Panel
Co-Admin Permissions
The name "Co-Admin" is what I determine as "Lesser Admin" - The picture may differ slightly from the screenshot
Usergroup options gone from Edit user & add user
Usergroup no longer a Find option
Usergroup no longer able to be display in searches

[high]Latest Version[/high]

You can download Version 1.4 (normal) here...
You can download Version 1.4 (usergroup version) here...

Enjoy!

Satan

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-30-2002, 05:43 AM
Night Owl Night Owl is offline
 
Join Date: May 2002
Location: Oklahoma
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I followed the instructions and got a blank screen when I went to admin2/index.php. What could I have done wrong?
Reply With Quote
  #23  
Old 07-30-2002, 08:47 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could be one of 2 things...

1.) You did not setup the global.php file correctly for the Admin2 directory, therefore not allowing the other files to work (as they require it)...Make sure you followed the instructions carefully
2.) Sometimes, and I know this is true, some files dont like being uploaded in Ascii Mode...On my server, I have to upload all vBulletin files in BINARY mode, so that they will work...Make sure you are uploading in the BINARY mode...If you are not sure which mode you are uploading in, try downloading SmartFTP, which has the option for Ascii and Binary modes when uploading...It will be on the top Quick Toolbar, and by default is Auto...Change it to Binary or Ascii, and upload...If that mode does not work, try the other...

Thats all I can suggest thats wrong...If it still does not work, email your new global.php file to me at : hellsatan@darkblazes.com

Satan
Reply With Quote
  #24  
Old 07-30-2002, 04:17 PM
Night Owl Night Owl is offline
 
Join Date: May 2002
Location: Oklahoma
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am confused. I made the changes in step 6. This file goes into the admin2 folder, right?

Also step 10 says to "edit the /admin/global.php (to full Admin CP version)." What does that mean?
Reply With Quote
  #25  
Old 07-30-2002, 04:34 PM
Night Owl Night Owl is offline
 
Join Date: May 2002
Location: Oklahoma
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I uploaded the edited global.php to the admin2 folder in binary mode. I can now get to the loggin screen. However, when I try to log in, either with my co-admin name or my admin name, I cannot get in. I tried uploading the other files in binary mode, but that didn't help.
Reply With Quote
  #26  
Old 07-30-2002, 04:56 PM
Night Owl Night Owl is offline
 
Join Date: May 2002
Location: Oklahoma
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I figured it out. LOL I didn't have the usergroup set to allow access to the lesser admin cp. LOLOL

However, I am having another problem.

Here is the error:

Quote:
Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: SELECT cancontrolpanel FROM usergroup WHERE usergroupid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064
I was attempting to change the title of an admin, to see if I could do it through the admin2 cp. This also happens when I try to edit any member.
Reply With Quote
  #27  
Old 07-30-2002, 06:20 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah yes...

I found a bug...

If you using Version 1.2 of the hack, do the following :

Find in /admin2/user.php :

PHP Code:
  // check that not removing last admin
  
$countadmin=$DB_site->query_first("SELECT COUNT(*) AS users FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND usergroup.cancontrolpanel=1 AND user.userid<>$userid");
  
$getperms=$DB_site->query_first("SELECT cancontrolpanel FROM usergroup WHERE usergroupid=$usergroupid");
  if (
$countadmin[users]==and $getperms[cancontrolpanel]!=1) {
    echo 
"<p>You are about to edit the last user with control panel access so that they do not have control panel access. This would lock you out of the control panel, so you cannot proceed.</p></body></html>";
    exit;
  } 
and remove it completely!

Only do it if you are using Version 1.2 - The bug will not occur in Version 1.1, because you can still update usergroups - Anyone who does not want a Security leak, should upgrade to Version 1.2...

Why is there a bug? Im not totally sure, but I think it is because that php statement above, is looking for the updating of Usergroups, and in Version 1.2, the usergroup updating options have been deleted...Therefore it is looking for something it Cannot find...It seems logical enough...I tested it myself at my co-admin panel, and all seems fine...

Reasons why not to do it with Version 1.1? - Well...For starters, you can still update Usergroups...So...If you delete that, and accidentally change your OWN usergroup, then you may be in trouble...

That should solve your problem...I have updated the first post

Satan
Reply With Quote
  #28  
Old 07-30-2002, 06:41 PM
Night Owl Night Owl is offline
 
Join Date: May 2002
Location: Oklahoma
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is working now. But it is allowing lesser admins to change the email and password of admins. Is it supposed to do that?
Reply With Quote
  #29  
Old 07-30-2002, 06:46 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well...

If you had implemented the Total Admin Security Hack, which was included in it, they wouldnt be able to Delete or update you...That way making Admin Passwords impossible to change

Satan
Reply With Quote
  #30  
Old 07-30-2002, 07:11 PM
Night Owl Night Owl is offline
 
Join Date: May 2002
Location: Oklahoma
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I did implement that. Not only did I already have it, but I also included protection for each admin. It isn't working.
Reply With Quote
  #31  
Old 07-30-2002, 07:13 PM
Night Owl Night Owl is offline
 
Join Date: May 2002
Location: Oklahoma
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But let me make sure I put it all in the right place....

Well, I thought I'd put it all in there. Now, I've got to figure out where I did put it.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04736 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete