Get the book

Go Back   Zen Cart Support > Community Contributed Add-Ons > All Other Contributions/Addons

All Other Contributions/Addons Discussion of contributions/addons not categorized above

Reply
 
Thread Tools Display Modes
Old 24th April 2008, 09:29 PM   #1
yellow1912
Totally Zenned
 
Join Date: Oct 2006
Posts: 5,453
Default Zen Bridge

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.
yellow1912 is offline   Reply With Quote
Old 24th April 2008, 09:54 PM   #2
yellow1912
Totally Zenned
 
Join Date: Oct 2006
Posts: 5,453
Default Re: Zend Bridge

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!
yellow1912 is offline   Reply With Quote
Old 25th April 2008, 12:00 AM   #3
yellow1912
Totally Zenned
 
Join Date: Oct 2006
Posts: 5,453
Default Re: Zend Bridge

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!
yellow1912 is offline   Reply With Quote
Old 29th April 2008, 08:58 PM   #4
yellow1912
Totally Zenned
 
Join Date: Oct 2006
Posts: 5,453
Default Re: Zend Bridge

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!
yellow1912 is offline   Reply With Quote
Old 30th April 2008, 07:27 PM   #5
athena
Zen Follower
 
athena's Avatar
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 355
Default Re: Zend Bridge

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.
athena is offline   Reply With Quote
Old 30th April 2008, 07:44 PM   #6
yellow1912
Totally Zenned
 
Join Date: Oct 2006
Posts: 5,453
Default Re: Zend Bridge

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 .


Quote:
Originally Posted by athena View Post
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.
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit!
yellow1912 is offline   Reply With Quote
Old 30th April 2008, 08:48 PM   #7
athena
Zen Follower
 
athena's Avatar
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 355
help question Re: Zend Bridge

Quote:
Originally Posted by yellow1912 View Post
...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.
So for phpbb3 where would this be? My code skills are limited.
athena is offline   Reply With Quote
Old 30th April 2008, 08:50 PM   #8
yellow1912
Totally Zenned
 
Join Date: Oct 2006
Posts: 5,453
Default Re: Zend Bridge

lol, I never used phpbb3 before, how would I know? ^_^

Quote:
Originally Posted by athena View Post
So for phpbb3 where would this be? My code skills are limited.
__________________
Please avoid sending PM for help - post in the forum so everyone can read and benefit!
yellow1912 is offline   Reply With Quote
Old 30th April 2008, 10:57 PM   #9
athena
Zen Follower
 
athena's Avatar
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 355
Default Re: Zen Bridge

what do you use it for?
athena is offline   Reply With Quote
Old 1st May 2008, 07:09 AM   #10
digital abyss
New Zenner
 
Join Date: Feb 2008
Posts: 13
Default Re: Zend Bridge

Quote:
Originally Posted by yellow1912 View Post
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.
Is there any way this could be used in a basic html page with two text inputs
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>&nbsp;</td>
<td>&nbsp;</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();
?>
Am I using it all wrong?

Last edited by digital abyss; 1st May 2008 at 07:14 AM.
digital abyss is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 08:27 PM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads