oh i forgot to thank you guys so thank you!

without having to uninstall it first?

lie2815 wrote:

Use

define('FORUM_DISABLE_CSRF_CONFIRM', 1);

See wiki...

<3 you to death.

4

(5 replies, posted in PunBB 1.3 bug reports)

PunBB breaks all the rules B)

2 day bump :*(

I've been adding my own apps to PunBB (assuming that's OK) and usually use:

if (!defined('FORUM_ROOT'))
    define('FORUM_ROOT', './../');
require FORUM_ROOT.'include/common.php';

to get the user data and stuff.

When common.php is included and I try to submit information using a form, I get this annoying little thing from the PunBB forum:

Unable to confirm security token. A likely cause for this is that some time passed between when you first entered the page and when you submitted a form or clicked a link. If that is the case and you would like to continue with your action, please click the Confirm button. Otherwise, you should click the Cancel button to return to where you were.

I need a way to bypass it. I tried looking at PunBB source code for examples on how to properly generate the csrf token but can't get it to work.

Help?

edit: excuse me if it's in the wrong forum.

Ohh, serialize! Never seen that function before tongue

Table: punbb_forums
Field: moderators

But I figured it out now. Thanks.

In the database, this syntax is used to hold which users hold moderator powers over the forums

OK so,

a:1 is the number of moderators.

Then the username in quotes.

And i:5 is the ID.

But what does s:7 represent?

Haha, yeah I guess I kinda figured that out. Thanks for the reply.

Bump :*(

Is what I want to do.

I know some PHP and a bunch of other languages, but I just don't understand how PunBB uses output buffering and those odd str_replace's.

Can some provide me with a template with a spot put my PHP code? In fact, any light on this topic would be very much appreciated.

Dude, I love you. I was too incomplete and/or I couldn't find a resource to help me to set up a desperately needed Cron Job for my site. Then at this moment I stumbled on this topic. You're website is a godsend to me. Thank you.