.$phone = "(021) 423-2323"; if (Preg_match ('/\ (? \d{3}\)? [ -\s.]? \d{3}[-\s.] \d{4}/x ', $phone) {echo "Your phone number is ok.";} else {echo "wrong phone number."}4. Verify the IP addressThis is an instance to validate the IPV4 address.$IP = "198.168.1.78"; if (Preg_match ('/^ ([1-9]?[ 0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).) {3} ([1-9]? [0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]) ($/', $IP)) {echo "Your IP addr
protection!!! Strongly recommend to the system for a thorough killing, because the password is stolen most likely the system in the Trojan. Good luck to you ~
QQ password forgotten, or the number was stolen, you can through the QQ official complaints reset password.
1, open QQ, and then click on the lower right corner of the forgotten password
2, then the browser will open the official QQ back to the Password page, fill in the QQ
Maybe sometimes we look at some sites want to know what version of the Web server others are using the information, but found that the version number is not displayed, even the Web server has changed, you can hide the Nginx, PHP version number information, to improve a certain security; This is a little bit of a measure, the focus is on other protective measures!
Query" Class (numberaddqueryactivity);Enternumberaddqueryactivity Click event Handling code:1 Public void enternumberaddqueryactivity (view view) {2 New Intent (This, numberaddqueryactivity. Class); 3 startactivity (intent); 4 }View Code6, in The "Number Attribution Query" Class (Numberaddqueryactivity) instantiates the related component in the layout file and finds it through the Findviewbyid () method, creating a new click eve
Before the Shiro security how to combine the verification code, this time talk about how to limit the number of user login attempts to prevent multiple attempts, brute force password situation appears. To limit the number of user login attempts, it is necessary to record the user name password verification failure, Shiro user name password Authentication to the C
Use T-SQL to extract a birthday from a social security number, which is an example of converting a 16-digit ID number, for informational purposes only.Create functionGetdatefromid (@id Char( the))returns datetime asbeginDeclare @birthPart Char(6);Set @birthPart = substring(@id,7,6);Declare @year int;Set @year = cast( Left(@birthPart,2) as int);if @year Ten SET @
) {$value = "pig";}
return $value;
}
function Get_xingbie ($cid) {///According to the ID number, automatically return gender
if (!isidcard ($cid)) return ';
$sexint = (int) substr ($cid, 16, 1);
return $sexint% 2 = = = 0? ' Female ': ' Male ';
}
function Isidcard () {//Check whether it is a social security number
Convert to uppercase, such as X
= Strtoupper ();
A flaw in a management system of Ctrip leads to a large number of merchant password leaks (which affects the security of merchant Funds)
It involves Ctrip merchant accounts, information leakage, various background permissions, merchant income amount, bank card numbers, and so on.
The problem occurs in the Ctrip hotel management system.Page address: https://ebooking.ctrip.com/hotel-supplier-ebookinglogin/Ebo
Open room information security-common SQL injection vulnerability in hotel information management system of a social information collection platform (a large number of cases)
Open room Information Security-General SQL injection vulnerability in hotel information management system on a social information collection platformPS: Are you still worried about the lack
Hidden version number of Nginx Security Optimization
Security has always been a problem that cannot be ignored on the Internet. Today, we will introduce the hidden version information of Nginx. If someone else does not know your version, they will not be able to use the Nginx vulnerability to launch attacks. Nginx software is open-source, but the source code also
Preface
A long time ago, I saw the source code of a mobile phone security guard and mobile assistant on the Internet. I haven't looked at some implementations in it. Today, I downloaded it and ran it, it is found that mobile guard is not actually a public feeling of text message on the page. It needs to be analyzed in detail. This article will analyze the mobile assistant Reid's number for local query.
Share the following in the export of CSV file with PHP, the identity card number is forbidden to scientific counting display method, the need for friends reference.Actually, it's very simple.PHP export CSV file, open will find that the social Security number is represented by scientific counting method.Workaround: Add "\ t" to the previousTip: The same is true of
Please look--
1, the premise work, you want to download Trojan "glacier", and "NetXRay", and "Exebind". The glacier is a remote monitoring software, is Bo a kind of thing, as long as the other side runs the server program, his system is always open to you! Now more popular is the gray Pigeon remote control, NetXRay can be used to look at each other's IP; exebind, you can combine two EXE files into an EXE file, run, respectively. How do I use it? I don't teach myself to study. Then, use Exebind
The reference code is as follows:var vareacode= "${regionid}";var vrandnum= "${__random (000,999)}";var vbirthday=${__time (yyyy,py)}+parseint (Math.floor (Math.random () *48+18) + "${__time (MMDD,PMD)}";var videntifycode=vareacode+vbirthday+vrandnum;Generate a valid ID number(function () {var vcount=0;Weighting factorvar vweight=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];var vcode=[1,0, "X", 9,8,7,6,5,4,3,2];Get the first 17 digits of your IDvar vtempcode
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.