476

(3 replies, posted in Programming)

Validate that start date and end date are valid dates. | checkdate
Validate that start date is greater than or equal to today. | strtotime or mktime, compare the unix timestamp generated
Validate that end date is greater than or equal to start date. | strtotime or mktime, compare the unix timestamp generated
Then what is the syntax to convert these dates (mm/dd/yyyy) to unix timestamp? | strtotime or mktime

Moved to Modifications

478

(5 replies, posted in PunBB 1.2 troubleshooting)

I would check your files against a fresh version of 1.2.17's post.php and see if you notice where the update was done incorrectly.

confirm_referrer can be faked if the client is knowingly doing this.
From my limited knowledge of this area, you need to
A. Make the games difficult to decompile
B. Have a method that does not submit the scores in plaintext, but instead uses some kind of encryption scheme.
That means the only way to cheat is to reverse engineer the encryption. Of course, since this is open source, the scheme has to work even with the algorithm being known.

480

(2 replies, posted in Programming)

Use !empty($array)

Use $db->prefix, not $db_prefix.
For future reference, you can usually debug your errors better if you enable debug mode when you get an error.

Correct. We're discussing the best way to deal with this (which includes figuring out if unbuffered queries actually give us a performance gain).

483

(16 replies, posted in PunBB 1.2 troubleshooting)

Moved to Troubleshooting, since I doubt it's a PunBB bug.
Have you upgraded to 1.2.17?

I don't think anyone has done an official set of benchmarks, but I can safely say that PunBB is fairly fast. tongue

As for security vulnerabilities, I have never heard of the site you pointed out. Looking at it, it seems like nothing more than a fairly poor attempt to syndicate content from various other, more legitimate, sources in order to garner hits. SecurityFocus and Secunia are better sources for this information.

If rss.php is just supposed to be a wrapper, you don't need cURL.
Just set the right $_GET variables from within PHP, include extern.php, and you're set.

486

(4 replies, posted in PunBB 1.3 troubleshooting)

Not a bug, as yemgi pointed out that's how HTML works.
Closed.

487

(2 replies, posted in PunBB 1.3 troubleshooting)

Shorter, yes, but that code (at least for me) is more difficult to read and understand.
Also, I don't think you've seen this changeset:
http://dev.punbb.org/changeset/1505

It will work without hooks but the entire point of hooks is to make it possible for others to extend/change your code without physically modifying it.

489

(3 replies, posted in PunBB 1.3 troubleshooting)

Yeah, the rewrite rule currently accepts only sections with a-z.

Uh, "dropping RSS links"? I'm not exactly sure what you mean.

Probably because of the fulltext index.

492

(23 replies, posted in PunBB 1.2 show off)

Nick, I deleted your last post. Keep it on topic please.

Talk to your host, that's their issue, not a PunBB issue.

494

(7 replies, posted in PunBB 1.3 troubleshooting)

Done

495

(23 replies, posted in PunBB 1.2 show off)

http://punbb.org/forums/viewtopic.php?id=2165
The fact that he removed the "Powered by PunBB" line is lame and it would be nice to have it back, but we all know it's PunBB and we don't really have an official policy like some software does of requiring that line for support, etc. If he starts claiming it's not PunBB though, I'll remove the link.

496

(5 replies, posted in PunBB 1.2 troubleshooting)

I wouldn't bother, it's far more likely as a modification/extension.

497

(23 replies, posted in PunBB 1.2 show off)

Nick, don't back seat moderate please. We don't remove forums from Show Off because they changed the visible copyright.
That being said, I changed the original post to refer to the forum only, not to the main site.

498

(5 replies, posted in PunBB 1.2 troubleshooting)

lol, my point was that it's not solely a matter of changing the code, which is how I read your question. You would need to add a subject column to the posts table, change viewtopic.php to output its contents in the right place, change post.php to populate it properly, and change both viewtopic.php, post.php, and edit.php to accept values for it.

It's nice, but there are a couple problems:
A. It uses identical hook names to index.php
B. It doesn't use query builder
C. It has two hooks and the variable scheme doesn't use the $pun_page stuff: it isn't extensible.

500

(5 replies, posted in PunBB 1.2 troubleshooting)

Replies don't actually have their own subjects