Welcome, Guest. Please Login or Register.
May 09, 2025, 12:06:56 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  authentication help « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: authentication help  (Read 4031 times)
kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
authentication help
« on: March 18, 2002, 07:47:29 PM »
Reply with quote

I have made my first php script  ;D

its a calendar
http://home.kurgan.dk/kurgan/kurganscalendar/

The next thing I'll add is events, but I'd like to make the system check if the user is allowed to edit the eventtable,  so some sort of authentication against the yabb password membergroups would be ideal..

Any help is appreciated
Logged

Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:authentication help
« Reply #1 on: March 19, 2002, 12:29:30 AM »
Reply with quote

well done - an integration with yabb would be awesome! :D
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:authentication help
« Reply #2 on: March 19, 2002, 12:35:25 AM »
Reply with quote

thanks, actually it was far easier than I anticipated, the calendar system as it stands right now, has taken about 4-6 hours to do from scratch, even though Ive only been hacking around in other peoples php files before that..

its split up in 4 files (index.php that makes the main layout, and a simplecalender.api that draws the small calendars, and a fullcalendar.api that draws the big one, finally a colordeclaration.api for colorsettings, but I guess that should be in a per user database?) all in all just about 150 lines including comments
Logged

kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:authentication help
« Reply #3 on: March 19, 2002, 12:43:37 AM »
Reply with quote

btw. Alyson Hannigan is a fox!!
Logged

Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:authentication help
« Reply #4 on: March 19, 2002, 12:45:14 AM »
Reply with quote

;D i have good taste
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:authentication help
« Reply #5 on: March 19, 2002, 01:14:40 AM »
Reply with quote

 ;D

LOL... well you liked my first php script, so who am I to disagree?  ;D
Logged

kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:authentication help
« Reply #6 on: March 19, 2002, 04:27:24 AM »
Reply with quote

still Id love some info on how to handle authentication...
Logged

Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:authentication help
« Reply #7 on: March 19, 2002, 06:26:16 AM »
Reply with quote

heh - sorry i cant help ya there.. im a modder for perl version.. php and sql are new to me  :-[
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:authentication help
« Reply #8 on: March 19, 2002, 08:11:33 AM »
Reply with quote

Quote from: kurgan on March 19, 2002, 04:27:24 AMstill Id love some info on how to handle authentication...
if ($user != "") {
$user_sql ="SELECT memberName, passwd FROM yabbse_members WHERE memberName = '$user'";
$sql_result = mysql_query($user_sql,$connection) or die ("Couldn't execute user query.");
$row = mysql_fetch_array($sql_result);
if ($row["passwd"] == crypt($password,substr($password,0,2))) {
          do your crap
}
}
Ok, $user is the username entered from the form, $password is the plaintext password the entered.  It works with 1.1.0 and Jeff said passwords may have been changed for 1.3.0 but I am not sure.  Sorry for my lousey indentation, and speling, but web forms don't like the tab key.  ;D
« Last Edit: March 19, 2002, 08:13:03 AM by David » Logged

kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:authentication help
« Reply #9 on: March 19, 2002, 01:13:06 PM »
Reply with quote

ok thanks!!!

really nice..

how about checking which memebergroup the current user is part of?
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:authentication help
« Reply #10 on: March 19, 2002, 05:56:09 PM »
Reply with quote

Then add that into the sql query.  That is a very basic thinig that authenticates a user.  I was using it on part of my site, I actually simplified it for here but you can customize it however you wish.
Logged

kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:authentication help
« Reply #11 on: March 19, 2002, 06:01:44 PM »
Reply with quote

Ohh you're the evil dog!!!


that must be why you are being so breif :))
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:authentication help
« Reply #12 on: March 20, 2002, 05:51:31 AM »
Reply with quote

What more do you want?  If you want the membergroup pull up the members table, see what field membergroup is stored in, and then add that field to the sql query.
Logged

kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:authentication help
« Reply #13 on: March 20, 2002, 08:58:38 AM »
Reply with quote

ok ok as long as you dont turn me into dogfood!!! :))
Logged

Bloke
Noobie
*
Posts: 28


Training to be a linux geek....

ICQ - 110249441DenverJanke@hotmail.com WWW
Re:authentication help
« Reply #14 on: March 21, 2002, 09:57:59 AM »
Reply with quote

David reckon u could help me with ur 1337 php coding skills? I just want a simple login sciprt ot protect 1 page. So just want it to ask them to log in then look at their membergroup and maybe cookies if possible.
Logged

________/ /'''''''\ \___
| . . . .___ii-------- |=|",",","::::::=="----
|_---''''''/_/-' ''''''|iii|
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  authentication help « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.030 seconds with 16 queries.