Page 1 of 1

Just out of curiosity, directed to Jacek.

Posted: Wed Jun 15, 2011 9:28 pm
by Temor
I just took a better look at your " Advanced File Server " and I noticed the " user_permissions " column in the users table. And I'm just wondering, how does it work? It all pretty much looks like gibberish to me :)
a:4:{i:0;s:1:"1";i:1;s:1:"1";i:2;s:1:"1";i:3;s:1:"1";}
I couldn't make anything out of it, so please, enlighten me! :)

If anyone else knows how this works, please let me know :)

Re: Just out of curiosity, directed to Jacek.

Posted: Wed Jun 15, 2011 9:32 pm
by jacek
Its a serialised array, have a look at http://php.net/serialize and http://php.net/unserialize

would have been better to us 4 columns really, not sure why I didn’t do that, I think I was planning on allowing user created permissions.

Re: Just out of curiosity, directed to Jacek.

Posted: Wed Jun 15, 2011 9:37 pm
by Temor
jacek wrote:Its a serialised array, have a look at http://php.net/serialize and http://php.net/unserialize

would have been better to us 4 columns really, not sure why I didn’t do that, I think I was planning on allowing user created permissions.
Oh, okay.

I have no idea how that works, but it looks cool :P I will need to read more about it at some point :)