vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Login as User (https://vborg.vbsupport.ru/showthread.php?t=59556)

neocorteqz 06-28-2004 05:05 PM

Quote:

Originally Posted by MRWARGOD
great hack but i would like to make two observations:
1. i'm the forums owner and therefor superadmin, how do i log into other admins?
2. it should automatically log me out of the user when i click a admin cp link.
besides that it's great.

As far as i can see, anyone in the admin group even if they are not in the config.php file as superadmin, you can not login as them.


about #2, that would be a nice feature.

mtha 06-28-2004 06:03 PM

Quote:

Originally Posted by vishalsachar
Hi guys, this is my first hack and i can't get it to work!

I have modified the code and added my leased licensed number beginning with a #

Now i log into my admin cp -- what do i do now?

I click users, but can't find anything. Any ideas?

DO NOT begin with a #

it should be

vbsetcookie('password', md5($user['password'] . '12345678'));


where 12345678
is your licence number (8 letters)

then you click to a user to "edit" this user, then you click on the quick link on top, there's something called "login as user"


Quote:

1. i'm the forums owner and therefor superadmin, how do i log into other admins?
It doesnt matter if you are superadmin or not, as long as you can access to the member list in ACP

$_hack_canlogin = ""; // comma separated list of allowed userids. leave blank for all admins

If you have this field filled, you have to be "that person" indicated here, in order to use the function.

If you leave blank, all admins (usergroup=6) can use the function, and he can login as anyone else, except other admin.

If you want to login to other admins, you have to change this lines:

if($user['usergroupid']==6)
{
print_cp_no_permission();
}

maybe just remove it.

Logician 06-29-2004 10:52 AM

Nice hack and works very well. Thx for sharing! :)

Mijae 06-29-2004 10:46 PM

Yay, works now!

neocorteqz 06-29-2004 11:13 PM

Quote:

Originally Posted by mtha
DO NOT begin with a #

it should be

vbsetcookie('password', md5($user['password'] . '12345678'));


where 12345678
is your licence number (8 letters)

then you click to a user to "edit" this user, then you click on the quick link on top, there's something called "login as user"


It doesnt matter if you are superadmin or not, as long as you can access to the member list in ACP

$_hack_canlogin = ""; // comma separated list of allowed userids. leave blank for all admins

If you have this field filled, you have to be "that person" indicated here, in order to use the function.

If you leave blank, all admins (usergroup=6) can use the function, and he can login as anyone else, except other admin.

If you want to login to other admins, you have to change this lines:

if($user['usergroupid']==6)
{
print_cp_no_permission();
}

maybe just remove it.


Or maybe use the userid instead of the usergroupid??

Jolten 07-03-2004 10:34 PM

Okay.. perhaps I'm blind... I've installed but I see no option anywhere to log in as a user. Where's it at?

Edit Found it. But it would be nice if the log in opened without the admin frameset or in a new window. I can adjust that here. But it might be somethign to include in the hack.

ChuanSE 07-04-2004 07:25 AM

great hack

/me clicks install

rms-2004 07-06-2004 04:52 PM

VERY nice hack. Thanks!

Wifey 07-12-2004 02:50 PM

Okay, I had this before and when I downgraded then reupgraded I got rid of it. Now when I try to log in as a user it takes me to my account. How do I fix this?

edit: *kicks cookies* I cleared my cookies and temp files and it's working. le sigh

blubber12 07-14-2004 02:52 PM

I'm having similar problems. I did a clean install of 303 and recoded the user files, and still I get logged in under my account. I cleaned all cookies and files as well..and I know I have the proper license number included. any clues?


All times are GMT. The time now is 08:34 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.01080 seconds
  • Memory Usage 1,742KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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