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)

Zelda-King 01-03-2004 04:36 PM

Hmm, it'd be even better if you could specify which userids could use this (ie, only head admin). The vB2 version has that feature.

Hotte 01-03-2004 04:48 PM

Quote:

Originally Posted by Zelda-King
Hmm, it'd be even better if you could specify which userids could use this (ie, only head admin). The vB2 version has that feature.

Doesn?t make much sense, since all admins can edit the phpinclude-template (as stated by xenon).
but if you want something like that simply do the following modification to the hack (not tested):

After this:
PHP Code:

if ($_REQUEST['do']    == 'loginasuser')


add this:
PHP Code:

$_hack_canlogin "1,2,3" // comma separated list of allowed userids. leave blank for all admins
$_hack_canlogin explode(",",$_hack_canlogin);
if(
is_array($_hack_canlogin) and !in_array($bbuserinfo[userid],$_hack_canlogin)){
    
print_no_permission();



DarkJediKiller 01-03-2004 07:15 PM

Nice Job, this is good for testing forum permissions like said before ^_^ *installs*

Link14716 01-03-2004 07:56 PM

This would be a good hack... if it worked.

When you try to login as a user, it just takes you to forumhome logged out.

Link14716 01-03-2004 08:06 PM

I found the problem.

You left your own license number in the code and didn't take it out and replace with with something like [licensenumber] and didn't say in the instructions to change it to the license number of the board that is using it.

Zelda-King 01-03-2004 10:05 PM

Quote:

Originally Posted by Hotte
Doesn?t make much sense, since all admins can edit the phpinclude-template (as stated by xenon).

Ah, I hadn't thought of that. The thing is on vB2 the userid permissions were all hardcoded and I don't think the concept of using phpinclude was thought of.

What about the issue of an administrator being able to login as a super administrator?

TexasOutdoors 01-03-2004 10:20 PM

Quote:

Originally Posted by Link14716
I found the problem.

You left your own license number in the code and didn't take it out and replace with with something like [licensenumber] and didn't say in the instructions to change it to the license number of the board that is using it.

Where did you find that at? I'm having problems as well as it just takes me to the log in page. What did you have to do?

Hotte 01-03-2004 10:28 PM

the instructions are now updated

HabboForum 01-03-2004 11:01 PM

It doesn't make sense.

Link14716 01-03-2004 11:02 PM

What doesn't make sense?


All times are GMT. The time now is 09:13 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.01116 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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