Okay, let's leave it at that.
1 2007-01-01 19:31
Re: Strange behavior of unserialize($_COOKIE[$cookie_name]) (14 replies, posted in PunBB 1.2 troubleshooting)
2 2007-01-01 18:34
Re: Strange behavior of unserialize($_COOKIE[$cookie_name]) (14 replies, posted in PunBB 1.2 troubleshooting)
1. Sessions aren't necessarily the best things for search engines: they usually end up with the ugly PHPSESSID URLs.
You can disable this.
2. We're not really storing lots of information in the cookie: just a user ID and a password hash. If we were trying to store all the user data it would be a better idea to use sessions
Why not save more data in sessions?
3. Session cookies don't save when the browser closes/opens again, so people can't save their logins.
You can change this behavior.
http://php.net/session_set_cookie_params() is your friend.
3 2007-01-01 17:35
Re: Strange behavior of unserialize($_COOKIE[$cookie_name]) (14 replies, posted in PunBB 1.2 troubleshooting)
Okay this is nice to hear.
But why you do not use Sessions?
4 2007-01-01 14:33
Re: Strange behavior of unserialize($_COOKIE[$cookie_name]) (14 replies, posted in PunBB 1.2 troubleshooting)
Okay. Than this is definitely not a bug.
I just missed this line of code in my implementation of the cookie check.
But still using base64 would be better in this case
5 2007-01-01 14:07
Re: Strange behavior of unserialize($_COOKIE[$cookie_name]) (14 replies, posted in PunBB 1.2 troubleshooting)
a:2:{i:0;s:1:\"2\";i:1;s:32:\"af5a3a493403550749744b4bd55799d1\";}
This is the value.
Works fine for:
unserialize("a:2:{i:0;s:1:\"2\";i:1;s:32:\"af5a3a493403550749744b4bd55799d1\";}")
but not for:
unserialize('a:2:{i:0;s:1:\"2\";i:1;s:32:\"af5a3a493403550749744b4bd55799d1\";}')
If you use base64_encode/decode it does not matter which type of quote you use.
6 2007-01-01 12:15
Re: Strange behavior of unserialize($_COOKIE[$cookie_name]) (14 replies, posted in PunBB 1.2 troubleshooting)
I am using 5.2 -> works fine here for me.
But we are using 5.1.6 on the server, there it did not worked.
7 2006-12-31 18:38
Topic: Strange behavior of unserialize($_COOKIE[$cookie_name]) (14 replies, posted in PunBB 1.2 troubleshooting)
Hello Guys!
This night i encountered some strange behavior of unserialize($_COOKIE[$cookie_name]), it just returned (bool)false.
So I took just the string in $_COOKIE[$cookie_name] and passed it to unserialize by hand and I got the correct result.
I was surprised - what is wrong!?
Finally i solved this strange behavior by using base64_encode/decode. I do not know if this is a real 'bug' - but i tink so.
Here is the patch:
http://familiehaeuser.de/files/base64.patch
-Chepra
8 2006-09-04 15:44
Topic: Automated Forum selection (2 replies, posted in Feature requests)
Hey Guys!
Well, I just found some thing I think which would be very usefull for punbb, I dont know if it fits into the terms of punbb.
Wenn you are looking into a forum (like 'Feature requests' here) and you now want to search this forum, you normally go to the search page.
And now you select the forum which should be searched, wouldnt it be nice if this will be done by php?
Chepra
9 2006-09-02 16:04
Re: Change in do_smilies() (4 replies, posted in Feature requests)
I have just written my absolute URL in front of /img/smilies/
Thanks Rickard!
10 2006-09-01 15:43
Topic: Change in do_smilies() (4 replies, posted in Feature requests)
Hello Guys!
I have to say, very nice job!
Here is my request:
Maybe it is possible to modify the do_smilies func so, that we can use outside of punbb, e.g. in an guestbook on the same site.
'$1<img src="/'.$path_from_docroot_to_punbb.'/img/smilies/'
Regards, chepra
11 2006-08-28 12:09
Re: Multigroup mod for PunBB 1.2 (20 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Anyone who wanna update it?
12 2006-08-28 11:47
Re: Multigroup mod for PunBB 1.2 (20 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Is this Modification still up to date?