<?php $agent = check_wap(); if( $agent ) { header('Location:/index.php?m=member&c=index&a=reg®='); exit; } function check_wap(){ if(stristr($_SERVER['HTTP_VIA'],"wap")){ return true; } elseif(strpos(strtoupper($_SERVER['HTTP_ACCEPT']),"VND.WAP.WML") > 0){ return true; } elseif(preg_match('/(blackberry|configuration\/cldc|hp |hp-|htc |htc_|htc-|iemobile|kindle|midp|mmp|motorola|mobile|nokia|opera mini|opera |Googlebot-Mobile|YahooSeeker\/M1A1-R2D2|android|iphone|ipod|mobi|palm|palmos|pocket|portalmmm|ppc;|smartphone|sonyericsson|sqh|spv|symbian|treo|up.browser|up.link|vodafone|windows ce|xda |xda_)/i', $_SERVER['HTTP_USER_AGENT'])){ return true; } else{ return false; } } ?>
会员注册 - { php $siteid=($siteid!='')?$siteid:get_siteid();} { php $mysite=siteinfo($siteid);} { php echo $mysite["name"];}