Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 20th, 2009, 05:38 AM
Registered User
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cant Login in Admin

hi there!
my problem is very simple, i cant login in the admin area.
if i unload the security helper from here:
Code:
$autoload['helper'] = array('url','form','text','date','security');
login is succesfull but then i should clean from every form the id_clean and the db_clean function.
i think its cause my server;
maybe i should set some global variable?
i tried also creating a new admin via sql but of course, the password i use is not encrypted so again to log in i have to deactivate the security helper.
with the 'standard' settings from the zip, i have a weird message from firefox telling me that its unable to process the information cause the compression is not supported, that's why i thought about server (aruba linux)
thank you
Reply With Quote
  #2 (permalink)  
Old May 21st, 2009, 08:00 AM
Wrox Author
 
Join Date: May 2008
Location: Austin, TX, USA.
Posts: 53
Thanks: 0
Thanked 5 Times in 5 Posts
Default need more info

Quote:
Originally Posted by pollers View Post
hi there!
my problem is very simple, i cant login in the admin area.
if i unload the security helper from here:
Code:
$autoload['helper'] = array('url','form','text','date','security');
login is succesfull but then i should clean from every form the id_clean and the db_clean function.
i think its cause my server;
maybe i should set some global variable?
i tried also creating a new admin via sql but of course, the password i use is not encrypted so again to log in i have to deactivate the security helper.
with the 'standard' settings from the zip, i have a weird message from firefox telling me that its unable to process the information cause the compression is not supported, that's why i thought about server (aruba linux)
thank you
can you provide the rest of your autoload file? I think I need to see how else you're set up there.
__________________
Thomas Myer
Author, Professional CodeIgniter
http://www.tripledogs.com
Reply With Quote
  #3 (permalink)  
Old May 31st, 2009, 01:40 PM
Registered User
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by myerman View Post
can you provide the rest of your autoload file? I think I need to see how else you're set up there.
I have the same problem Myer,

this is my autoload file, this pretty same as the file you provided in the download section :

Quote:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the framework as light-weight as possible only the
| absolute minimal resources are loaded by default. For example,
| the database is not connected to automatically since no assumption
| is made regarding whether you intend to use it. This file lets
| you globally define which systems you would like loaded with every
| request.
|
| -------------------------------------------------------------------
| Instructions
| -------------------------------------------------------------------
|
| These are the things you can load automatically:
|
| 1. Libraries
| 2. Helper files
| 3. Plugins
| 4. Custom config files
| 5. Language files
|
*/

/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your system/application/libraries folder.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/

$autoload['libraries'] = array('database','session','email','validation');


/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/

$autoload['helper'] = array('url','form','text','date','security');


/*
| -------------------------------------------------------------------
| Auto-load Plugins
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['plugin'] = array('captcha', 'js_calendar');
*/

$autoload['plugin'] = array('captcha');


/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/

$autoload['config'] = array();


/*
| -------------------------------------------------------------------
| Auto-load Language files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/

$autoload['language'] = array();

$autoload['model'] = array('MCats','MProducts','MOrders','MAdmins','MSi zes','MColors', 'MPages', 'MSubscribers');


/*
| -------------------------------------------------------------------
| Auto-load Core Libraries
| -------------------------------------------------------------------
|
| DEPRECATED: Use $autoload['libraries'] above instead.
|
*/
// $autoload['core'] = array();


?>
Reply With Quote
  #4 (permalink)  
Old June 1st, 2009, 04:38 PM
Registered User
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

is it because i'm using PHP 5 insted of PHP 4? plz someone help..

Last edited by langithitam; June 1st, 2009 at 04:41 PM..
Reply With Quote
  #5 (permalink)  
Old June 3rd, 2009, 07:01 AM
Wrox Author
 
Join Date: May 2008
Location: Austin, TX, USA.
Posts: 53
Thanks: 0
Thanked 5 Times in 5 Posts
Default do you have...

a file called MY_security_helper.php in /system/application/helpers folder?
__________________
Thomas Myer
Author, Professional CodeIgniter
http://www.tripledogs.com
Reply With Quote
  #6 (permalink)  
Old June 3rd, 2009, 08:14 AM
Registered User
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by myerman View Post
a file called MY_security_helper.php in /system/application/helpers folder?
Yes i do. And this is the file :

Quote:
Yes i do. this is the file :

<?php
function id_clean($id,$size=11){
return intval(substr($id,0,$size));
}

function db_clean($string,$size=255){
return xss_clean(substr($string,0,$size));
}
?>
Reply With Quote
  #7 (permalink)  
Old June 3rd, 2009, 09:01 AM
Registered User
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

totally the same to me,
for both files
Reply With Quote
  #8 (permalink)  
Old September 4th, 2009, 06:40 AM
Authorized User
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

did this ever get resolved?

i got the same problem
Reply With Quote
  #9 (permalink)  
Old September 5th, 2009, 10:24 AM
Wrox Author
 
Join Date: May 2008
Location: Austin, TX, USA.
Posts: 53
Thanks: 0
Thanked 5 Times in 5 Posts
Default I'm a bit stumped....

Is there some way for you to drop your files onto an FTP site or a ZIP archive so I can see what you're doing? If you have the helper autoloaded and you've added the MY helper then you should be all right. Unless you've skipped an important point in the book (which someone else did, and once they put the code in, they were fine).
__________________
Thomas Myer
Author, Professional CodeIgniter
http://www.tripledogs.com
Reply With Quote
  #10 (permalink)  
Old September 5th, 2009, 11:56 AM
Authorized User
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Thomas,

Thanks for getting back.

It's working now ... I hadn't autoloaded the helper. Once I read your reply and autoloaded the helper it works just fine.

Thanks again.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Survey Engine--Cannot Login To Admin newHank BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 July 26th, 2006 03:33 PM
I can't login admin account all chapter ? pop99 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 June 4th, 2006 05:17 AM
Admin login help banned Classic ASP Databases 2 May 8th, 2006 07:50 PM
admin login mujnu PHP How-To 0 February 5th, 2006 08:03 AM
can't login into PHPNuke as admin anshul Pro PHP 0 August 5th, 2004 04:16 AM



All times are GMT -4. The time now is 10:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.