Part of the EllisLab Network
   
18 of 36
18
FreakAuth_light authentication library/admin application released!
Posted: 27 February 2007 07:18 PM   [ Ignore ]   [ # 256 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

Hey Cobzilla,
welcome on board!

Read my answers below:

* Can i change the layout as much as i like?

Dan: Sure! You are free t customise them!
* Is there an obligation to keep the footer displaying your company?
No. Nevertheless, if you do I’ll appreciate it.
* Do i have to point to the freakauth website somewhere on every page?
No, Nevertheless, if you do I’ll appreciate it.

You must just keep the ‘headers’ with the application author etc in the php source files.
If you put a link somewhere (it’s not compulsory) I’ll appreciate it as moral reward grin

If you like the application you can consider making a donation here (the amount is up to you), to help the maintainance of the application, the forum support and its future development: at present I’m an unemployed ex PhD student cool hmm

 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: 28 February 2007 02:17 AM   [ Ignore ]   [ # 257 ]  
Summer Student
Total Posts:  2
Joined  02-06-2007

Hi there,
This is a bug report.

When I put a .htaccess file in TMP directory, it disappears. Sometimes one need to put that file in the tmp file. for me, I have to turn the Rewrite Engine off to let the browser load the security image. But that file will be deleted after each cleanup.
file .htaccess must be excluded from deletion; like index.html.
function _deleteOldSecurityCodeImage should change this way:

function _deleteOldSecurityCodeImage($now)
    
{
        
list($usec, $sec) = explode(" ", microtime());
        
        
//sets the expiration time of the captcha image
        
$expiration=60*10; //10 min
            
        
$current_dir = @opendir($this->CI->config->item('FAL_security_code_image_path'));
        
        while(
$filename = @readdir($current_dir))
        
{
            
if ($filename != "." AND $filename != ".." AND $filename != "index.html"
                
AND $filename != ".htaccess")
            
{
                $name
= str_replace(".jpg", "", $filename);
            
                if ((
$name + $expiration) < $now)
                
{
                    
@unlink($this->CI->config->item('FAL_security_code_image_path').$filename);
                
}
            }
        }
        
        
@closedir($current_dir);
    
}

By the way, thank you for your invaluable library, it saved me lots of time…

Profile
 
 
Posted: 28 February 2007 03:57 AM   [ Ignore ]   [ # 258 ]  
Summer Student
Total Posts:  2
Joined  04-29-2006

danfreak, thanks a lot for the FreakAuth_light.

I hope that is a correct place for my question. If not, sorry.

I see no ‘Security code’ images in http://domain/codeigniter/index.php/auth/

Some facts:

1) The link in the HTML source is, for example:
http://domain/codeigniter/tmp/1172651712.0507.jpg

2) “Unable to find a font to use.” in the top part of the page.

3) /tmp : 777
/public : 777
/css /images / js : 777

4) ExpressionEngine wizard.php: All “Requirements” are “Supported”

5) FreeBSD, Safe Mode, Apache v1.3.37 (cgi), PHP 5.1.4, MySQL 4.1.21

6) I can give direct links.

7) domain/codeigniter/“system”/fonts :
- index.html
- Jester.ttf
- texb.ttf

8) CI 1.5.2 / FAL 1.0.2

Thanks a lot!

