vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Admin Log In As User (https://vborg.vbsupport.ru/showthread.php?t=122939)

xug 08-05-2006 12:59 AM

When I jump on my test board into the admin panel and want to add a new (test) user I get the following error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/user.php(461) : eval()'d code on line 9

This is a clean vB3.6.0 fresh install, no hacks, no addons, this is the first one

Abe1 08-06-2006 12:47 AM

Quote:

Originally Posted by xug
When I jump on my test board into the admin panel and want to add a new (test) user I get the following error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/user.php(461) : eval()'d code on line 9

This is a clean vB3.6.0 fresh install, no hacks, no addons, this is the first one

I'll look into this. Other users had reported this in last version but I was unable to re-produce. If you have any more info on this bug, please post it.

TomJames 08-08-2006 04:10 AM

I will be installing this tomorrow, great idea, I often have the problem of members not knowing how to do something, so this will help lots.

Great hack.

Stoebi 08-10-2006 06:30 PM

Quote:

Originally Posted by Abe1
I'll look into this. Other users had reported this in last version but I was unable to re-produce. If you have any more info on this bug, please post it.

Hi,

it happens with php 5 (here 5.1.1) installed. I've read the function array_merge() goes another way, but which?



Regards, Stoebi

Bydigi 08-11-2006 07:26 AM

@abe1; Thanks :)

Abe1 08-11-2006 04:09 PM

Quote:

Originally Posted by Stoebi
Hi,

it happens with php 5 (here 5.1.1) installed. I've read the function array_merge() goes another way, but which?



Regards, Stoebi

Thanks for the tip. I'll see what I can find.

ktp101 08-18-2006 06:52 PM

installed, thanks :)

Stoebi 08-19-2006 05:52 PM

Quote:

Originally Posted by Abe1
Thanks for the tip. I'll see what I can find.

Working with php4/php5:
Replace the content of the hook useradmin_edit_start with:
PHP Code:

if (in_array($vbulletin->userinfo[userid], preg_split('#\s*,\s*#s'$vbulletin->config['SpecialUsers']['superadministrators'], -1PREG_SPLIT_NO_EMPTY)))
{
    if (!
is_array($quicklinks))
    {
        
$quicklinks = array();
    }
    
$quicklinks array_merge($quicklinks
        array(
"../member.php?" $vbulletin->session->vars['sessionurl'] . "do=getinfo&u=" $vbulletin->GPC['userid'] . "&admin_log_in_as_user=" $vbulletin->GPC['userid'] => $vbphrase['log_in_as_user'],));




Regards, Stoebi

whitetigergrowl 08-19-2006 06:52 PM

LOL Wow I can see this one getting abused more than a $2 hooker.

jibious 08-19-2006 11:03 PM

Quote:

Originally Posted by whitetigergrowl
LOL Wow I can see this one getting abused more than a $2 hooker.

If an admin knows anything about their SQL database, then you'd already be able to 'abuse' it in the most extreme method - without no one EVER knowing.


All times are GMT. The time now is 03:37 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.01410 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_php_printable
  • (5)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