vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Sending information to php page through plugin (https://vborg.vbsupport.ru/showthread.php?t=201448)

pianoman993 01-11-2009 09:35 PM

Sending information to php page through plugin
 
Is it possible to send information to an external php through a plugin? I know that you can send information through the URL but that is not secure at all. Are there any other methods?! This is the code I have.

Code:

ob_start();

$_POST['username'] = $vbulletin->userinfo['username'];

include("http://mysite.com/custom_includes/manager.main.php? " . $_SERVER['QUERY_STRING']);
$get_manager = ob_get_contents();

ob_end_clean();

I am trying to send the username to my external php module through the plugin but no information is being received. Any and all help is greatly appreciated!!! Thank you!

- Pianoman993

Bellardia 01-11-2009 10:17 PM

What's so insecure about using a query string from an internal php command? Nobody will be able to see the source.
Especially since it's just a username...not really anything that needs to be protected.

pianoman993 01-11-2009 11:54 PM

If you tack on anything to then end of a URL anybody can change that value. It's just more of a hassle than anything.

Are you saying that transferring information through the URL is the only way to do it?

Bellardia 01-12-2009 12:04 AM

But you're sending the information through a plugin...
Users cant change the end of a url because you can't alter the execution of the plugin or see what it is executing. Since it's php it would send the information to the external page and complete, and no one would know.

Another way to 'send' information to another page would be to store it in the database and have the page get its information from the database, but I don't see why you're afraid to send it via get unless there's something I'm not seeing.

pianoman993 01-12-2009 01:07 AM

Genius!!! Thank you so much!!


All times are GMT. The time now is 11:49 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.01048 seconds
  • Memory Usage 1,711KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete