vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Using the vBulletin Input Cleaner (https://vborg.vbsupport.ru/showthread.php?t=119372)

Come2Daddy 05-22-2009 07:06 PM

Wow, exactly what I was looking for

thanks a lot, buddy

1Unreal 08-01-2009 10:50 AM

If Im using isset($_GET['foo']) will isset($vbulletin->GPC['foo']) work in the same way?

Sergio68 09-05-2009 03:36 PM

Quote:

Originally Posted by 1Unreal (Post 1859500)
If Im using isset($_GET['foo']) will isset($vbulletin->GPC['foo']) work in the same way?

Same problem me, I don't understand if I can use this function or I have to use.
I inserted some code into the vbulletin and all the variables, cookies and sessions were deleted.

Antivirus 09-06-2009 03:32 PM

Quote:

Originally Posted by 1Unreal (Post 1859500)
If Im using isset($_GET['foo']) will isset($vbulletin->GPC['foo']) work in the same way?

isset($vbulletin->GPC['foo']) will only return true if you are using the vbulletin input cleaner to clean your variables.

zero477 11-23-2012 06:59 PM

Excelent article!

stangger5 09-25-2014 03:56 PM

Does all vb versions use the same Input Cleaner ?
vb3 to vb4 ?

PHP Code:

$vbulletin->input->clean_array_gpc 

PHP Code:

$vbulletin->input->clean_gpc 

Thanks,, Great Article!

Dave 09-25-2014 04:09 PM

Quote:

Originally Posted by stangger5 (Post 2516477)
Does all vb versions use the same Input Cleaner ?
vb3 to vb4 ?

PHP Code:

$vbulletin->input->clean_array_gpc 

PHP Code:

$vbulletin->input->clean_gpc 

Thanks,, Great Article!


Take a look at http://www.vbulletin.com/docs/html/codestandards_gpc
Both will work, depending on what you do and need.


All times are GMT. The time now is 01:29 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.01317 seconds
  • Memory Usage 1,726KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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