亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? inetserverdlg.cpp.bak

?? email client and support pop3、smtp、imap protocol.
?? BAK
?? 第 1 頁 / 共 5 頁
字號:
				return;
			}
			else
			{
				sprintf(sendstr,"\r\nAccess denied\r\n> ");
				pSocket->Send (sendstr,strlen(sendstr),0);
				return;
			}
			
			
		}
		
		
		
		
		
		if ((strcmpi(tempstr2,"clear") == 0) || (strcmpi(tempstr2,"cls") == 0))
		{
			//beta (works only with ANSI terminals)!
			
			
			
			sprintf(sendstrh,"\x01b[0;37;40m\x01b[2J");
			pSocket->Send (sendstrh,strlen(sendstrh),0);
			sprintf(sendstrh,"\r\n> ");
			pSocket->Send (sendstrh,strlen(sendstrh),0);
			
			return;
		}
		
		
		
		if (strcmpi(tempstr2,"useradd") == 0)  
		{
			if (MatchFlag (SocketList[i].Username,'O'))
			{
				sprintf(sendstr,"\r\nCreating a new user\r\nPOP3 login name:");
				pSocket->Send (sendstr,strlen(sendstr),0);
				SocketList[i].status2 = 1;
				SocketList[i].status = 3;
				return;
			}
			else
			{
				sprintf(sendstr,"\r\nAccess denied\r\n> ");
				pSocket->Send (sendstr,strlen(sendstr),0);
				return;
			}
		}
		
		
		if (strcmpi(tempstr2,"userdel") == 0)  
		{
			if (MatchFlag (SocketList[i].Username,'O'))
			{
				sprintf(sendstr,"\r\nDeleting a user\r\nUsername to delete:");
				pSocket->Send (sendstr,strlen(sendstr),0);
				SocketList[i].status2 = 1;
				SocketList[i].status = 5;
				return;
			}
			else
			{
				sprintf(sendstr,"\r\nAccess denied\r\n> ");
				pSocket->Send (sendstr,strlen(sendstr),0);
				return;
			}
		}
		
		if (strcmpi(tempstr2,"motd") == 0)  
		{
			
			
			FILE *fpmotd;
			
			fpmotd = fopen("telnet\\motd.txt","rt");
			sprintf(sendstr,"\r\n");
			pSocket->Send (sendstr,strlen(sendstr),0);
			if (fpmotd == NULL)
			{
				AddLog("Couldn't read telnet motd from telnet\\motd.txt");
				
				
			}
			else
			{
				while (fgets(sendstr,255,fpmotd))
				{
					pSocket->Send (sendstr,strlen(sendstr),0);
					pSocket->Send ("\r",1,0);
				}
				
				fclose(fpmotd);
				
			}
			
			sprintf(sendstr,"\r\n> ");
			pSocket->Send (sendstr,strlen(sendstr),0);
			return;
		}
		
		sprintf(sendstr,"\r\nUnknown command, try \"help\"\r\n> ");
		pSocket->Send (sendstr,strlen(sendstr),0);
		return;
	}
	
	
	if 	(SocketList[i].status == 3)  
	{
		if (MatchFlag (SocketList[i].Username,'O'))
		{
			char tempstr2[255];
			sprintf(tempstr2,"%s",tempstr);
			SocketList[i].Temp = "";
			
			DeleteCRLF(tempstr2);
			
			if (SocketList[i].status2 == 1)
			{
				SocketList[i].info1 = tempstr2;
				sprintf(sendstr,"\r\nPassword:");
				pSocket->Send (sendstr,strlen(sendstr),0);
				SocketList[i].status2 = 2;
				SocketList[i].dontwrite = TRUE;
				return;
			}
			
			if (SocketList[i].status2 == 2)
			{
				SocketList[i].info2 = tempstr2;
				sprintf(sendstr,"\r\nConfirm password:");
				pSocket->Send (sendstr,strlen(sendstr),0);
				SocketList[i].dontwrite = TRUE;
				SocketList[i].status2 = 3;
				return;
			}
			if (SocketList[i].status2 == 3)
			{
				SocketList[i].dontwrite = FALSE;
				SocketList[i].info3 = tempstr2;
				if (strcmp(SocketList[i].info2,SocketList[i].info3) != 0)
				{
					sprintf(sendstr,"\r\nThe entered passwords are not the same.\r\nAborted.\r\n> ");
					
					pSocket->Send (sendstr,strlen(sendstr),0);
					SocketList[i].status2 = 0;
					SocketList[i].status = 2;
					return;
				}
				else
				{
					sprintf(sendstr,"\r\nFlags:");
					pSocket->Send (sendstr,strlen(sendstr),0);
					SocketList[i].status2 = 4;
					return;
				}
				return;
				
			}
			if (SocketList[i].status2 == 4)
			{
				SocketList[i].info4 = tempstr2;
				sprintf(sendstr,"\r\nType \"add\" to accept the user, or press enter to abort\r\n");
				pSocket->Send (sendstr,strlen(sendstr),0);
				SocketList[i].status2 = 5;
				return;
			}
			if (SocketList[i].status2 == 5) 
			{
				if (strcmp(tempstr2,"add") == 0)
				{
					sprintf(sendstr,"\r\nUser added");
					
					
					MailUserInfo MyUserInfo;
					MyUserInfo.Username= SocketList[i].info1;
					char temps[255];
					sprintf(temps,"%s",SocketList[i].info2);
					MyUserInfo.Password= CreatePassword(temps);
					MyUserInfo.Flags= SocketList[i].info4;
					MailUserList.Add(MyUserInfo);
					SavePOP3Users();
					
					
					
					pSocket->Send (sendstr,strlen(sendstr),0);
				}
				else
				{
					sprintf(sendstr,"\r\nAdding of user aborted");
					pSocket->Send (sendstr,strlen(sendstr),0);
				}
				
				SocketList[i].status2 = 0;
				SocketList[i].status = 2;
				sprintf(sendstr,"\r\n> ");
				pSocket->Send (sendstr,strlen(sendstr),0);
				
				return;
			}
		}
		else
		{
			sprintf(sendstr,"\r\nAccess denied\r\n> ");
			pSocket->Send (sendstr,strlen(sendstr),0);
			return;
		}
		
		
	}
	
	
	if 	(SocketList[i].status == 4)
	{
		
		SocketList[i].status = 2;
		SocketList[i].showlog = FALSE;
		sprintf(sendstr,"\r\nLogging output stopped\r\n> ");
		SocketList[i].Temp = "";
		
		pSocket->Send (sendstr,strlen(sendstr),0);
		return;
	}
	
	if 	(SocketList[i].status == 5)
	{
		
		char tempstr2[255];
		sprintf(tempstr2,"%s",tempstr);
		SocketList[i].Temp = "";
		DeleteCRLF(tempstr2);
		
		if (MatchFlag (SocketList[i].Username,'O'))
		{
			if (stricmp(SocketList[i].Username,tempstr2) == 0)
			{
				sprintf(sendstr,"\r\nYou can't delete youself\r\n> ",tempstr2);
				pSocket->Send (sendstr,strlen(sendstr),0);
				SocketList[i].status2 = 0;
				SocketList[i].status = 2;
				return;
			}
			
			sprintf(sendstr,"\r\nDeleting user %s...\r\n> ",tempstr2);
			pSocket->Send (sendstr,strlen(sendstr),0);
			SocketList[i].status2 = 0;
			SocketList[i].status = 2;
			
			
			for (int x= 0;x<=MailUserList.GetSize()-1;x++)
			{
				if (stricmp(MailUserList[x].Username,tempstr2) == 0)
				{
					MailUserList.RemoveAt(x);
					break;
					
				}
				
				
			}
			
			
			SavePOP3Users();
			
			
			
			
			return;
		}
		else
		{
			sprintf(sendstr,"\r\nAccess denied\r\n> ");
			pSocket->Send (sendstr,strlen(sendstr),0);
			return;
		}
		
		
	}

	if 	(SocketList[i].status == 6)
	{
		char tempstr2[255];
		sprintf(tempstr2,"%s",tempstr);
		
		SocketList[i].Temp = "";
		DeleteCRLF(tempstr2);
		SocketList[i].status = 2;

		char tempstr3[255];
		sprintf(tempstr3,"%s",GetReg("Software\\InetServ",tempstr2));
		sprintf(sendstr,"\r\nCurrent value:%s\r\n> ",tempstr3);
		pSocket->Send (sendstr,strlen(sendstr),0);
		return;

	}

	if 	(SocketList[i].status == 7)
	{
		char tempstr2[255];
		char tempstr3[255];
		sprintf(tempstr2,"%s",tempstr);
		
		SocketList[i].Temp = "";
		DeleteCRLF(tempstr2);
		SocketList[i].status = 8;
		SocketList[i].info1 = tempstr2;

		sprintf(tempstr3,"%s",GetReg("Software\\InetServ",tempstr2));
		sprintf(sendstr,"\r\nCurrent value:%s\r\nNew Value: ",tempstr3);
		pSocket->Send (sendstr,strlen(sendstr),0);

		return;

	}

	if 	(SocketList[i].status == 8)
	{
		char tempstr2[255];
		char tempstr3[255];
		sprintf(tempstr2,"%s",tempstr);
		
		SocketList[i].Temp = "";
		DeleteCRLF(tempstr2);
		SocketList[i].status = 2;
		sprintf(tempstr3,"%s",SocketList[i].info1);

		SetReg("Software\\InetServ",tempstr3,tempstr2);
		sprintf(sendstr,"\r\nNew value set\r\n> ");
		pSocket->Send (sendstr,strlen(sendstr),0);


		return;

	}
	
}


