if (設定してれば and !$client->is_mobile) { ケータイ類以外はお断り; } if (セッション初期化時) { if ($local_args['m']) { いきなりフォーム送信かおめでてえな; } if (!$client->is_mobile) { if (設定してれば and $dnsbl->isListed($_SERVER['REMOTE_ADDR'])) { 串規制中だお; } } }
--- pc2m.php 10 Jun 2006 14:33:01 -0000 1.1.1.10 +++ pc2m.php 10 Jun 2006 14:44:51 -0000 @@ -41,7 +41,7 @@ require_once 'ClientDetect.class.php'; $client =& new ClientDetect(); if ((defined('ALLOW_ONLYMOBILE') and ALLOW_ONLYMOBILE === true) - or (defined('RESTRICT_MOZILLA_AGENT') and RESTRICT_MOZILLA_AGENT === true) +// or (defined('RESTRICT_MOZILLA_AGENT') and RESTRICT_MOZILLA_AGENT === true) and !$client->is_mobile) { if (!isset($exclude_iprange) or !$client->_compareIp($client->_dumpAddress($_SERVER['REMOTE_ADDR']), $exclude_iprange)) {