01-11-2008, 04:59 PM | #1 | ||
n00b
Join Date: Apr 2005
Location: Fairborn, OH
|
Lonnie, are you or any php experts out there?
I'm using Lonnie's draft utility over in the PFL and updated the PFL boards to the newest release of phpBB. Unfortunately, they changed the hash, so the MD5 doesn't work anymore and it broke the login for the utility... Anyone an expert in php and would mind helping me debug this? I'm on AIM (Grshpr 2001) if you'd like to help...
Here's the applicable code: PHP Code:
|
||
01-11-2008, 08:38 PM | #2 |
High School Varsity
Join Date: Dec 2004
Location: Midlothian, TX
|
I'm here, but I don't know what changes they made to their password encryption. I just checked on phpBB's site and they say MD5 is still an option. So it may be buried in the phpBB settings somewhere. I'll look into it a little more and see if I can find a quick work around.
You could create a new table and populate it with MD5 passwords as a workaround for now. Just change the phpbb3_users to your other user/password table. Since this one is named phpbb3, do you still have the old tables there? They might work until I can get a better solution.
__________________
Lonnie |
01-11-2008, 11:35 PM | #3 |
n00b
Join Date: Apr 2005
Location: Fairborn, OH
|
I still have the old tables, but unfortunately we have new users who aren't registered under those tables. I suppose I could create a couple entries for them. I'll look into doing that. Here's what I was able to find on the phpbb boards...
My request for help: http://www.phpbb.com/community/viewt...st=0&sk=t&sd=a The dev talking about how to use new hash functions: http://www.phpbb.com/community/viewt...&sd=a&start=60 Lonnie, if you're around tomorrow (later today as I'm writing this), I'd appreciate it if you could help me debug this sucker. I'm a complete novice @ php, and when I try to implement some of their changes (like adding a line to include the new hash functions), I just get a blank screen and I'm not sure why. Thanks!! |
01-12-2008, 12:32 AM | #4 |
High School Varsity
Join Date: Dec 2004
Location: Midlothian, TX
|
I gave it some attempt at getting session integration working tonight but I'm still falling short. There seems to be a lot of confusion out there about it right now. I'll try the new hash function tomorrow.
__________________
Lonnie |
01-12-2008, 01:21 AM | #5 |
High School Varsity
Join Date: Dec 2004
Location: Midlothian, TX
|
Ok try this out for size.
Add the following lines to the very top of index.php even before the html tag, but change the '../phpBB3/' to the path of your forum directory. Mine is at the same level as /draft/ so I go up a level with .. and then into /phpBB3/. PHP Code:
Then find this line: PHP Code:
and change it to this: PHP Code:
I installed phpBB3 and did a test run and it worked.
__________________
Lonnie |
01-12-2008, 10:21 AM | #6 |
n00b
Join Date: Apr 2005
Location: Fairborn, OH
|
ok, I'll try this...
|
01-12-2008, 10:25 AM | #7 |
n00b
Join Date: Apr 2005
Location: Fairborn, OH
|
That didn't exactly work. Page looks really funky now. Ok, here's my test page:
http://primetime-football-league.com...index-test.php |
01-12-2008, 10:29 AM | #8 |
n00b
Join Date: Apr 2005
Location: Fairborn, OH
|
dola. I'm on AIM atm if you can IM me. Grshpr2001
|
01-12-2008, 02:32 PM | #9 |
High School Varsity
Join Date: Dec 2004
Location: Midlothian, TX
|
Some additional changes made to get Nick's working. Just for documentation purposes in case someone can't reach me.
Do a find and replace of $PHP_SELF with $_SERVER[PHP_SELF] Then to reinitialize all of the variables that phpBB steps on, place the following after the line $draftstatus = "live"; PHP Code:
I think I have all the passed variables in that list. Further testing may prove otherwise and if so I will update this post.
__________________
Lonnie |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|