|
@@ -1,12 +1,5 @@
|
|
-/**
|
|
|
|
- * @file login.c
|
|
|
|
- * Module purpose is to read configuration for login-server and handle accounts,
|
|
|
|
- * and also to synchronize all login interfaces: loginchrif, loginclif, logincnslif.
|
|
|
|
- * Licensed under GNU GPL.
|
|
|
|
- * For more information, see LICENCE in the main folder.
|
|
|
|
- * @author Athena Dev Teams < r15k
|
|
|
|
- * @author rAthena Dev Team
|
|
|
|
- */
|
|
|
|
|
|
+// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
|
|
|
|
+// For more information, see LICENCE in the main folder
|
|
|
|
|
|
#pragma warning(disable:4800)
|
|
#pragma warning(disable:4800)
|
|
#include "login.hpp"
|
|
#include "login.hpp"
|
|
@@ -15,26 +8,27 @@
|
|
#include <string.h>
|
|
#include <string.h>
|
|
#include <string>
|
|
#include <string>
|
|
|
|
|
|
|
|
+#include "../common/cli.hpp"
|
|
#include "../common/core.hpp"
|
|
#include "../common/core.hpp"
|
|
#include "../common/db.hpp"
|
|
#include "../common/db.hpp"
|
|
#include "../common/malloc.hpp"
|
|
#include "../common/malloc.hpp"
|
|
#include "../common/md5calc.hpp"
|
|
#include "../common/md5calc.hpp"
|
|
|
|
+#include "../common/mmo.hpp"
|
|
|
|
+#include "../common/msg_conf.hpp"
|
|
#include "../common/random.hpp"
|
|
#include "../common/random.hpp"
|
|
#include "../common/showmsg.hpp"
|
|
#include "../common/showmsg.hpp"
|
|
#include "../common/socket.hpp" //ip2str
|
|
#include "../common/socket.hpp" //ip2str
|
|
#include "../common/strlib.hpp"
|
|
#include "../common/strlib.hpp"
|
|
#include "../common/timer.hpp"
|
|
#include "../common/timer.hpp"
|
|
-#include "../common/msg_conf.hpp"
|
|
|
|
-#include "../common/cli.hpp"
|
|
|
|
#include "../common/utils.hpp"
|
|
#include "../common/utils.hpp"
|
|
-#include "../common/mmo.hpp"
|
|
|
|
#include "../config/core.hpp"
|
|
#include "../config/core.hpp"
|
|
|
|
+
|
|
#include "account.hpp"
|
|
#include "account.hpp"
|
|
#include "ipban.hpp"
|
|
#include "ipban.hpp"
|
|
-#include "loginlog.hpp"
|
|
|
|
-#include "loginclif.hpp"
|
|
|
|
#include "loginchrif.hpp"
|
|
#include "loginchrif.hpp"
|
|
|
|
+#include "loginclif.hpp"
|
|
#include "logincnslif.hpp"
|
|
#include "logincnslif.hpp"
|
|
|
|
+#include "loginlog.hpp"
|
|
|
|
|
|
#define LOGIN_MAX_MSG 30 /// Max number predefined in msg_conf
|
|
#define LOGIN_MAX_MSG 30 /// Max number predefined in msg_conf
|
|
static char* msg_table[LOGIN_MAX_MSG]; /// Login Server messages_conf
|
|
static char* msg_table[LOGIN_MAX_MSG]; /// Login Server messages_conf
|