Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Mar 2017, 04:08
TopFloorDjs's Avatar
TopFloorDjs TopFloorDjs is offline
 
Join Date: Sep 2008
Real name: Brad
Plugin Error

I am trying to register a variable and use data from a php file to display

hook location: init_startup
forumhome > {vb:raw shoutstats}

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Unfortunately with this code i get this error

PHP Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in ..../includes/init.php(351) : eval()'d code on line 4

I have disabled the plugin right now but i would like to get this to work.

Ive also tried

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

instead of require_once & in hook location : global_bootstrap_init_start

PHP Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in ..../includes/class_bootstrap.php(103) : eval()'d code on line 2

Last edited by TopFloorDjs; 02 Mar 2017 at 04:32.
Reply With Quote
  #2  
Old 02 Mar 2017, 15:08
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
You should not use the include/require functions to get data from a remote file.
If you want to get data from a remote file, use file_get_contents:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will fetch the output of the PHP file.

If the file is on your local server, use:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will execute the PHP code.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 03:14.

Layout Options | Width: Wide Color: