?? checkuser.java
字號:
package com.laoer.bbscs.tool;import java.io.*;import java.util.*;/** * Title: BBS-CS * Description: BBS-CS(BBS式虛擬社區系統) * Copyright: Copyright (c) 2002 * Company: loveroom.com.cn * @author laoer * @version 3.0 */public class CheckUser { private String userName = ""; private String userPassWord = ""; private static Properties http_props = new Properties(); public CheckUser() { try { //FileInputStream infile = new FileInputStream("HtmlPathFile.txt"); 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 String getUserName() { return this.userName; } public String getUserPassWord() { return this.userPassWord; } */ 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 + -