


Introduction
There are many problems with the personal management system now. Everyone is welcome to fix bugs and add functions.
Today I will improve the login part. QQ group: 152448006
Address:
Login
The login part is easy to say, but difficult to say! But it’s not easy to do well.
I considered two factors:
1. Convenience. Users are relatively lazy, so they generally don’t like login interfaces that require too much input.
2. Security: First of all, prevent dos attacks. Many people think of verification codes, and so do I. So when I log in incorrectly for the fourth time, I will verify your verification code in the background.
The verification code still needs to go through your entire PHP application. I personally recommend blocking this attack IP before the PHP application layer. But I don't have such good hardware conditions, so I just made a simple application (in the database, it still needs to be applied through PHP), and wait for the conditions to be placed directly in other applications (such as memcached) in the future.
Login process
1. Open the page:
1) If the user has logged in more than three times, the verification code will be displayed when the page is opened.
2) If it exceeds 6 times, then the external IP will be blocked directly.
2. Login operation
1) Block the IP. We will determine whether the IP has been logged in more than 6 times.
2) When verifying an account, we determine whether to perform a verification code based on the number of verifications.
Thanks to Sakura, after his guidance, I made some changes to the program, and now it becomes the following flow chart. - The program becomes more intuitive.
Interface situation
After verifying three times, the following situation occurred
After verification more than 6 times, something will happen.
The following will happen when you visit next time
Extract part of the code
﹏After Sakura’s guidance, changes were made, and the entire program looks more intuitive and easy to understand. .
Summary
Welcome everyone to come and develop together. In addition to creating good products, developing this project is mainly for technical exchanges and to see everyone’s good technology.
Original link: http://www.cnblogs.com/baochuan/archive/2012/09/08/2676763.html
[Editor’s recommendation]
- PHP open source software "Personal Management System" - Technical Specifications
- Talk about community PHP business development to improve efficiency and shorten development cycle
- A French programmer living in China talks about Python and PHP
- What skills do you need to become a programmer?
- What kind of changes has programming given us
The above has introduced the perfect login module of PHP "Personal Management System", including management system and PHP content. I hope it will be helpful to friends who are interested in PHP tutorials.

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

如何通过PHP编写一个简单的在线借阅管理系统,需要具体代码示例引言:随着数字化时代的到来,图书馆管理方式也发生了巨大的变化。传统的手工记录系统逐渐被在线借阅管理系统所取代。在线借阅管理系统通过自动化处理借阅和归还图书的流程,大大提高了效率。本文将介绍如何使用PHP编写一个简单的在线借阅管理系统,并提供具体的代码示例。一、系统需求分析在开始编写在线借阅管理系统

随着科技进步和社会发展,智慧物业管理系统成为了现代城市发展不可或缺的一环。在这个过程中,基于Go语言的智慧物业管理系统在其高效、可靠、快速等优势方面备受关注。本文将介绍我们团队使用Go语言的智慧物业管理系统的实践情况。1.需求分析我们的团队主要是为一家房地产公司进行开发这个物业管理系统。其主要任务是将物业公司和居民联系起来,方便物业管理公司的管理,同时也让居

在PHP中,可以利用implode()函数的第一个参数来设置没有分隔符,该函数的第一个参数用于规定数组元素之间放置的内容,默认是空字符串,也可将第一个参数设置为空,语法为“implode(数组)”或者“implode("",数组)”。

ebs系统是电子制动控制管理系统,是一种电控系统,完全采用电控气制动,提高制动舒适性和安全性。ebs系统的组成:1、EBS系统制动信号传感器;2、EBS系统单通道控制模块;3、EBS系统双通道控制模块;4、EBS系统电控挂车控制阀。

去除方法:1、使用substr_replace()函数将首位数字替换为空字符串即可,语法“substr_replace($num,"",0,1)”;2、用substr截取从第二位数字开始的全部字符即可,语法“substr($num,1)”。

MySQL数据库管理系统的基本原理解析MySQL是一种常用的关系型数据库管理系统,它通过结构化查询语言(SQL)来进行数据存储和管理。本文将介绍MySQL数据库管理系统的基本原理,包括数据库的创建、数据表的设计、数据的增删改查等操作,并提供具体的代码示例。一、数据库的创建在MySQL中,首先需要创建一个数据库实例来存储数据。通过以下代码可以创建一个名为"my

如何使用C++编写一个简单的学生宿舍管理系统?学生宿舍管理系统是一个可以方便管理学生宿舍信息的软件系统。使用C++编写一个简单的学生宿舍管理系统不仅可以锻炼编程技能,还可以提高对学生宿舍管理流程的理解和把握。本文将介绍如何使用C++编写一个简单的学生宿舍管理系统。首先,我们需要定义学生宿舍的基本信息,包括学生姓名、学号、性别、联系方式等。我们可以使用一个结构


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
