PS: I’m using base64_encode/decode because I want to save the script as its original values and I need to avoid using functions like mysql_clean() to sanitize the code. By saving it as a base64 string I avoid potential malicious SQL injection problems. I’m sure there are other ways of doing it but this works OK (I think :p).

This code was tested with ClupBucket 2.0.6. This will allow you to block specific emails domains. It is partivularly useful to block all email providers used to spam (like mailinator.com or temporaryinbox.com).

1st – Open your database and add a record to your config datatable (default is cb_config) with the value “disallowed_email_providers”.
2nd – Open clipbucket Control Panel and add a new phrase with code “usr_email_blacklisted_err” and value “Invalid email”.

#!/usr/bin/php -q
<?/*****************************************************
Check For Open Ports - David Gouveia
*****************************************************/$address='127.0.0.1';$port=25;$timeout=5;//Max time to wait before give up.$checkport=fsockopen($address,$port,$errnum,$errstr,$timeout);if(!$checkport){print"CRITICAL: Host $address at port $port not responding!\n";fclose($checkport);exit(2);}print"OK: Host $address at port $port is responding!\n";fclose($checkport);exit(0);?>