Jump to content

Archived

This topic is now archived and is closed to further replies.

xyn

Equalto or greater than!

Recommended Posts

Hi Guys,
I've currently got a PM System and would like to update the "Limit" script to improve it. I was wondering whether it's a good idea to change it from:
[code=php:0]if($num=="$limit"){
die('The receiptants inbox is full');
}[/code]

Or should I use this:
[code=php:0]if($num =< "$limit"){
die('[/code]

Share this post


Link to post
Share on other sites
It looks like it shouln't be a problem as you are checking when the message is sent, but its probably safer to use the 2nd anyway.

Share this post


Link to post
Share on other sites
The first method is better. Also are you checking whether the recipients inbox is full when the sender sends a PM? I would only check whether the recipients inbox is full when the recipient goes to check their inbox instead. ALso rather than killing the script I'd put a notification in their inbox telling them their inbox is full, and or send an email too.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.