Part of the EllisLab Network
   
14 of 36
14
FreakAuth_light authentication library/admin application released!
Posted: 18 February 2007 03:44 PM   [ Ignore ]   [ # 196 ]  
Summer Student
Avatar
Total Posts:  8
Joined  02-17-2007

well, nice that it’ll be better soon grin
unfortunately i have to use PHP4 because of my hosting…
to be honest i don’t know yet PHP5 and still i’m not planing to start learn as long as there are problems with hostings wink

thx !

Profile
 
 
Posted: 19 February 2007 04:25 AM   [ Ignore ]   [ # 197 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

I just released FreakAuth_light_1.0.2-BETA

=> DOWNLOAD FreakAuth_light_1.0.2-BETA


This should fix all things found so far in version 1.0.1-BETA

********************************************************************************
*FreakAuth_light CHANGELOG
********************************************************************************

FreakAuth_light 1.0.2-Beta (19/02/2007)

- changed function name view() to show() in controllers/admin/admins.php for PHP4 compliance
- changed function name view() to show() in controllers/admin/users.php for PHP4 compliance
- changed the links in the relative views of the above controller
- sorted out pagination problem in function index() in controllers/admin/users.php
- added method belongsToGroup() in application/libraries/freakauth_light.php
- added helper belongsToGroup($group=null, $only=null) in application/helpers/freakauth_light_helper.php
- made some small changes in the application/helpers/freakauth_light_helper.php
- Changed languages array prefix from ‘FreakAuth_’ to ‘FAL_’
- other minor code cleanup
*********************************************************************************

Check out the updated documentation
Added:
=> Structuring Controllers (Views) logic depending on role (user group)
=> Tip&Tricks: How to use FreakAuth_light with mod_rewrite

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 19 February 2007 09:10 AM   [ Ignore ]   [ # 198 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  03-05-2006

Thanks to Dan for getting this updated version out so quickly.

I was going to post this in a separate thread, but it shouldn’t take long: any PHP4 users had a go with a new version yet?

I had a problem when opening the view user (or admins) page, which the log file tracked down to line 1139 in libraries/Freakauth_light.php

$db_fields =$this->CI->userprofile->getTableFields();

In discussion with Dan last night, I thought it might be my set-up (PHP4.4.0, Apache 2.something).

I’ve just had a bit more of a fiddle with it, and moving the loading of the model (just above that line) to the constructor seems to fix the issue.

This change also still works in PHP5.0.4 as well. (I’m using MAMP to flip between PHP versions, by the way…)

Profile
 
 
Posted: 20 February 2007 12:07 AM   [ Ignore ]   [ # 199 ]  
Summer Student
Avatar
Total Posts:  28
Joined  01-02-2007
stevepaperjam - 19 February 2007 09:10 AM

I was going to post this in a separate thread, but it shouldn’t take long: any PHP4 users had a go with a new version yet?

No, PHP5 here, but I figured I’d switch and have a go. Everything seemed OK until the Administration Console where I get

Parse error: parse error, unexpected ‘}’ in C:\wamp\www\squirrel\system\libraries\Loader.php(624) : eval()‘d code on line 11

Apache version : Apache/2.0.59 (Win32)
PHP version : 4.4.4

 Signature 

fastQuotes - South Africa’s quoting solution

Profile
 
 
Posted: 20 February 2007 02:47 AM   [ Ignore ]   [ # 200 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  03-05-2006
Simon - 20 February 2007 12:07 AM
stevepaperjam - 19 February 2007 09:10 AM

I was going to post this in a separate thread, but it shouldn’t take long: any PHP4 users had a go with a new version yet?

Parse error: parse error, unexpected ‘}’ in C:\wamp\www\squirrel\system\libraries\Loader.php(624) : eval()‘d code on line 11

...that’s really odd, it looks like it’s causing an error in the CI code.

If I get a chance I’ll upgrade to PHP4.4.4 at lunchtime and try mine.

Profile
 
 
Posted: 20 February 2007 03:58 AM   [ Ignore ]   [ # 201 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
Simon - 20 February 2007 12:07 AM
stevepaperjam - 19 February 2007 09:10 AM

I was going to post this in a separate thread, but it shouldn’t take long: any PHP4 users had a go with a new version yet?

No, PHP5 here, but I figured I’d switch and have a go. Everything seemed OK until the Administration Console where I get

Parse error: parse error, unexpected ‘}’ in C:\wamp\www\squirrel\system\libraries\Loader.php(624) : eval()‘d code on line 11

Apache version : Apache/2.0.59 (Win32)
PHP version : 4.4.4

This discussion is for PHP4 ONLY

Hey Simon, did you try to turn

$config['FAL_create_user_profile'] = FALSE;

in application/config/freakauth_light.php ?

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 20 February 2007 04:37 AM   [ Ignore ]   [ # 202 ]  
Summer Student
Avatar
Total Posts:  28
Joined  01-02-2007
danfreak - 20 February 2007 03:58 AM
Simon - 20 February 2007 12:07 AM

Everything seemed OK until the Administration Console where I get

Parse error: parse error, unexpected ‘}’ in C:\wamp\www\squirrel\system\libraries\Loader.php(624) : eval()‘d code on line 11

Apache version : Apache/2.0.59 (Win32)
PHP version : 4.4.4

This discussion is for PHP4 ONLY

Hey Simon, did you try to turn

$config['FAL_create_user_profile'] = FALSE;

in application/config/freakauth_light.php ?

I just checked that for you and it doesn’t appear to make any difference. Let me know if I can test anything else for you - it’s not a problem to switch back to PHP4.

 Signature 

fastQuotes - South Africa’s quoting solution

Profile
 
 
Posted: 20 February 2007 07:58 AM   [ Ignore ]   [ # 203 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

....with regard to naming issues… have a look at this!

gulp

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 20 February 2007 08:26 AM   [ Ignore ]   [ # 204 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  03-05-2006
danfreak - 20 February 2007 03:58 AM
Simon - 20 February 2007 12:07 AM

Everything seemed OK until the Administration Console where I get
Parse error: parse error, unexpected ‘}’ in C:\wamp\www\squirrel\system\libraries\Loader.php(624) : eval()‘d code on line 11

This discussion is for PHP4 ONLY

 

I’ve just upgraded to PHP4.4.4 (same as my host) with the latest stable version of MAMP, and I’m not getting Simon’s error above - could be a vagary of your system. We’ll see if anyone else gets the same problem.

I still had to make that small change to get the system to function with profiles enabled (in the freakauth_light library: moving the model load of “userprofile” to the constructor from the _getUserProfile function).

Profile
 
 
Posted: 20 February 2007 10:42 AM   [ Ignore ]   [ # 205 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  277
Joined  02-07-2007

I am writing an encryption function for the XML configuration setup (so the XML conf can’t be read outside of the application). Really just for my own uses - but I will post it up on the Wiki when I have a good working version. It will be built with the PHP5 mcrypt library…

@dan: lol - I think a sense of humor in open source is a healthy thing - sometimes we all tend to get so bunched up in the seriousness of our discipline… Just wait till the world gets taken over by OpenSource - we will get to see cheesy programmer humor on the streets! Conversations such as: ‘Hey Fred, did you see that riot over the naming issues of Mafia Sessions? Those dudes were crazy - throwing stuffed little Linux penguins, one side with a Mafia Sessions emblem, and the other with FAL!’

(enough of my own cheesy humor)

Take it easy folks…

Profile
 
 
Posted: 21 February 2007 12:43 PM   [ Ignore ]   [ # 206 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

Hi there,
I’m testing FreakAuth_light_1.0.2-BETA with EasyPhp (php 4.3.10, mysql 4.1.9).
everything is fine (VERY fine, wonderful job) except :

1) I don’t want to remove index.php in my URL, so it was a bit of a struggle to move files in ‘controllers/admin’ to ‘controllers’ and then correct the ‘anchor()’ in the view files. I think it is worth explaining this a bit for newcomers to FreakAuth like me. I can try to write something about that if you want.

2) A strange issue : after loggin in as ‘superadmin’, I can browse the admin area correctly. But after
- EXACTLY 3 clicks on ‘home’ or ‘administrators’
- 3 or 4 clicks on ‘example’
I’m thrown to the login page (a bit violently).
Nothing such as this happens when clicking on ‘users’.

Seems weird to me… I’m sure I didn’t download a limited version !!!

After checking a bit the code, it seems that

$this->CI->db_session->userdata('role');

loses the role ‘superadmin’. But I can’t tell more.

Does someone have an idea to make it work ? Is it related to the fact that those files were moved?

Profile
 
 
Posted: 21 February 2007 12:49 PM   [ Ignore ]   [ # 207 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
grahack - 21 February 2007 12:43 PM

Hi there,
I’m testing FreakAuth_light_1.0.2-BETA with EasyPhp (php 4.3.10, mysql 4.1.9).
everything is fine (VERY fine, wonderful job) except :

1) I don’t want to remove index.php in my URL, so it was a bit of a struggle to move files in ‘controllers/admin’ to ‘controllers’ and then correct the ‘anchor()’ in the view files. I think it is worth explaining this a bit for newcomers to FreakAuth like me. I can try to write something about that if you want.

2) A strange issue : after loggin in as ‘superadmin’, I can browse the admin area correctly. But after
- EXACTLY 3 clicks on ‘home’ or ‘administrators’
- 3 or 4 clicks on ‘example’
I’m thrown to the login page (a bit violently).
Nothing such as this happens when clicking on ‘users’.

Seems weird to me… I’m sure I didn’t download a limited version !!!

After checking a bit the code, it seems that

$this->CI->db_session->userdata('role');

loses the role ‘superadmin’. But I can’t tell more.

Does someone have an idea to make it work ? Is it related to the fact that those files were moved?

@1 [EDITED]
didn’t get it. Anyway try to have a look in the application/config/config.php and look for the variable

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";

@2
it seems you have a problem with sessions in YOUR system

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 21 February 2007 12:54 PM   [ Ignore ]   [ # 208 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  03-05-2006

Nope, I don’t get this behaviour with MAMP 1.4.1 (PHP4.4.4, Apache 2.0.59).

Profile
 
 
Posted: 21 February 2007 01:18 PM   [ Ignore ]   [ # 209 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
danfreak - 21 February 2007 12:49 PM
grahack - 21 February 2007 12:43 PM

Hi there,
I’m testing FreakAuth_light_1.0.2-BETA with EasyPhp (php 4.3.10, mysql 4.1.9).
everything is fine (VERY fine, wonderful job) except :

1) I don’t want to remove index.php in my URL, so it was a bit of a struggle to move files in ‘controllers/admin’ to ‘controllers’ and then correct the ‘anchor()’ in the view files. I think it is worth explaining this a bit for newcomers to FreakAuth like me. I can try to write something about that if you want.

@1
didn’t get it

Dan

It’s because I thought that it was not possible to have folders in ‘controllers’ unless you do the trick of removing ‘index.php’ from the url.
It didn’t work for me because I had a php file named admin.php that avoided me to reach the ‘admin’ folder.
In fact my #1 was silly, please forgive me.

Profile
 
 
Posted: 22 February 2007 03:11 AM   [ Ignore ]   [ # 210 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
danfreak - 21 February 2007 12:49 PM
grahack - 21 February 2007 12:43 PM

Hi there,
I’m testing FreakAuth_light_1.0.2-BETA with EasyPhp (php 4.3.10, mysql 4.1.9).
everything is fine (VERY fine, wonderful job) except :

2) A strange issue : after loggin in as ‘superadmin’, I can browse the admin area correctly. But after
- EXACTLY 3 clicks on ‘home’ or ‘administrators’
- 3 or 4 clicks on ‘example’
I’m thrown to the login page (a bit violently).
Nothing such as this happens when clicking on ‘users’.

@2
it seems you have a problem with sessions in YOUR system

Dan

ok, I’ve investigated a bit much
* php5 and mysql5 give the same issue
* pointing the differences between ‘users.php’ and the other files, it appears that

$this->db_session->set_flashdata(’‘,’‘, 1);

executed anywhere in the controller kills my problem : my db_session continues normally now.

I’ll hack it this dirty way until I have patience to find the reason of my problem.

Thanks. Please tell me if it’s not the right place to discuss about that.

Profile
 
 
   
14 of 36
14
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66415 Total Logged-in Users: 34
Total Topics: 84757 Total Anonymous Users: 1
Total Replies: 454849 Total Guests: 232
Total Posts: 539606    
Members ( View Memberlist )