PunBB Simple API

December 29th, 2007

Integrating PunBB with other scripts is something that has always been a major pain for me. So, when I found this I thought I would share it.

PunSAPI allows you to do everything related to PunBB that you could do just by including common.php, like checking the cookie to determine if the user is logged in, except it’s Object Oriented and it doesn’t interfere with other scripts. For instance, lately I’ve been using CodeIgniter, which, as most full-featured PHP apps do, has a redirect function. If you simply included common.php into you app, you get a PHP error about the function already being declared. PunSAPI avoids problems like this.

http://punbb.org/forums/viewtopic.php?id=15854

Leave a Reply