Warning: file_get_contents(http://www.vblogetin.com/blogs/api.php?request=comments&entryid=83) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/adrian/public_html/backend/functions_feed.php on line 19

Warning: array_reverse() [function.array-reverse]: The argument should be an array in /home/adrian/public_html/blog_.php on line 161

Warning: Invalid argument supplied for foreach() in /home/adrian/public_html/blog_.php on line 163
SirAdrian - Permissions Rehaul

Permissions Rehaul


posted 15/10/2006 in vBlogetin Development

Again!! Okay, this is the last time, I promise. I completely tore this thing to shreds because it wasn't working. I was having to pass large arrays like $blogsettings, $entry, $comment all the time without any references. I was having to pass more than 1 piece of data too sometimes, and that was impossible without using global variables. This became a huge problem with scope causing random bugs.

Anyway, it works MUCH better now, and the code is much easier to follow because everything is passed. It's now its own class and all the permissions are handled completely seperate from the frontend files. On top of this, I greatly improved the debugging for it... it will show all of the permission checks in a nice table, and their status (result, required, cached). It will also highlight the required check that failed so we can quickly fix things.

Post a Comment

Your Name *
Your Email *
Your Message
* only required if you don't have a vBlogetin.com account