Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  Authorizing Via Eblah Support Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

Authorizing Via Eblah Support  This thread currently has 1,875 views. Print
2 Pages 1 2 » Recommend Thread
Craig
February 28, 2005, 3:34am Report to Moderator Report to Moderator

SQL Support Team
Posts: 3,619
Gender: Male
Posts Per Day: 2.13
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 11 minutes
Location: Germany
Age: 38
I don't really understand what this one does.  Can someone explain it better?


Don't just ask a question.
Instead ask a question, give us a screen shot and post a link to your forum.
Help us help you make your forum better!


If I helped...increase my Reputation by clicking here.
Logged Offline
Site Site Private Message Private message ICQ ICQ
kidmuto
March 3, 2005, 12:07am Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
hey craig - it's a wierd one.  in a nutshell, it checks to make sure a user is logged into eblah.  this is useful if a section of your website (which is not part of E-Blah) requires authentication.  

for example: you write a script that is NOT part of eblah and not a mod to eblah, but you only want registered users to access that part of the site.  enter eblah auth.  

if the user is logged in, you will get the value of $username - in your perl script - set to the user's name.  if the user isn't logged in, you will $username will equal "Guest."  the calling script can then deal with it appropriately.

does that make sense?
Logged Offline
Private Message Private message Reply: 1 - 22
Craig
March 3, 2005, 12:39am Report to Moderator Report to Moderator

SQL Support Team
Posts: 3,619
Gender: Male
Posts Per Day: 2.13
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 11 minutes
Location: Germany
Age: 38
So it uses the E-Blah usernames to authorize access to other scripts?


Don't just ask a question.
Instead ask a question, give us a screen shot and post a link to your forum.
Help us help you make your forum better!


If I helped...increase my Reputation by clicking here.
Logged Offline
Site Site Private Message Private message ICQ ICQ Reply: 2 - 22
Ryan
March 3, 2005, 9:39am Report to Moderator Report to Moderator

Inactive Support Team
Posts: 1,799
Gender: Male
Posts Per Day: 1.14
Reputation: 85.00%
Reputation Score: +85 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 29
It provides the 'engine' to do that yep.




Read about Canada's Holocaust "Hidden from History" - http://www.ryanpaul.ca/canadas-holocaust/
Logged Offline
Site Site Private Message Private message YIM YIM Reply: 3 - 22
kidmuto
March 4, 2005, 10:57am Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
that's exactly right craig.  eventually i'd love to see eblah become more module based and provide this and other things as functions. For example -

Code

use Eblah;
$username=Eblah::GetUser || Eblah::ForceLogin;


the idea is that Eblah itself would use those modules as well, so even when Eblah changes, mods rarely have to be updated.
Logged Offline
Private Message Private message Reply: 4 - 22
Justin
March 4, 2005, 3:50pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,070
Gender: Male
Posts Per Day: 6.55
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 14 minutes
Location: Tallassee, AL
Age: 22
There would have to be a total rewrite, which I haven't the time to do, though.  


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 5 - 22
kidmuto
March 5, 2005, 6:37pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
that's ok - in the meantime people can use this mod!  i'll (hopefully) update it in v9 if the login routines change...
Logged Offline
Private Message Private message Reply: 6 - 22
AliHaig
May 31, 2005, 4:29pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 111
Gender: Male
Posts Per Day: 0.08
Time Online: 1 days 12 hours 31 minutes
Location: High Wycombe, UK
Age: 20
Ok from what i understand it sounds really cool! but 2 questions,

1. How do i use it? Do I just upload this script to the Blah directory and then write another seperate script for my area that requires authorization that include the line
require "EblahAuth.pl"
and then say if $username is not guest then do one thing and if it is guest then do something else?

2. Can I set it so that a user has to be in a certain eblah member group to gain access?


not quite so stupid as before - but am still willing to learn....

And having a lot of learning still to do
Logged Offline
Site Site Private Message Private message Reply: 7 - 22
kidmuto
May 31, 2005, 5:34pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
that's exactly correct.  after the require "EblahAuth.pl" line, the variable $username will be set to the user's username, or Guest if the user is not logged in.

there is currently no support for user groups, but its a good idea for the future.

by the way, this hasn't been tested on eblah 9 - if anyone has tried it successfully (or not), please post.

thanks!
Logged Offline
Private Message Private message Reply: 8 - 22
AliHaig
June 1, 2005, 5:11am Report to Moderator Report to Moderator

E-Blah Member
Posts: 111
Gender: Male
Posts Per Day: 0.08
Time Online: 1 days 12 hours 31 minutes
Location: High Wycombe, UK
Age: 20
Well i am on eblah 9 at the moment so if i get it working i will let you know!


not quite so stupid as before - but am still willing to learn....

And having a lot of learning still to do
Logged Offline
Site Site Private Message Private message Reply: 9 - 22
T3hProhibited
June 1, 2005, 4:37pm Report to Moderator Report to Moderator
Guest User
o.0 um, why couldn't you just be like:

Code

<?php
if (isset($_COOKIE["BlahNAME"]))
{
echo " CONTENT HERE ";
}
else
{
echo "Sorry, but you must <a href=\"http://yoursite.com/cgi-bin/Blah/Blah.pl?,v=login\";
}
?>


and I'm thinking this code you created  is for making extra member areas for members.. i think it'd be easier to use in PHP lol

Revision History (1 edits)
T3hProhibited  -  June 1, 2005, 4:38pm
Logged
E-mail E-mail Reply: 10 - 22
kidmuto
June 1, 2005, 5:56pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
1. that will only work to tell you if the user is logged in or not, not who is logged in

2. you want the value of $username native in your own script

3. you dont want to use php

4. setting a cookie is easy which makes that method insecure (the assumption being that eblah uses a hash in the cookie value and verifies everytime Blah.cgi is accessed - i never actually bothered to check this though)
Logged Offline
Private Message Private message Reply: 11 - 22
Proohhh
June 2, 2005, 6:39am Report to Moderator Report to Moderator
Guest User
1. Blah

2. Blah

3. yes i do!

4. That was an example, you could easily write a script to make sure the password and username of the cookie are correct. (read from the .DAT file)
Logged
E-mail E-mail Reply: 12 - 22
kidmuto
June 2, 2005, 7:37am Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
1. ok
2. ok
3. its for perl lovers
4. thats what this is, except it uses native blah code.
Logged Offline
Private Message Private message Reply: 13 - 22
Prohhh
June 2, 2005, 3:05pm Report to Moderator Report to Moderator
Guest User
Personally I think that it'd be easier in PHP. I use to be interested in coding in PERL, but  I found PHP to be much easier to understand. Learned alot the first day  I tried it.
Logged
E-mail E-mail Reply: 14 - 22
2 Pages 1 2 » Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  Authorizing Via Eblah Support