Just out of curiosity, directed to Jacek.

Talk about anything in here.
Post Reply
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Just out of curiosity, directed to Jacek.

Post 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 :)
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Just out of curiosity, directed to Jacek.

Post 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.
Image
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Just out of curiosity, directed to Jacek.

Post 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 :)
Post Reply