资源简介
魔域服务端源码+客户端源码
废话不多说了,
代码片段和文件信息
// 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\Gameba
............此处省略1887个文件信息
- 上一篇:极光推送服务端SDK集成
- 下一篇:极光推送报价表峰值、频率.pdf
相关资源
- makefiletest.tar.gz
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- 使用选择性重传协议实现UDP可靠通信
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- 用VC 编写的仿QQ聊天室程序源代码
- 外点法程序
- 外罚函数程序
- qt-电子点菜系统
- 推箱子及人工智能寻路C 源代码
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- MUSIC算法c 实现
- C 餐厅叫号系统(QT平)
- 国际象棋c 完整版
-
ob
jectARX给Auto CAD加工具条 - 画图程序MFC/VC/VC CRectTracker 串行化
- MFC网络编程实例
- c 课程设计 职工信息管理系统
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- 清华大学 c 郑莉 ppt课件
- c 程序判断离散数学中命题公式
- 多项式求和(数据结构C 版)
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- 用C 实现的对网络上的ARP数据包进行
川公网安备 51152502000135号
评论
共有 条评论