6,326

(33 replies, posted in PunBB 1.2 troubleshooting)

Ok, I honestly have no idea why it only occurs in that script. However, you can try commenting out the version query as well (line 92). If you still get an error, you can comment out the whole block of code below that. The code that strarts with "if ($db_type == 'mysql')".

6,327

(4 replies, posted in Feature requests)

Huh?

6,328

(33 replies, posted in PunBB 1.2 troubleshooting)

Is it only the script admin_index.php that is giving you problems? I.e. does admin_options.php and admin_permissions.php work?

6,329

(10 replies, posted in PunBB 1.2 troubleshooting)

So, what you're saying is that if the username contains ][, it isn't possible to post replies? A "Bad request." even?

Hmm, you are correct. It doesn't appear to be working at all. I'll have a look at it first thing tomorrow. I'm heading out for the evening :)

6,331

(4 replies, posted in Programming)

There's no definitive answer to that question. It all depends on the system hosting the scripts. The only way to tell is to test (for example with apachebench).

6,332

(33 replies, posted in PunBB 1.2 troubleshooting)

You shouldn't receive that error message if you did what MarcB suggested. Did you really put // in front of the row like he suggested?

6,333

(16 replies, posted in Feature requests)

0zone wrote:
Rickard wrote:
0zone wrote:

Oh well :(

If PunBB had a template system, attachments, private messaging, polls etc. it wouldn't be any different or any better than all the other BB's out there. It's scaled down for a purpose you know.

But I'm only asking that a basic template system be made so that I don't have to go through the source files and replace all the code that way.

Yes, but such a template system would be a huge addition to the current codebase. Also, PunBB's lack of a template system is one of the things that make it fast.

6,334

(33 replies, posted in PunBB 1.2 troubleshooting)

Probably not. What happened when you tried MarcBs suggestion above?

Edit: Also, try changing the value of p_connect in your config.php from true to false (or vice versa).

6,335

(16 replies, posted in Feature requests)

0zone wrote:

Oh well :(

If PunBB had a template system, attachments, private messaging, polls etc. it wouldn't be any different or any better than all the other BB's out there. It's scaled down for a purpose you know.

6,336

(33 replies, posted in PunBB 1.2 troubleshooting)

Sorry. Not that I know of :(

6,337

(33 replies, posted in PunBB 1.2 troubleshooting)

Well, my guess is that it's a bug in that version of MySQL. According to the changelog, the version after that, 3.23.56, contained the following fix:

"Fixed bug with connect timeout. This bug was manifested on OS's with poll() system call, which resulted in timeout the value specified as it was executed in both select() and poll()."

I'm guessing this is related to that bug. Perhaps you should ask your host to upgrade?

6,338

(16 replies, posted in Feature requests)

He is refering to the folder include/template/. In there you will find a few .tpl-files that will allow you to incorporate PunBB into your website design. However, a full-blown template system with individual templates for each part of the forum just won't happen. I've made a design choice not to include such a system and I'm sticking to it.

6,339

(19 replies, posted in PunBB 1.2 bug reports)

adsh wrote:

You can not login to forum without cookie. There is - ban, based on user name, not IP.

True, however it is very easy to delete the cookie and then register again under a new username.

adsh wrote:

And we also may ban user, based on "proxy ip + local user ip". In alternative...

I'm not sure what you mean. If you don't want to ban an IP address, you don't have to. You can just ban the username.

6,340

(19 replies, posted in PunBB 1.2 bug reports)

PunBB does ban based on cookie data. However, cookies can very easily be deleted.

6,341

(5 replies, posted in PunBB 1.2 bug reports)

Well, changing the avatar isn't a security risk. Changing the password on the other hand is.

6,342

(5 replies, posted in PunBB 1.2 bug reports)

Well, moderators can edit profiles and admin profiles aren't excluded. Moderators can't ban or change passwords for admins though.

6,343

(19 replies, posted in PunBB 1.2 bug reports)

adsh: Well, the alternative is to only use REMOTE_ADDR, but then you will end up with many users having the same IP address instead. We've had the problem at a site where i moderate (sweclockers.com). We banned the IP address of a user that was causing a lot of problems and then it turned out it was the proxy of a large swedish ISP, so lots and lots of users ended up getting banned. This was of course unacceptable and we were forced to unban that IP. We've had the same problem many, many times.

6,344

(4 replies, posted in PunBB 1.2 troubleshooting)

You could also add it to main.tpl in include/template.

6,345

(3 replies, posted in PunBB 1.2 show off)

Have a look in include/template/

6,346

(19 replies, posted in PunBB 1.2 bug reports)

It's not a bug, it's a feature. PunBB attempts to detect the IP address behind the proxy, because banning the proxy usually isn't what you want. If someone is causing problems and is banned, he/she shouldn't just be able to switch to a different proxy and continue causing problems. In reality, it's not that easy, but that's the general idea.

6,347

(15 replies, posted in PunBB 1.2 troubleshooting)

My pleasure. I'm just glad it didn't turn out to be a bug :D

6,348

(15 replies, posted in PunBB 1.2 troubleshooting)

RedHook wrote:

I did, and you are right, I still cannot upload it. It is giving me the same message except now this is on the top of the page:

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 680 is not allowed to access / owned by uid 0 in /home/virtual/site177/fst/var/www/html/profile.php on line 372

Hmm, what have you set your "Upload directory" to in admin/options? It should most likely be img/avatars.

6,349

(15 replies, posted in PunBB 1.2 troubleshooting)

Ok, open up profile.php and look up the following piece of code:

if ($uploaded_file['type'] == 'image/gif')
{
    $temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.gif');
    @chmod($pun_config['o_avatars_dir'].'/'.$id.'.gif', 0644);
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
}
else if ($uploaded_file['type'] == 'image/jpeg' || $uploaded_file['type'] == 'image/pjpeg')
{
    $temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.jpg');
    @chmod($pun_config['o_avatars_dir'].'/'.$id.'.jpg', 0644);
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
}
else if ($uploaded_file['type'] == 'image/png' || $uploaded_file['type'] == 'image/x-png')
{
    $temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.png');
    @chmod($pun_config['o_avatars_dir'].'/'.$id.'.png', 0644);
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
}

Replace it with this:

if ($uploaded_file['type'] == 'image/gif')
{
    $temp = move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.gif');
    @chmod($pun_config['o_avatars_dir'].'/'.$id.'.gif', 0644);
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
}
else if ($uploaded_file['type'] == 'image/jpeg' || $uploaded_file['type'] == 'image/pjpeg')
{
    $temp = move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.jpg');
    @chmod($pun_config['o_avatars_dir'].'/'.$id.'.jpg', 0644);
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
}
else if ($uploaded_file['type'] == 'image/png' || $uploaded_file['type'] == 'image/x-png')
{
    $temp = move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.png');
    @chmod($pun_config['o_avatars_dir'].'/'.$id.'.png', 0644);
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
    @unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
}

Then try again. It won't work now either, but you should get a more informative error message.

6,350

(15 replies, posted in PunBB 1.2 troubleshooting)

What is the exact error message you get?