📄 checkadminuser.java
字号:
package com.laoer.bbscs.sysinfo;
import java.io.*;
import java.util.*;
/**
* <p>Title: 天乙社区V5.0</p>
* <p>Description: BBS-CS天乙社区V5.0</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: laoer.com</p>
* @author 龚天乙
* @version 5.0
*/
public class CheckAdminUser {
private String userName = "";
private String userPassWord = "";
private Properties http_props = new Properties();
public CheckAdminUser() {
try {
InputStream infile = getClass().getResourceAsStream("admininfo.txt");
http_props.load(infile);
this.userName = http_props.getProperty("userName");
this.userPassWord = http_props.getProperty("userPassWord");
infile.close();
}
catch (Exception e) {
}
}
public boolean checkUserOK(String cUserName, String cUserPassWord) {
if (cUserName.equals(this.userName) &&
cUserPassWord.equals(this.userPassWord)) {
return true;
}
else {
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -