yatahaze Posted January 12, 2006 Posted January 12, 2006 Does anyone know how to make a login box for oscommerce that runs on another website. Like the login box would be at www.mysite.com and the store is store.mysite.com. I've tried taking out the login files and stripping out the columns and header, etc. and a few other changes. What I've found is when it makes the switch between the different URL's I have to login again. I can succesfully login at the www. site, but when it switches to the store. url/site I'm no longer logged in. Anyone have any suggestions?
MoisesZaragoza Posted January 12, 2006 Posted January 12, 2006 add the line <?php require_once(http://www.yoursite.com/AppTop.php); ?> that shoud do the trick at the end of the day the code will be good
yatahaze Posted January 12, 2006 Author Posted January 12, 2006 Where do I put this? Anywhere I put it in login.php it gives me a parse error.
yatahaze Posted January 12, 2006 Author Posted January 12, 2006 require_once('http://www.mysite.com/includes/application_top.php'); I put the ' symbols in. Now I'm getting a bunch of errors. Warning: main(includes/configure.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Notice: Undefined variable: session_started in C:\Inetpub\wwwroot\site\memlog\login.php on line 16 Fatal error: Call to undefined function: tep_redirect() in C:\Inetpub\wwwroot\site\memlog\login.php on line 17
yatahaze Posted January 12, 2006 Author Posted January 12, 2006 Ok, I've got it working - I'm just getting some error messages that I'd like to go away. Warning: main(includes/configure.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Those errors show at the top of the page, but it still works exactly the way I want, any idea how to make them disappear?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.