I d'like to stay in the drupal framework with my complex customer subscription form to take advantage of the user variable to set default values in some fields. But I wonder how I could integrate the PEAR QuickForm_Controller system into drupal as the two "page controller" design patterns will overlap.

One solution could be to develop my form mostly out of Drupal but still have access to the session ($user), at least to check the form is not accessed by a anonymous user. (My drupal site does not allow anonymous entrance at all as there are some secret b2b data inside ).

How could I manage to do that ? Can I only include, for instance , database.mysql.inc, session.inc and bootstrap.inc and say with that that I will have access to current $user content ?

Please help, thanks.