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
476 2008-03-29 12:51
Re: Date Validations in PHP (3 replies, posted in Programming)
477 2008-03-29 12:45
Re: Adsense Mod (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Moved to Modifications
478 2008-03-28 16:24
Re: Reply redirect issue (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.
479 2008-03-28 16:23
Re: Arcade scores "hacked"? (16 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
481 2008-03-27 01:32
Re: Trying to change user's group_id in functions.php -> Error (2 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
482 2008-03-27 01:27
Re: Bug: viewtopic.php generating nested `mysql_unbuffered_query` calls (3 replies, posted in PunBB 1.3 troubleshooting)
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 2008-03-26 18:09
Re: can't logout (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?
484 2008-03-26 18:03
Re: Forum performance / server load / security comparison (9 replies, posted in PunBB 1.2 discussion)
I don't think anyone has done an official set of benchmarks, but I can safely say that PunBB is fairly fast.
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.
485 2008-03-26 17:57
Re: Utilizing extern.php on the same server... (8 replies, posted in PunBB 1.2 troubleshooting)
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 2008-03-26 17:56
Re: another SEF urls bug (4 replies, posted in PunBB 1.3 troubleshooting)
Not a bug, as yemgi pointed out that's how HTML works.
Closed.
487 2008-03-26 17:55
Re: Shorter Timezone script? (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
488 2008-03-26 17:53
Re: vanilla style front page (active topics) (7 replies, posted in PunBB 1.3 troubleshooting)
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 2008-03-26 17:52
Re: rewrite rules bug (3 replies, posted in PunBB 1.3 troubleshooting)
Yeah, the rewrite rule currently accepts only sections with a-z.
490 2008-03-25 20:37
Re: Utilizing extern.php on the same server... (8 replies, posted in PunBB 1.2 troubleshooting)
Uh, "dropping RSS links"? I'm not exactly sure what you mean.
491 2008-03-25 20:35
Re: anybody using 1.3 in a production environment already? (35 replies, posted in PunBB 1.3 troubleshooting)
Probably because of the fulltext index.
492 2008-03-25 08:35
Re: Forums on my site (23 replies, posted in PunBB 1.2 show off)
Nick, I deleted your last post. Keep it on topic please.
493 2008-03-25 08:34
Re: Error: can't create new topic or post reply (3 replies, posted in PunBB 1.2 troubleshooting)
Talk to your host, that's their issue, not a PunBB issue.
495 2008-03-25 02:12
Re: Forums on my site (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 2008-03-25 02:07
Re: Is there a way (5 replies, posted in PunBB 1.2 troubleshooting)
I wouldn't bother, it's far more likely as a modification/extension.
497 2008-03-25 01:47
Re: Forums on my site (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 2008-03-25 01:45
Re: Is there a way (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.
499 2008-03-25 01:17
Re: vanilla style front page (active topics) (7 replies, posted in PunBB 1.3 troubleshooting)
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 2008-03-25 01:02
Re: Is there a way (5 replies, posted in PunBB 1.2 troubleshooting)
Replies don't actually have their own subjects