Ok i am having some problems, i set the login script up to how i needed it and i ran this script:
Code:
<?php
$curdir = getcwd ();
chdir('../../vbulletin');
require_once('global.php');
chdir ($curdir);
?>
<html>
<body>
This is a heading<br />
This is some more stuff <br />
And another line<br />
You get the idea<br />
Just place stuff as you normally would with HTML<br />
I use CSS to style and position on my site fwiw<br />
<br />
How about we put the login box right under here?<br />
<br />
<?php
require_once('login_inc.php');
?>
</body>
</html>
simple and bog standard, but as soon as i execute the script, the page loads a copy of the login page, but it is NOT redirecting to my login page as the path stays the same:
This seems to occur when i include global.php and i am completely lost, can anyone help?
----
UPDATE:
Ok i forgot to include some pertinent information, this only occurs when i am not logged in, if i am logged in then it all works fine:
URL=http://img505.imageshack.us/my.php?image=icasdo1.jpg]

[/URL]
But if i am not logged in, or click log out, then when i attempt to access the login page, (the one i designed using the login_inc) it simple embeds the proper login page attempting to use my style aswell, but failing because the images paths are not correct, (because the script remains the same, it does NOT redirect to a new script)
I cant login using this page because the paths are all wrong.