void CInetServerDlg::ReadPop3(CClientSocket* pSocket,int i)
{
	char buf[1024];
	CString tempstr = "";
	int nix = pSocket->Receive(&buf, 1024,0);
	buf[nix] = '\0';
	CString tempcstr;
	tempstr = buf;
	
	
	
	
	char sendstr[255];
	
	tempcstr = tempstr;
	SocketList[i].Temp = SocketList[i].Temp + tempstr;
	if (SocketList[i].Temp.GetLength()>240) { SocketList[i].Temp = "";return;}; //buffer to large problem	
	
	
	tempstr =  SocketList[i].Temp;
	if (tempstr.GetAt(tempstr.GetLength()-1) != '\n') return;
	
	
	
	char atstr[255];
	sprintf(atstr,"%i",i);
	AddToLogAll("Received [" + (CString) atstr + "]" + (CString) tempstr);
	
	char tempstrU[255];
	
	sprintf(tempstrU,"%s",tempstr);
	strupr(tempstrU);
	
	if ((tempstrU[0] == 'A') && (tempstrU[1] == 'U') 
		&& (tempstrU[2] == 'T') && (tempstrU[3] == 'H') 
		&& (tempstrU[4] == ' ') )
	{
		sprintf(sendstr,"-ERR %s\r\n",pop3_msg02);
		pSocket->Send (sendstr,strlen(sendstr),0);
		SocketList[i].Temp = "";
		return;
	}
	
	
	if ((tempstrU[0] == 'U') && (tempstrU[1] == 'S') 
		&& (tempstrU[2] == 'E') && (tempstrU[3] == 'R') 
		&& (tempstrU[4] == ' ') )
	{
		
		
		sprintf(sendstr,"+OK %s\r\n",pop3_msg03);
		pSocket->Send (sendstr,strlen(sendstr),0);
		char tempstr2[255];
		
		sprintf(tempstr2,"%s",tempstrU);
		
		for (UINT z = 5; z<= strlen(tempstr2);z++)
		{
			tempstr2[z-5] = tempstr2[z];
		}
		tempstr2[z-5] = '\0';
		
		CString tempcstr;
		if (tempstr2[strlen(tempstr2)-2] == '\n') tempstr2[strlen(tempstr2)-2] = '\0';
		if (tempstr2[strlen(tempstr2)-2] == '\r') tempstr2[strlen(tempstr2)-2] = '\0';
		tempcstr = tempstr2;
		
		SocketList[i].Username= tempcstr;
		SocketList[i].status = 1; 
		SocketList[i].Temp = "";
		return;
	}
	
	
	if ((tempstrU[0] == 'X') && (tempstrU[1] == 'S') 
		&& (tempstrU[2] == 'E') && (tempstrU[3] == 'N') 
		&& (tempstrU[4] == 'D') && (tempstrU[5] == 'E')
		&& (tempstrU[6] == 'R') && (tempstrU[7] == ' '))
	{
		pSocket->Send ("+OK\r\n",5,0);
		SocketList[i].Temp = "";
		return;
	}
	
	
	
	
	
	if (((tempstrU[0] == 'P') && (tempstrU[1] == 'A') 
		&& (tempstrU[2] == 'S') && (tempstrU[3] == 'S') 
		&& (tempstrU[4] == ' ') ) && (SocketList[i].status == 1))
	{
		
		int itsok = -1;
		for (int zz = 0;zz<=MailUserList.GetSize()-1;zz++)
		{
			if (MailUserList[zz].Username == SocketList[i].Username) itsok = zz;
		}
		
		if (itsok == -1)
		{
			char logstr[255];
			sprintf(logstr,"POP3 Login incorrect: User:%s Password:%s from %s",SocketList[i].Username,tempcstr,SocketList[i].ip);
			AddLog(logstr);
			
			sprintf(sendstr,"-ERR %s\r\n",pop3_msg04);
			pSocket->Send (sendstr,strlen(sendstr),0);
			SocketList[i].status = 0;
			return;
		}
		
		char logstr[255];
		char tempstr2[255];
		sprintf(tempstr2,"%s",tempstr);
		
		for (UINT z = 5; z<= strlen(tempstr2);z++)
		{
			tempstr2[z-5] = tempstr2[z];
		}
		tempstr2[z-5] = '\0';
		
		
		CString tempcstr;
		if (tempstr2[strlen(tempstr2)-2] == '\n') tempstr2[strlen(tempstr2)-2] = '\0';
		if (tempstr2[strlen(tempstr2)-2] == '\r') tempstr2[strlen(tempstr2)-2] = '\0';
		
		
		
		tempcstr = CreatePassword(tempstr2);
		
		if (MailUserList[itsok].Password == tempcstr)
		{
			
			sprintf(sendstr,"+OK %s\r\n",pop3_msg05);
			pSocket->Send (sendstr,strlen(sendstr),0);
			SocketList[i].Temp = "";
			SocketList[i].status = 2; 
			sprintf(logstr,"User login: %s from %s",SocketList[i].Username,SocketList[i].ip);
			AddLog(logstr);
		}
		else
		{
			sprintf(sendstr,"-ERR %s\r\n",pop3_msg06);
			pSocket->Send (sendstr,strlen(sendstr),0);
			SocketList[i].Temp = "";
			SocketList[i].status = 0; 
			char logstr[255];
			sprintf(logstr,"Login incorrect: User:%s Password:%s from %s",SocketList[i].Username,tempstr2,SocketList[i].ip);
			AddLog(logstr);
		}
		
		return;
	}
	
	if ((tempstrU[0] == 'N') && (tempstrU[1] == 'O') 
		&& (tempstrU[2] == 'O') && (tempstrU[3] == 'P') 
		)
	{
		
		SocketList[i].pSock->Send ("+OK\r\n",5,0);
		SocketList[i].Temp = "";
		return;
	}
	
	
	if ((tempstrU[0] == 'Q') && (tempstrU[1] == 'U') 
		&& (tempstrU[2] == 'I') && (tempstrU[3] == 'T') 
		)
	{
		sprintf(sendstr,"+OK %s\r\n",pop3_msg07);
		pSocket->Send (sendstr,strlen(sendstr),0);
		SocketList[i].pSock->ShutDown();
		SocketList[i].pSock->Close();
		char logstr[255];
		sprintf(logstr,"Connection closed for %s",SocketList[i].ip);
		AddLog(logstr);
		


		for (int z = 0;z<=DeleteList.GetSize()-1;z++)
		{
				if (SocketList[i].pSock == DeleteList[z].pSocket)
				{
					DeleteFile(DeleteList[z].Filename);
					DeleteList.RemoveAt(z);
					z--;
				}
		}




		SocketList.RemoveAt(i);
		mc_list1.DeleteString(i);
		ChngList();
		return;
	}
	
	
	if ((tem

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩久久99精品久久久久久夜| 亚洲蜜桃精久久久久久久| 亚洲图片欧美视频| 欧美视频中文字幕| 石原莉奈一区二区三区在线观看| 在线视频观看一区| 亚洲国产wwwccc36天堂| 亚洲欧美另类在线| 亚洲女同ⅹxx女同tv| 亚洲欧洲性图库| 日韩手机在线导航| 国产成人免费在线| 亚洲综合丁香婷婷六月香| 欧美第一区第二区| 94-欧美-setu| 久久精品国产亚洲a| 亚洲天堂成人网| 2024国产精品视频| 91精品国产综合久久国产大片| 性感美女久久精品| 欧美国产精品一区二区| 欧美亚洲国产一区二区三区va| 色94色欧美sute亚洲线路一久| 麻豆国产一区二区| 一区二区日韩电影| 亚洲国产精品激情在线观看| 欧美国产视频在线| 一区二区久久久| 免费视频一区二区| 石原莉奈在线亚洲三区| 蜜臀av一区二区在线观看 | 中文字幕一区免费在线观看| 中文字幕永久在线不卡| 午夜欧美一区二区三区在线播放| 国产欧美精品国产国产专区| 91.xcao| 色八戒一区二区三区| 欧美日韩不卡一区| 欧美日韩中文字幕精品| 99国产精品视频免费观看| 欧美亚洲一区二区在线观看| 日韩一级成人av| 国产精品久久久久久久久快鸭| 久久久精品tv| 久久久久久电影| 亚洲综合无码一区二区| 国产一区二区视频在线| 久久99国产乱子伦精品免费| 日韩国产欧美三级| 奇米777欧美一区二区| 成人午夜视频网站| a在线欧美一区| 91丨porny丨中文| 色哟哟国产精品免费观看| 91丨九色丨黑人外教| 日韩视频一区二区| 一区二区三区四区在线播放| 激情成人综合网| 国产精品一二三| 成人黄色在线看| 99精品久久久久久| 亚洲精品在线电影| 国产精品午夜春色av| 亚洲欧洲av在线| 国产精品一二三| 日韩精品在线网站| 日韩av在线发布| 欧美三级三级三级| 亚洲欧美一区二区三区国产精品 | 亚洲视频一区二区免费在线观看 | 日韩一级片在线播放| 亚洲精选视频在线| 天天操天天色综合| 色综合久久久久网| 日韩美女视频一区二区| 国产99久久久国产精品免费看| 欧美大白屁股肥臀xxxxxx| 欧美一区午夜精品| 亚洲一区中文日韩| 欧美性猛交xxxxxxxx| 免费成人在线网站| 日韩一区二区三区视频| 日韩av不卡一区二区| 欧美老肥妇做.爰bbww视频| 欧美xxxxx裸体时装秀| 日韩电影在线一区二区| 欧美一区二区三区视频免费| 性做久久久久久免费观看欧美| 91国偷自产一区二区三区成为亚洲经典 | 日韩精品1区2区3区| 欧美日韩精品一区二区| 五月天国产精品| 91精品国产免费| 久久99久久久久久久久久久| 日韩免费高清电影| 国产精品主播直播| 中文字幕高清不卡| 99综合电影在线视频| 一区二区三区在线观看视频| 欧洲一区二区av| 免费成人你懂的| 久久精品一区二区三区不卡 | 波多野结衣中文一区| 亚洲人吸女人奶水| 在线播放中文字幕一区| 国产综合色视频| 中文字幕一区二区三区不卡| 欧美在线短视频| 美腿丝袜亚洲三区| 国产精品免费久久久久| 欧美三级午夜理伦三级中视频| 日本三级韩国三级欧美三级| 亚洲综合999| 日韩欧美中文字幕一区| 成人一道本在线| 亚洲超碰精品一区二区| 久久色中文字幕| 色噜噜夜夜夜综合网| 老汉av免费一区二区三区| 亚洲欧美自拍偷拍色图| 666欧美在线视频| 成人h精品动漫一区二区三区| 亚洲人成网站精品片在线观看| 欧美一区二区福利在线| 99精品欧美一区二区三区综合在线| 亚洲444eee在线观看| 国产喷白浆一区二区三区| 欧美精品v国产精品v日韩精品| 成人综合婷婷国产精品久久免费| 一区二区三区中文字幕精品精品| 欧美sm极限捆绑bd| 欧美三级电影网| www.在线成人| 久久99九九99精品| 五月激情综合婷婷| 亚洲欧美国产三级| 欧美国产成人精品| 日韩免费一区二区| 欧美日本国产一区| 日本久久精品电影| av午夜一区麻豆| 国产精品一二三在| 国产一区二区三区精品欧美日韩一区二区三区 | 97久久超碰国产精品| 国产乱妇无码大片在线观看| 天天综合天天综合色| 亚洲精品成人a在线观看| 亚洲国产精品高清| 精品粉嫩超白一线天av| 91精品国产综合久久国产大片| 在线精品视频一区二区| 91丨九色丨蝌蚪丨老版| 99精品久久久久久| 成人免费毛片app| 国产福利精品一区二区| 国内久久婷婷综合| 国产精品资源在线观看| 麻豆精品在线看| 美国一区二区三区在线播放| 日本女优在线视频一区二区| 天天操天天色综合| 日韩精品国产欧美| 免费在线欧美视频| 蜜臀av一区二区在线免费观看 | 欧美日韩免费电影| 欧美日韩国产高清一区二区| 欧美色综合天天久久综合精品| 色av一区二区| 制服丝袜亚洲色图| 欧美mv日韩mv亚洲| 亚洲国产精品国自产拍av| 成人免费视频在线观看| 亚洲精品国产成人久久av盗摄| 一区二区三区在线播放| 亚洲高清免费视频| 久久精品国产**网站演员| 国产成人高清视频| 91丨九色丨尤物| 在线91免费看| 久久久综合视频| 亚洲人一二三区| 亚洲bt欧美bt精品777| 日韩av电影天堂| 高清国产午夜精品久久久久久| 99久久99久久免费精品蜜臀| 欧美午夜电影网| 亚洲精品一区二区三区在线观看| 国产亚洲欧美日韩日本| 欧美一区二区三区白人 | 久久99国产精品久久99果冻传媒| 国产九色精品成人porny| 91在线观看下载| 91精品国产综合久久蜜臀 | 国产麻豆视频一区| 在线免费观看日韩欧美| 精品国产区一区| 亚洲黄色尤物视频| 国产乱码精品一区二区三区忘忧草 | 国产精品久久久爽爽爽麻豆色哟哟| 亚洲自拍偷拍九九九|