I'm using Win2k3 with IIS and have no issues with PunBB.
I'm also integrating a bittorrent tracker onto Punbb (the tracker uses Punbb's style engine and user table and defined permissions with some added tables for bittorrent stuff such as uploaded and downloaded values. It was a pain writing the converter, let me tell you, one massive SQL query, takes 90 seconds to insert over 40k posts from the old forum) and also have no problem adding the code below:

define('PUN_ROOT', '../');
define('PUN_QUIET_VISIT', 1);
define('PUN_ALLOW_INDEX', 1);
require_once PUN_ROOT.'include/common.php';

PS: I wish the pagination bug was fixed since on a topic I have with over 12k posts (don't ask smile) I get 3 extra empty pages at the end sad

EDIT: I've seen a lot of people complaining that you can only get load values in Apache/*nix so I made a CPU "in use" meter (returns the same value you get in Task Manager) for PHP in Windows if anyone wants it. Warning: It most likely will not work on shared web space.

As stated above, the problem lies with the way Private Messages get stored on the DB.
If you send a message to someone with the option "save message" selected, the PM will be saved twice, once for the destination user with the owner = DESTINATION_USER_ID and another time with the owner = YOUR_USER_ID, so that you may have a copy on your sent box.

Naturally since you are using

INNER JOIN '.$db->prefix.'users AS u ON (u.id = m.owner)

as part of the search query you will get 2 results instead of one.

Any ideas on how to do a query (it could be resource heavy, that wouldn't be an issue since theoretically only you will run it) that would check if the message is a duplicate and not show it?

put

Global $db;

at the top of your function where that error occurs

29

(16 replies, posted in Feature requests)

On parser.php instead of:

function parse_message($text, $hide_smilies, $no_images)

you should use:

function parse_message($text, $hide_smilies, $no_images = '0')

Otherwise you'll get errors from all the other functions that call parse_message() with only 2 parameters.