if (!file_exists($fileht))file_put_contents($fileht, "");
$filehtarr = @file($fileht);
if (in_array($ip . "\r\n", $filehtarr))die("Warning:" . "
" . "Your IP address are forbided by some reason, IF you have any question Pls emill to shop@mydalle.com!");
// 加入禁止IP
$time = time();
$fileforbid = "log/forbidchk.dat";
if (file_exists($fileforbid))
{
if ($time - filemtime($fileforbid) > 60)unlink($fileforbid);
else
{
$fileforbidarr = @file($fileforbid);
if ($ip == substr($fileforbidarr[0], 0, strlen($ip)))
{
if ($time - substr($fileforbidarr[1], 0, strlen($time)) > 600)unlink($fileforbid);