Profile
 
 
Posted: 28 February 2007 04:29 AM   [ Ignore ]   [ # 259 ]  
Summer Student
Total Posts:  2
Joined  02-06-2007

@sigork


Is the RewriteEngine on for the CI directory? If yes, that is the problem, I had the same issue.
You should turn it off for your TMP directory and Public directory. make a .htaccess file in those directories and put this line in it:

RewriteEngine off

of course, you should read my other post about the .htaccess in tmp dir - it is 2 posts above.
one solution for my problem - beside changing the code - is:
1. make another folder in tmp dir, it would be this: /CI/tmp/another-tmp/
2. put the .htaccess in /CI/tmp/
3. in /CI/system/application/config/freakauth_light.php file, change entry “FAL_security_code_image_path” from “tmp/” to “tmp/another-tmp/”.

Profile
 
 
Posted: 28 February 2007 06:46 AM   [ Ignore ]   [ # 260 ]  
Summer Student
Total Posts:  17
Joined  11-14-2006

Hi i have several Problems adding a user:
http://ctserver/kl/index.php/admin/users/add

Fatal error: Call to a member function on a non-object in /var/www/kl/system/application/libraries/Freakauth_light.php on line 1196


does anyone know whats wrong there?

Profile
 
 
Posted: 28 February 2007 07:03 AM   [ Ignore ]   [ # 261 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
alexpetri - 28 February 2007 06:46 AM

Hi i have several Problems adding a user:
http://ctserver/kl/index.php/admin/users/add

Fatal error: Call to a member function on a non-object in /var/www/kl/system/application/libraries/Freakauth_light.php on line 1196


does anyone know whats wrong there?

Are you using PHP4?

 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: 28 February 2007 10:15 AM   [ Ignore ]   [ # 262 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  208
Joined  06-12-2006

I had the same error as alexpetri . using php4 and ci 1.5.2

to solved i did this:

in controllers/auth.php, within the constructor, line 37,  (or whatever):


$this->lang->load('freakauth');
        
$this->load->model('Usermodel');
        
$this->load->model('Userprofile');  // <--- Add this line
        
$this->load->library('validation');

And that’s all. Took good time to find out though. wink

Profile
 
 
Posted: 28 February 2007 10:56 AM   [ Ignore ]   [ # 263 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  181
Joined  02-25-2007

Hi,

I have a similar problem:

When trying to view a certain user in the admin console I get the following error:

Fatal error: Call to a member function on a non-object in /hsphere/local/home/bobosox3/theangryrantist.com/CodeIgniter/system/application/libraries/Freakauth_light.php on line 1139

This also happens when a user confirms the account in the email by clicking the link.

Any ideas?

Profile
 
 
Posted: 28 February 2007 11:33 AM   [ Ignore ]   [ # 264 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  208
Joined  06-12-2006
codelearn - 28 February 2007 10:56 AM

Hi,

I have a similar problem:

When trying to view a certain user in the admin console I get the following error:

Fatal error: Call to a member function on a non-object in /hsphere/local/home/bobosox3/theangryrantist.com/CodeIgniter/system/application/libraries/Freakauth_light.php on line 1139

This also happens when a user confirms the account in the email by clicking the link.

Any ideas?

I JUST ANSWERED raspberry

Profile
 
 
Posted: 28 February 2007 11:41 AM   [ Ignore ]   [ # 265 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  181
Joined  02-25-2007

Ztinger:

The problem persists!

Profile
 
 
Posted: 28 February 2007 11:49 AM   [ Ignore ]   [ # 266 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  208
Joined  06-12-2006
codelearn - 28 February 2007 11:41 AM

Ztinger:The problem persists!

Well, I had the exact same problem that you yesterday and resolved that way.

Profile
 
 
Posted: 28 February 2007 11:57 AM   [ Ignore ]   [ # 267 ]  
Summer Student
Total Posts:  4
Joined  02-28-2007

ztinger,

Your fix didn’t fix my install of freakauth.

PHP 4.4.3

FreakAuth 1.0.2 Beta

CI 1.5.2


Error:
Fatal error: Call to a member function on a non-object in /home/xxx/public_html/system/application/libraries/Freakauth_light.php on line 1196

Url:

http://my-site.com/admin/users/add.html

Profile
 
 
Posted: 28 February 2007 12:34 PM   [ Ignore ]   [ # 268 ]  
Summer Student
Total Posts:  4
Joined  02-28-2007

I think I’ve got it now…

(in \system\application\libraries\Freakauth_light.php)

replace all instances

$this->CI->load->model('Userprofile', 'userprofile');


with

$this->CI->load->model('Userprofile');

then

replace all instances

>CI->userprofile


with

>CI->Userprofile

*Notice capital U in Userprofile

Then, put ztinger’s code in auth.php and admin/admins.php

For example: line 46 or so in admin/admins.php

$this->lang->load('freakauth');
        
$this->load->model('FreakAuth_light/usermodel', 'usermodel');
         
$this->load->model('Userprofile');  // <--- Add this line
        
$this->load->library('validation');

Profile
 
 
Posted: 28 February 2007 01:00 PM   [ Ignore ]   [ # 269 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  277
Joined  02-07-2007

Capital U or not - it shouldn’t matter, because the second parameter when loading the model, is reassigning its name.

Example:

$this->load->model('Usermodel');

Will be used like this:

$this->Usermodel->somefunction();

BUT when it is loaded like this:

$this->load->model('Usermodel', 'usermodel');

It will be used like this:

$this->usermodel->somefunction();

So, either way you did it, it shouldn’t have caused any errors - the error messages usually tell you all you need to know though…

Profile
 
 
Posted: 28 February 2007 01:11 PM   [ Ignore ]   [ # 270 ]  
Summer Student
Total Posts:  4
Joined  02-28-2007

Iksander you are right, and at the same time I have to disagree, in practice.

What you’ve said is accurate, BUT, I had an error with FAL using on a server running php 4+.  I made the changes I outlined and the problems went away.

If it helps the author tweak his code, or someone else resolve the issue, then great.

But I needed the problem fixed, and those are the steps I took.  Whether my changes *should* matter or not is moot. 

But on an academic level, I already knew, and agree with what you’ve posted.

Profile
 
 
   
18 of 36
18
 
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: 66414 Total Logged-in Users: 28
Total Topics: 84753 Total Anonymous Users: 1
Total Replies: 454836 Total Guests: 246
Total Posts: 539589    
Members ( View Memberlist )
Newest Members:  paulevansbyrooNirCalexmuellerkizerdrixcaptainredmuffquinodligtharttechsivamDjordje