#
# ob_start();
# session_start();
# class CC{
# Private $REFURL="http://www.BkJia.com"; //Convert page after successful login
# private $LoginFLAG=false; //Successful login sign
# private $loginFILE="loginmsg.txt"; //Information file
# function setFlag($flag){
# $this->loginFLAG=$flag;
# }
# function check(){
# Global $_POST;
# if(file_exists($this->loginFILE)&& (time()-filemtime($this->loginFILE))<60){//User login exists and is valid
# $info=file($this->loginFILE);
# $username=trim($info[0]); //The online login username
# $password=trim($info[1]); //Already online password (you don’t need to save it)
# $ip =trim($info[2]); //IP already online
# $sid =trim($info[3]); // PORT online
# if(strcmp($_SESSION[LoginUser],$username)==0){
# if(strcmp($_SESSION[LoginPw],$password)==0){
# if(strcmp($_SERVER[REMOTE_ADDR],$ip)==0){
# if(strcmp(session_id(),$sid)==0){
# $this->setFlag(true);
# echo "
";
# }
# }else{
# if(isset($_POST[LoginUser])){
# $_SESSION[LoginUser]=$_POST[LoginUser];
# $_SESSION[LoginPw]=$_POST[LoginPw];
# $fp=fopen($this->loginFILE,"w");
# $msg=$_POST[LoginUser]." ".$_POST[LoginPw]." ".$_SERVER[REMOTE_ADDR]." ".session_id();;
# fputs($fp,$msg);
# fclose($fp);
# }else{
# $outtime=time()-filemtime($this->loginFILE)-60;
# echo "The login does not exist or you have timed out (".$outtime." seconds)...";
# }
# }
# }
# function Wfrom(){
# Global $_POST;
# if(!file_exists($this->loginFILE) ||(time()-filemtime($this->loginFILE))>60){ //Login failed
# echo <<#