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)
-   -   Login as user (https://vborg.vbsupport.ru/showthread.php?t=39841)

Smoothie 06-17-2002 03:27 AM

Anyone post a text version of this, please?

SWRoleplay.com 06-17-2002 03:55 AM

Quote:

Exactly where and how would you put that code?
After:

PHP Code:

require("./global.php"); 


Boofo 06-17-2002 05:06 AM

???

Quote:

Originally posted by SWRoleplay.com


After:

PHP Code:

require("./global.php"); 



Derek 06-18-2002 11:37 AM

Use this if you want... in the first user.php edit, you can instead of using "Login as User" you can type in the following and it will show up as "Login as Johnny" or whatever the person's username is.

Code:

Login as $user[username]

Derek 06-18-2002 11:56 AM

Another thing... I can't get the work only for userid=1 thing to work... I admined my Test Account and two things happened...

1. After clicking on the Find for the user search and after I typed in the name or partial on either the front page or in the find page, I got a blank page.

2. Second, I copy and pasted the link that logs me in as the other user into my browser address bar while I was logged in the admin CP under Test Account and I was able to get access.

Please help.

Boofo 06-18-2002 12:05 PM

I'm not sure if you got this yet, but here it is. :)

Text version of this hack

Quote:

Originally posted by Smoothie
Anyone post a text version of this, please?

inetd 07-29-2002 10:46 PM

good hack
work's fine!
click install :)

dwh 08-10-2002 03:24 AM

Excellent hack...here's an addition...so you have the link when searching for user:

replace
PHP Code:

makelinkcode("edit access masks","user.php?s=$session[sessionhash]&action=editaccess&userid=$user[userid]").

with

PHP Code:

makelinkcode("edit access masks","user.php?s=$session[sessionhash]&action=editaccess&userid=$user[userid]").
makelinkcode("login as user","user.php?s=$session[sessionhash]&action=loginas&userid=$user[userid]",1).


BrAinZ 08-23-2002 04:00 PM

Sounds like it could be useful, although I'm guessing that logging in as a user is going to reset all their New posts / New PMs etc ?

Would there be any way of keeping all the last visit info etc, sort of "stealthy" log in as user ??

wolfman 08-30-2002 12:56 AM

man I love this hack this is a great life saver on checking permisions


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.01160 seconds
  • Memory Usage 1,743KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (3)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