DaveW Posted January 19, 2007 Share Posted January 19, 2007 I'll try and keep this concise:I'm trying to write an external login procedure that will synchronize the users of a wiki and a joomla CMS with our current VBulletin users community. So far, i've written some code that can access our database and verify the password. Therefore, i'll assume i can also write the code that checks other data and performs the synchronizations. The problem lies in the actual logging in.VBulletin creates a session in it's database (I'm assuming they all do) via a file login.php, which is attached to a forum button. What i want to do is call this from my code that does the database synchronization, in the order:1) Confirm pass2) Sync Wiki with VBulletin (if needed)3) Sync Joomla with VBulletin (if needed)4) Create VBulletin session5) Create Wiki session6) Create Joomla SessionAs the VBulletin takes data from $_POST, i really don't know how to change things to make this work. How do i get the data into $_POST and call it from a PHP script, and how do i repeat this 3 times? This is the first time i've written my own code in PHP, so please forgive me if the answer seems obvious. I've searched other posts and tutorials and couldn't find anything, although i wasn't really sure what to search for. Thanks in advance to any help i receive.-David Quote Link to comment Share on other sites More sharing options...
DaveW Posted January 21, 2007 Author Share Posted January 21, 2007 Anyone?A way to simulate the post data? I've heard it can be done with Javascript and the cURL library...any help?-Dave Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted January 21, 2007 Share Posted January 21, 2007 Rather than trying to knock together a hack solution, try looking into the APIs of the different systems.If they are designed well it shouldn't be too hard. Quote Link to comment Share on other sites More sharing options...
DaveW Posted January 22, 2007 Author Share Posted January 22, 2007 I think that's the case for Joomla, but not in Mediawiki or vBulletin. I've managed to get my code to log into VBulletin and i've created a hidden form that should log onto the wiki.I'll try looking at the Joomla API, and asking on their boards.-Dave Quote Link to comment Share on other sites More sharing options...
mattd8752 Posted January 22, 2007 Share Posted January 22, 2007 In whichever one is using $_POST just replace that with $_SESSION in every page. Might take a while but it works. Quote Link to comment Share on other sites More sharing options...
DaveW Posted January 22, 2007 Author Share Posted January 22, 2007 Hmm...i'll look into that. Thanks, i'll let you know how i'm getting on soon.-Dave Quote Link to comment Share on other sites More sharing options...
mattd8752 Posted January 22, 2007 Share Posted January 22, 2007 Well, that might take a while aswell. You have to change the refrences to $_SESSION where it refrences login data, but where it references user input (like forms) definatly leave it as $_POST['']Anyways, good luck with this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.