Members: 16,996
Threads: 38,831
Posts: 159,349
Online: 26

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Module 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 22.06.2006, 03:30   #1 (permalink)
Baby Mamber
 
Join Date: Jun 2006
Posts: 2
spicynugget is on a distinguished road
Default urgent joomla 1.0.5 mod_login SQL query code . . .

Hello Joombers,
I just fantastico-installed joomla 1.0.5, and everything works great, but I am modifying a few lines of PHP and need some help.

I am working with the mod_login module found at [http://joomla.org.in/doc/modules/mod...p.source.html]
text only version at :[http://joomla.org.in/doc/modules/mod...hp.source.txt]

As you can see by that file, it is simple SQL authentication. The index.php file calls it and then the mod_login module searches the database for credentials and displays appropriate HTML based on results. What I am trying to do is automatically log a user in just based on an external link. The link will call the joomla index.php file, and the mod_login module will determine if [based on the variables passed in the link], the user will be logged in or simply presented with an option to register.

Currently, if you just call the index.php? file, it presents the user with the option to login or register [found at line 73]. I want to be able to have the user authenticated automatically via the link that comes from an OUTSIDE SITE, for example, if a partner website has a link to our site like, http://www.educationforliberty.com/a...&autologin=yes

I know that others will be able to see username/password combinations, but all it means for us in this situation is that we control the access that is granted based on inbound external links.

I am looking for a solution that will fall right around line 73 and search the SQL database for credentials, and redirect the window if the proper credentials are given. If they are not given, then the user is presented with the default login/register form found after line 73.

I have attempted to do this at line 73 with

_____________________________

// autologin if a user
if ( $autologin == yes) {

$location = 'http://www.educationforliberty.com/altapps/index.php?option=com_content&task=view&id=12&Itemi d=27&data=final_destination_for_authenticated_link ';

print "<script language=\"javascript\">\n";
print "document.location.href=\"$location\"\n";
print "</script>";

}

else {
//load default html to offer registration for user
// open else statement found in original

?>

_____________________________


but there is no authentication aspect in SQL
spicynugget is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL query in registration.php mommi84 Component 'How Do I' Questions 1 14.04.2006 11:05
Code printed after upgrading to Joomla 1.0.8 sunflower Joomla! 1.0.x Installation and Upgrades 0 27.03.2006 00:15
rss.php sql query help (SEF/RSS issue) jluyt Mambo 4.5.1 'How Do I' Questions 0 02.06.2005 21:21
Possible to create page with SQL query? shrill Mambo 4.5.1 'How Do I' Questions 2 25.03.2005 11:10
Lookup and where to put the SQL Code musicones Component Development 3 30.12.2004 08:06


All times are GMT +2. The time now is 19:43.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.