Skip navigation.

Raphael's Blog

A look into a programmer's life

Posts tagged with "FDB"

FDB-> Again with the PHP sessions system

,

Finally I decided to keep the PHP sessions system, but using a custom session handler, that in this case will be one that I'm writing to use the phpBB2 sessions system.
After thinking and thinking about how to solve the problem of storing some information like the CAPTCHA confirmation codes, I found that the easiest way to do it is by using the PHP sessions system but with a custom handler. So I prevent that in some time I found that I need to save some data but the system doesn't let me :smile: .

With this last change I hope that I won't have neither to redesign nor touch a single piece of code of the Sessions System.

Version: I was taking a look at the current FDB version and I found that it is at 0.9.0.5 - Before I continue talking about this I'll explaining why there's a .5 there, well, it is because of the templates system change, yup, after changing the template system and then rewriting some sections to take advantage of the new features, I got the .5 - So when I finish rewriting the sessions system it'll be at 0.9.1, so, everybody who I told that I was going to update the FDB from my website when I reach the v0.9 well... that's not going to happen, since I still have to:

  • Finish the new sessions system
  • Update and finish the administration panel for the current FDB db design.


Resuming: it will take me at least one or two more weeks, so I hope that I'll finish it before, because if I don't you will have to wait two more weeks because of vacations :smile:

FDB -> Dealing with phpBB sessions

, ,

I've been trying to fix a small problem which causes the script to get confused and use the user_id -1 (which is Anonymous), without any reason. But since I'm using the normal PHP sessions system to store some data to reduce the number of queries in each request, maybe it has something to do.
So tomorrow I'll be removing the whole usage of the normal PHP sessions system, so I can keep the code clean and find out what's going on, since this is the main problem the FDB has.

x64Template 1.0 ready

,

Yesterday night I just finished to add the ifs in arrays support, and now I'm just making the changes to my FDB and other scripts that uses the bTemplate engine.
So, the final change log for the 0.1 is:
  1. Changed the documentation to phpDoc format
  2. Added plugins support
  3. Changed some variable and function names by prepending a '_' so it is easier to identify private functions/variables from global ones.
  4. Added the x64Template::append() function so an already set value/array can be changed by appending content, and if it is an array, merging it.
  5. Added more information for some functions so a developer could easily find out that some of the current class functions can be used for retrieving data from the template
  6. Improved the performance of some of the functions
  7. Added support for 'if' conditions in arrays


But there are some other features that I'll add later, so, updating what I said in my other post:

  • Add a template syntax checker, which will be helpful for developers to find out mistakes in their templates
  • Add regular expressions 'if' conditions, with support of normal POSIX and PCRE


I'll release this new template engine in phpclasses and freshmeat in some days (maybe tomorrow, if everything is ok).

FDB 0.9 comming soon!

I'm very happy, and proud, to say that finally the 0.9 version of the FDB is going to be ready in a few days... even when this version is not going to have all the features that are going to be added for the 1.0, it has many improvements on the bb wrapper and on the sql wrapper, and of course... on the templates system and on the default template... now it looks really better even on Internet Explorer!