Welcome Guest, Not a member yet? Register   Sign In
Help revive codeigniter 2.x project

One bug in code.
Fix that bug.
One hundred bugs in the code.

Sounds like a nightmare to say the least.

Yeah, stick with 2.x at this time. You need to manually search and replace all new functions and deprecated code, I'm afraid you can't just copy over the system folder.

You normally copy things over, so that you don't need to write it again and again. But if you copy too much code you need to make a more generic modal that can adapt to multiple tables instead.


Okey, you where right. Admin accounts are stored in 'accounts'. At this time your rights (100) aren't being used. From the code posted at least.

So your admin password should be generated by:
PHP Code:
<?php echo sha1('member_salt' 'abcdef'); ?>

Where member_salt can be found in a config file under application\config (at least I hope so).

You can of course just hack it so you always login, and ignore the password at this time.
PHP Code:
// if (is_object($admin) && $admin->password == sha1($this->config->item('member_salt') . $password)) {
// return $admin;
// } else {
// return false;
// }
return $admin

Messages In This Thread
Help revive codeigniter 2.x project - by Ricke - 02-25-2018, 06:45 AM
RE: Help revive codeigniter 2.x project - by jreklund - 02-27-2018, 01:00 AM

Theme © iAndrew 2016 - Forum software by © MyBB