Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
[GAE] Global Array Examiner Details »»
[GAE] Global Array Examiner
Version: 1.0, by ReCom ReCom is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.x Rating:
Released: 11-27-2008 Last Update: 11-27-2008 Installs: 24
Re-useable Code Additional Files  
No support by the author.

This is not really a mod because there is nothing to install. Only one file to upload to vbulletin directory. But anyway ..

Global Array Examiner is a tool that assists vBulletin developers by exposing the contents of global arrays like $_SERVER, $_COOKIE, $vbulletin->userinfo etc using a nice table representation.

To install, simply upload the attached gae.php to your vbulletin directory.

To use it, simply call the file from your web browser, for example www.yoursite.net/forum/gae.php. Then use the dropdown to examine the global array you want.

To uninstall, simply delete the file from your server. Really, this php file does not modify your database or vbulletin settings in any way.

So far, GAE exposes the following global arrays:
  • $_SERVER
  • $_COOKIE
  • $vbulletin->userinfo
  • $vbulletin->options
  • $vbulletin->bf_ugp
  • $vbulletin->config
  • $stylevar
  • $vbphrase

Also, you can use GAE to examine $_POST (form submission data) by temporarily making your form submit to gae.php?examine=post (i.e. in your form tag set action="pathto/gae.php?examine=post" or action="pathto/gae.php?examine=post&sort=1").

Due to the nature of these arrays, they may contain sensitive information that any sane admins do not want to expose to the whole internet. Thus, GAE has a mechanism that assigns security clearance level to each global array it exposes:
  • Level 0 (anybody): $_COOKIE, $vbulletin->userinfo, $vbulletin->bf_ugp, $stylevar
  • Level 1 (registered only)
  • Level 2 (mod and above): $vbphrase
  • Level 3 (admin and above): $_SERVER, $vbulletin->options
  • Level 4 (superadmin): $vbulletin->config

These settings can be easily modified in gae.php .. if you are using GAE you will probably know how to do it by just looking at the source code

I created this tool to assist me in developing and debugging my mods. I hope other coders will benefit from GAE the way I do. Happy coding!

Note: since there's not much vbulletin architecture used in the code, I expect GAE can be used in any recent vBulletin versions, well maybe from 3.0 up until 3.9.x

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-29-2008, 11:23 PM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful mate Thx
Reply With Quote
  #3  
Old 11-29-2008, 11:46 PM
s810car s810car is offline
 
Join Date: Mar 2008
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

freaking awesome!! I love it, installed!

Is there a way to have it configured to view local variables, ones created by 'foo'.php or javascript responses (such as running file side by side with another window and testing onclick , onsubmit, onmouseover etc. type of event triggers)? The post option is a HUGE help
Reply With Quote
  #4  
Old 11-30-2008, 02:24 AM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is freaking useful, this should be stickied in the programming forum. Very useful for developers!

Nominated for MOTM.
Reply With Quote
  #5  
Old 12-01-2008, 10:06 AM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful. Installed.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07694 seconds
  • Memory Usage 2,232KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete