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)

Night Owl 07-30-2002 05:43 AM

I followed the instructions and got a blank screen when I went to admin2/index.php. What could I have done wrong?

Chris M 07-30-2002 08:47 AM

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

Night Owl 07-30-2002 04:17 PM

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?

Night Owl 07-30-2002 04:34 PM

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.

Night Owl 07-30-2002 04:56 PM

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.

Chris M 07-30-2002 06:20 PM

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

Night Owl 07-30-2002 06:41 PM

It is working now. But it is allowing lesser admins to change the email and password of admins. Is it supposed to do that?

Chris M 07-30-2002 06:46 PM

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

Night Owl 07-30-2002 07:11 PM

Well, I did implement that. Not only did I already have it, but I also included protection for each admin. It isn't working.

Night Owl 07-30-2002 07:13 PM

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. :confused:


All times are GMT. The time now is 08:43 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.01236 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)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