IIS detection code Access Web site is PC-side or mobile-side users
The code is as follows
Copy Code
ASP check whether the Web site is PC-side or mobile-end user
The code is as follows
Copy Code
Dim u,b,vSet U=request.servervariables ("Http_user_agent")Set B=new REGEXPSet V=new REGEXPB.pattern= "(Android|bbd+|meego). +mobile|avantgo|bada/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile| IP (hone|od) |iris|kindle|lge |ma
This article will introduce you to check whether the website is accessed by a pc or a mobile user (iis/asp/c #). I hope this method will be helpful to you.
Check whether the iis Code accesses the website on pc or mobile phone
The Code is as follows:
Copy code
Asp checks whether the website is a pc or mobile user
The Code is as follows:
Copy code
Dim u, B, vSet u = Request. ServerVariables ("HTTP_USER_AGENT ")Set B = new RegExpSet v = new Re
intdx[]={0,0,1,-1},dy[]={1,-1,0,0}; A intvis[max_n+1][max_n+1]; - - structNode the { - intX,y,time; - Node () {} -Node (intXxintYyintt): X (xx), Y (yy), time (t) {} + }; - + intInsideintXinty) A { at if(x0|| y0|| max_nreturn 0; - Else return 1; - } - - intBFS () - { inmemset (Vis,0,sizeof(Vis)); - if(g[0][0]==inf)return 0; to if(g[0][0]==0)return-1;//when g[0][0]==1, does not mean no hope to escape ... + //because the G array is preprocessed, the effect of each meteo
table. In this example, we have an off-line (logoff) system-level trigger mechanism to calculate the session time that has already started and put it into an Oracle statspack user_log extension table.UpdatePerfstat.stats$user_logSetElapsed_minutes =Round (To_number (logoff_time-logon_time) *1440)whereuser = user_idandElapsed_minutes is NULL;Find out which days are included in any monthCREATE OR REPLACE FUNCTION get_workingdays (NY in VARCHAR2) RETURN
calculating normal vectors is done by the programmer), but it provides functions that grant Normal directions to the current vertex.
(1) Calculation Method of plane normal direction.
In a plane, there are two intersecting line segments. Assume that one of them is vector W, the other is vector V, and the normal direction of the plane is N, then the normal direction of the plane is equal to the cross product of two vectors (following the right hand rule), that is, n = wxv. For example, if the thr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.