• 大小: 10.26MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2025-06-29
  • 语言: 其他
  • 标签: C++  

资源简介

魔域服务端源码+客户端源码 废话不多说了,

资源截图

代码片段和文件信息

// Account.cpp: implementation of the CAccount class.
// 修改:仙剑修,2001.12.12
//////////////////////////////////////////////////////////////////////
#include “StdAfx.h“
#include 
#include 
//#include 

#include “define.h“
//#include “basefunc.h“
#include “Account.h“
#include “Logfile.h“ //paled
#include “typedef.h“

//const
//? const char SQL_ACCOUNT_STMT[] =“SELECT * FROM account WHERE name = ‘%s‘“;
//? const char SQL_ACCOUNTID_STMT[] =“SELECT * FROM account WHERE id = %u“; //paled
//#ifdef DATAbase_PASSWORD
// const char SQL_ACCOUNT_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account WHERE name=‘%s‘ AND password=PASSWORD(‘%s‘)“;
//#else
// const char SQL_ACCOUNT_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account WHERE name=‘%s‘ AND password=‘%s‘“;
// const char SQL_ACCOUNT_STMT2[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account WHERE name=‘%s‘“;
//#endif
//const char SQL_ACCOUNTID_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account WHERE id = %u“; //paled
//const char SQL_ACCOUNTISP_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account WHERE type=%d AND netbar_ip=‘%s‘“; //paled
////const char SQL_ACCOUNT_INSERT_STMT[] =“INSERT INTO account VALUES(0 ‘%s‘ %d %d ‘%s‘ ‘%s‘ ‘%s‘ ‘%s‘ ‘%s‘)“;
////const char SQL_ACCOUNT_DELETE_STMT[] =“DELETE FROM account WHERE id = %u“;
//const char SQL_ACCOUNT_UPDATEPOINT_STMT[] =“UPDATE account SET point=point-1 WHERE id=%u AND point>0 LIMIT 1“; //paled
#ifdef DATAbase_PASSWORD
const char SQL_ACCOUNT_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account as t1 left join %s as t2 on t2.account_id = t1.id WHERE name = ‘%s‘ AND password = PASSWORD(‘%s‘)“;
#else
const char SQL_ACCOUNT_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account as t1 left join %s as t2 on t2.account_id = t1.id WHERE name = ‘%s‘ AND password = ‘%s‘“;
const char SQL_ACCOUNT_STMT2[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account as t1 left join %s as t2 on t2.account_id = t1.id WHERE name = ‘%s‘“;
#endif
const char SQL_ACCOUNTID_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account as t1 left join %s as t2 on t2.account_id = t1.id WHERE id = %u“; //paled
const char SQL_ACCOUNTISP_STMT[] =“SELECT idnametypepointpointtimeonlinelicencenetbar_ipip_mask FROM account as t1 left join %s as t2 on t2.account_id = t1.id WHERE type=%d AND netbar_ip=‘%s‘“; //paled
//const char SQL_ACCOUNT_INSERT_STMT[] =“INSERT INTO account VALUES(0 ‘%s‘ %d %d ‘%s‘ ‘%s‘ ‘%s‘ ‘%s‘ ‘%s‘)“;
//const char SQL_ACCOUNT_DELETE_STMT[] =“DELETE FROM account WHERE id = %u“;
const char SQL_ACCOUNT_UPDATEPOINT_STMT[] =“UPDATE %s SET point=poin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        986  2007-04-26 08:59  魔域\AccountServer\!log!\account 2007-04-26.LOG

     文件        702  2007-05-23 20:18  魔域\AccountServer\!log!\account 2007-05-23.LOG

     文件       4946  2007-04-26 08:59  魔域\AccountServer\!log!\AccountServer 2007-04-26.LOG

     文件       2682  2007-05-23 20:18  魔域\AccountServer\!log!\AccountServer 2007-05-23.LOG

     文件        982  2007-04-26 08:59  魔域\AccountServer\!log!\point 2007-04-26.LOG

     文件        700  2007-05-23 20:18  魔域\AccountServer\!log!\point 2007-05-23.LOG

     文件        984  2007-04-26 08:59  魔域\AccountServer\!log!\server 2007-04-26.LOG

     文件        701  2007-05-23 20:18  魔域\AccountServer\!log!\server 2007-05-23.LOG

     文件      18313  2004-05-14 14:53  魔域\AccountServer\Account.cpp

     文件       3228  2004-04-13 16:09  魔域\AccountServer\Account.h

     文件       2189  2004-04-14 14:53  魔域\AccountServer\account.ini

     文件       2998  2005-05-17 17:16  魔域\AccountServer\account.sql

     文件       3748  2005-05-17 17:07  魔域\AccountServer\Account.sql.txt

     文件       2294  2004-04-13 16:09  魔域\AccountServer\AccountServer.cpp

     文件       8671  2005-05-17 17:16  魔域\AccountServer\AccountServer.dsp

     文件       1080  2004-04-14 18:06  魔域\AccountServer\AccountServer.dsw

     文件       1407  2004-04-13 16:09  魔域\AccountServer\AccountServer.h

     文件     369664  2005-03-20 21:44  魔域\AccountServer\AccountServer.ncb

     文件     193024  2005-03-20 21:44  魔域\AccountServer\AccountServer.opt

     文件       5539  2005-05-19 11:38  魔域\AccountServer\AccountServer.plg

     文件       5865  2004-04-13 16:09  魔域\AccountServer\AccountServer.rc

     文件         99  2005-05-17 11:14  魔域\AccountServer\AccountServer.SUP

     文件     155648  2005-05-19 11:31  魔域\AccountServer\AccountServer402.exe

     文件      19762  2005-05-17 11:17  魔域\AccountServer\AccountServerDlg.cpp

     文件       1595  2004-04-13 16:09  魔域\AccountServer\AccountServerDlg.h

     文件        525  2004-04-13 16:09  魔域\AccountServer\AllHeads.h

     文件       3202  2004-05-23 23:18  魔域\AccountServer\config.ini

     文件       5204  2004-05-14 10:24  魔域\AccountServer\Define.h

     文件       3479  2004-04-13 16:09  魔域\AccountServer\EncryptServer.h

     文件       6413  2004-04-13 16:09  魔域\AccountServer\GamebaseCode\baseFunc.cpp

............此处省略1887个文件信息

评论

共有 条评论