$_ip['min'] && $ip < $_ip['max']) return true; } } if(isset($antitheft['black'])){ if(in_array($ip, (array)$antitheft['black']['single'], true)) { return false; } foreach($antitheft['black']['range'] as $_ip) { if($ip > $_ip['min'] && $ip < $_ip['max']) return false; } } if(!($log = C::t('common_visit')->fetch($ip))) { C::t('common_visit')->insert(array( 'ip' => $ip, 'view' => 1, )); return true; } elseif($log['view'] >= $_G['setting']['antitheft']['max']) { return false; } else { C::t('common_visit')->inc($ip); return true; } } protected static function make_content($id, $idtype, $dsign) { $url = ''; $urls = parse_url($_SERVER['REQUEST_URI']); $addstr = $urls['query'] ? $urls['query'].'&' : ''; $url = $urls['path'].'?'.$addstr.'_dsign='.$dsign.($urls['fragment'] ? '#'.$urls['fragment'] : ''); return self::make_js($url); } protected static function make_js($url){ $js = ''; return $js; } } ?>