The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi, this is a strange question, but I hope to someone help me to solve..
I explain.. i'm trying to make a thing like a bridge... for the first test I used to retrieve the logged user information... to do this first thing i created a file test.php in the root of the forum and the code is this: Code:
require("includes/config.php");
require("global.php");
print_r( $vbulletin->userinfo );
second step I want check this thing from another place... so I use this code: Code:
$fp = @fopen( "http://forum/test.php", 'r');
if( $fp )
{
$html = "";
while (!feof($fp))
{
$html .= fgets($fp, 128);
}
fclose( $fp );
}
else
{
echo "error! page";
}
echo $html;
what can I solve this thing? thanks in advance! ghiboz |
|
#2
|
||||
|
||||
|
"Unregistered" == Guest/Not Logged In User
|
|
#3
|
||||
|
||||
|
yes, this I understand, but my problem is that the user is registered.....
|
|
#4
|
|||
|
|||
|
Most likely you are calling this script from another domain, and there is no cookie set for this domain.
|
|
#5
|
||||
|
||||
|
Quote:
is there a chance to make this think working? thanks mate! |
|
#6
|
||||
|
||||
|
You will have to set cookies at the other domain. Cookies are not shared cross-domain for security reasons.
|
|
#7
|
||||
|
||||
|
hmm thanks... and to do this how can I do??
|
|
#8
|
||||
|
||||
|
The only way to set cookies is for the user to load a page/image.
|
|
#9
|
||||
|
||||
|
so, if before to call my page, i load a vbulletin page it works?
my problem is not to set the vbulletin cookies, but read them from another domain! |
|
#10
|
|||
|
|||
|
That is basic internet security: You can not read cookies from another domain!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|