Hi,
I really like PunBB, and would like on a new website i'm currently working on.
It's my first try with the Zend Framework and I think it's a very efficient way of building a website.
Sadly, right now, i don't see how to mix Zend Framework with punBB.

The trouble is that with Controllers / Routers and Actions from Zend Framework, my application looks like that (for URL) :
http://my.domain.com/area/article/param … arameter2/
(with URL rewriting forwarding everything to index.php)

Of course I could "take off" punBB from this mechanism, in order to have a "http://my.domain.com/forum/index.php" pointing on the punBB zone, but with this solution it would be a pain to integrate the forum in the site (headers / footers built "automatically" from Zend Framework for every URLs like area/article/params/)

So what could I do ?
Is there a way to have punBB respond to URLs like
http://my.domain.com/forum/viewtopic/28
http://my.domain.com/forum/userlist

... with integrations in the rest of the framework ?

Has someone already integrated punBB with a site built on top of Zend Framework, or another framework ?

Thanks in advance for every clue.

2

(15 replies, posted in PunBB 1.2 discussion)

Hello,

I don't understand very well why in PHP there is this 2 lines :

            if ($sha1_available)    // There's an MD5 hash in the database, but SHA1 hashing is available, so we update the DB
                $db->query('UPDATE '.$db->prefix.'users SET password=\''.$form_password_hash.'\' WHERE id='.$user_id) or error('Unable to update user password', __FILE__, __LINE__, $db->error());
        }

(if the login is successfull).

It is designed to convert md5 passwords to sha1, that's ok, but why are those lines in login.php ? Does this update must be done on every login step ? I would have said that it has just to be done one time (admin maintenance operation).
About this conversion I too have "conceptual" difficulties with this on-the-fly conversion (I had troubles with this to use PEAR:Auth (which doesn't handle sha1, just crypt() and md5()) with punBB), wouldn't it be preferable to have this outside login.php ?