-.- i'm not stupid..
i used the chdir but it doesn't work!
i will post the code:
portal.php (in
www.gamempire.it/) --- this not work:
Code:
<?php
chdir("./forum");
require_once("includes/config.php");
require_once("global.php");
if ($vbulletin->userinfo['userid'] != 0) { echo "i'm inside"; } else { echo "so bad..."; }
?>
result: "so bad..."
portal.php (in
www.gamempire.it/forum/) --- this work:
Code:
<?php
require_once("includes/config.php");
require_once("global.php");
if ($vbulletin->userinfo['userid'] != 0) { echo "i'm inside"; } else { echo "so bad..."; }
?>
result: "i'm inside"
--------------- Added [DATE]1220264233[/DATE] at [TIME]1220264233[/TIME] ---------------
refresh:
very strange things:
if i open
http://forum.gamempire.it/portal.php it works
but if i open
http://www.gamempire.it/forum/portal.php
it doesn't works
and this is only a subdomain that go to the same directory (forum/)


--------------- Added [DATE]1220307132[/DATE] at [TIME]1220307132[/TIME] ---------------
done..i put the cookie of the forum to all the site, extending them everywhere...