That's okay, I'm floating in beer here as it is 😉 The annual Crab Feast is this weekend!! I'll make sure I tip a glass for you 🙂 🙂
Glad to hear you got it sorted. Here's a bit of test-code I got working for me. Works from what i can tell 😉 Might even be able to replace that "strict" block.
$domains = str_replace(', ', ',', 'gawab.com, cashette.com, inmail24.net, bestboyfilms.org, etradeoil.com, mymail-in.net, ukr.net, fromru.com, mail.ru, bk.ru, .ru, .ua, .by, .biz, .info, .lv, .tv, .ws');
$checkdomains = explode(',', $domains);
$regex = '/(?:' . implode('|', $checkdomains) . ')+$/i';
$domains = array('allowed'=>array('there.aw', 'microsoft.com', 'roundcube.net', 'actionsoptions.org', 'tvtorrents.com'),
'disallowed'=>array('here.ru', 'etradeoil.com', 'mymail-in.net', 'cashette.com', 'last.tv')
);
foreach($domains as $type=>$domain)
{
echo '<h3>' . ucwords($type) . ' Domains</h3>';
foreach($domain as $d)
{
echo $d . ' ... ';
if(preg_match($regex, $d) == true)
{
echo '<span style="color: #900;">BLOCKED</span>';
}
else
{
echo '<span style="color: #090;">ALLOWED</span>';
}
echo '<br />';
}
}