Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Sep 2015, 19:09
brandon515 brandon515 is offline
 
Join Date: Nov 2006
Global.php access from different website?

Is it possible for me to include the global.php file in some code from a website that is different than my vbulletin site?

What I am trying to accomplish is to allow members of a specific usergroup on my vb site, to have access to a private section on one of my non vb sites.

Thanks
Reply With Quote
  #2  
Old 16 Sep 2015, 20:12
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Yes that is possible, you may also have to use the chdir PHP function to change to the right directory.
__________________
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
  #3  
Old 16 Sep 2015, 21:35
brandon515 brandon515 is offline
 
Join Date: Nov 2006
Thanks for the reply. How would I call it? Would I need to include db info?
Reply With Quote
  #4  
Old 16 Sep 2015, 22:48
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
In case your forum is located at /forum, I believe it's a matter of doing:

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

Then you should be able to use the $vbulletin object.
__________________
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
  #5  
Old 16 Sep 2015, 23:37
brandon515 brandon515 is offline
 
Join Date: Nov 2006
This is going to be called from a different website, so wouldnt I need to use the full url of where the forum resides?
Reply With Quote
  #6  
Old 16 Sep 2015, 23:47
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
A different server? No.
__________________
Looking for ImpEx?
Reply With Quote
  #7  
Old 17 Sep 2015, 00:29
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
Originally Posted by Zachery View Post
A different server? No.
Did the op say anything about a different server?
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #8  
Old 17 Sep 2015, 03:00
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by ozzy47 View Post
Did the op say anything about a different server?
Originally Posted by brandon515 View Post
This is going to be called from a different website, so wouldnt I need to use the full url of where the forum resides?

Context is important I suppose

If both sites are not on the same server, then you can't do what you want all that easily, in some cases even if it is, it may prove difficult. Session/Domain checking is not likely to work well cross domain.

I would suggest using something on the vBulletin side of things to send an auth token to your other site, to authenticate them when they leave to go to your other site.
__________________
Looking for ImpEx?
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 07:28.

Layout Options | Width: Wide Color: