|
|||||||
| All Other Contributions/Addons Discussion of contributions/addons not categorized above |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Totally Zenned
Join Date: Oct 2006
Posts: 5,453
|
https://svn.rubikintegration.com/zen...ds/zen_bridge/
This will provide the ability to login/logoff Zen from another web-application that is located on the SAME server. It should work on Zen 1.3.8 only, to make it work for older version you have to comment out the securityToken checking. This script was written by me (well, actually I took most parts from Zen core codes), use it as your own risk.
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit! Last edited by Kim; 30th April 2008 at 07:31 PM. |
|
|
|
|
|
#2 |
|
Totally Zenned
Join Date: Oct 2006
Posts: 5,453
|
Geeze, I meant Zen, can someone correct the title for me, pretty please ^_^?
(I was working on Zend and somehow that confused me *_*) Cheers.
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit! |
|
|
|
|
|
#3 |
|
Totally Zenned
Join Date: Oct 2006
Posts: 5,453
|
Added create_account, untested.
Use at your own risk. All bugs should be reported here.
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit! |
|
|
|
|
|
#4 |
|
Totally Zenned
Join Date: Oct 2006
Posts: 5,453
|
Basic instruction:
1. Put the file in your ZC root folder (wherever your store is, say if you have your store in www.yourstore.com/store then you put the file in that "store" folder) 2. Now, say you want to bridge ZC with your joomla login: I dont use Joomla, so I dont know where joomla put their login boxes html code and exactly how it processes that info (you go figure it out ^_^), but it has to do that some where. What you have to do is: you have to include this bridge file at the time Joomla processes the login info, and then just use the sample code in the file, pass the login info into the function and you are done.
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit! |
|
|
|
|
|
#5 |
|
Zen Follower
Join Date: Feb 2006
Location: New Hampshire
Posts: 355
|
any security concerns with this? I'm going to work on installing this at my test sight for 138a and phpbb3. Any feedback on someone using this appreciated.
|
|
|
|
|
|
#6 |
|
Totally Zenned
Join Date: Oct 2006
Posts: 5,453
|
I'd leave the comment regarding security concerns for the devs to answer as they know it better.
But 1 thing I recommend: dont include this file when you do not need it (i.e: dont include it on every page), this file loads ZC application_top.php which in turn loads many other necessary files and database constants... Just include it when you process the login/logoff/register .
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit! |
|
|
|
|
|
#7 |
|
Zen Follower
Join Date: Feb 2006
Location: New Hampshire
Posts: 355
|
|
|
|
|
|
|
#8 |
|
Totally Zenned
Join Date: Oct 2006
Posts: 5,453
|
lol, I never used phpbb3 before, how would I know? ^_^
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit! |
|
|
|
|
|
#9 |
|
Zen Follower
Join Date: Feb 2006
Location: New Hampshire
Posts: 355
|
what do you use it for?
|
|
|
|
|
|
#10 | |
|
New Zenner
Join Date: Feb 2008
Posts: 13
|
Quote:
like email, password ? or a simple php page with those two inputs ? I would like to login external to zencart from a simple web page as a front end: Code:
<?php include 'zen_bridge.php'; ?> <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form1" method="post" action="index.php?main_page=login"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="3"><strong>Member Login </strong></td> </tr> <tr> <td width="78">Username</td> <td width="6">:</td> <td width="294"><input name="myusername" type="text" id="myusername"></td> </tr> <tr> <td>Password</td> <td>:</td> <td><input name="mypassword" type="text" id="mypassword"></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Login"></td> </tr> </table> </td> </form> </tr> </table> <?php $zen_bridge = new zen_bridge(); $zen_bridge->login(); ?> Last edited by digital abyss; 1st May 2008 at 07:14 AM. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| phpizabi integration -- possible bridge? | Vintagesportshut | General Questions | 0 | 19th July 2007 06:51 AM |
| SMF bridge | Jadnet | General Questions | 0 | 1st June 2007 03:36 AM |
| is there a joomla bridge? | cowboyfred | All Other Contributions/Addons | 5 | 8th September 2006 03:40 PM |
| The zen bridge in the header | replicapropscom | First Steps & General Customization Issues | 4 | 11th August 2006 11:26 PM |