Hello, I did that already but there is nothing about the user authentication in the Wiki.
Anyway, doesn't matter, I found the way, thanks for help anyway.
I wound how to do it. It's quite easy actually.
Integration of the PunBB 1.3 into your website (user authentication system)
Simply add this code at the first line of your code (in the very top)
define('FORUM_ROOT', 'forum/');
require FORUM_ROOT.'include/common.php';
// Replace 'forum/' by the directory name in which you have your punBB installation. Example:
If you have your PunBB forum under: www.yoururl.com/yourforum/ and your script in which
you want to use the user authentication is in www.yoururl.com/ then replace forum/ in define by 'yourforum/'
Once you do that, you can use $forum_user variable in your script, note that it is an array
which contains all the data about the user who's viewing the page.
(Id, Group Id, Username, Email and so on...)
That's all
EDIT: Added that part to the PunBB 1.3 Integration in Wiki.
Errare humanum est