vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   List of changed var/array/function names (https://vborg.vbsupport.ru/showthread.php?t=82632)

noppid 06-10-2005 04:57 AM

Very good explainations, thanks.

Logikos 06-10-2005 06:03 AM

When using something like this for an example:

PHP Code:

$db->query_write("UPDATE thread SET open = '0' WHERE threadid <= 99"); 

That obviously will close a threadID 99. My question is. Do we have to use the TABLE_PREFIX before we define the table to update?

Cap'n Steve 06-10-2005 06:13 AM

What's the reason for changing the $_GET, $_POST, etc.? Is there any benefit to using the new versions?

Zachery 06-10-2005 08:27 AM

Quote:

Originally Posted by Cap'n Steve
What's the reason for changing the $_GET, $_POST, etc.? Is there any benefit to using the new versions?

Security

calorie 06-10-2005 06:52 PM

Quote:

Originally Posted by Live Wire
When using something like this for an example:

PHP Code:

$db->query_write("UPDATE thread SET open = '0' WHERE threadid <= 99"); 

That obviously will close a threadID 99. My question is. Do we have to use the TABLE_PREFIX before we define the table to update?

I found $db->query_write("UPDATE " . TABLE_PREFIX . " in vB 3.5.0 code, so I'd guess yes.

Erwin 06-10-2005 10:58 PM

Quote:

Originally Posted by Zachery
Security

Absolutely. You'd be surprised how many older hacks still use these variables without checking them.

Revan 06-10-2005 11:42 PM

Then again, as far as I can see theres nothing stopping a lazy coder from just using the superglobals.

Cap'n Steve 06-11-2005 04:44 AM

Quote:

Originally Posted by Erwin
Absolutely. You'd be surprised how many older hacks still use these variables without checking them.

Ah, ok. So what does this class actually do to the variables? Is it basically a replacement for globalize()?

Brad 06-11-2005 05:18 AM

Quote:

Originally Posted by Cap'n Steve
Ah, ok. So what does this class actually do to the variables? Is it basically a replacement for globalize()?

Basicly yes :)

zetetic 06-12-2005 04:24 AM

In 3.0.7 I put this code in phpinclude_start:
PHP Code:

$buddyarray explode(' '$bbuserinfo['buddylist']); 

And referenced that array using $GLOBALS['buddyarray'] in the templates.

In 3.5 I made a global_start plugin using this code:
PHP Code:

$buddyarray explode(' '$vbulletin->userinfo['buddylist']); 

But $GLOBALS['buddyarray'] doesn't seem to work.

Also the u=$userinfo[userid] doesn't seem to work in the postbit either. :ermm:


All times are GMT. The time now is 10:58 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.01474 seconds
  • Memory Usage 1,741KB
  • 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
  • (5)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