- 精华
- 阅读权限
- 30
- 好友
- 相册
- 分享
- 听众
- 收听
- 注册时间
- 2011-8-31
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
本帖最后由 哭、别乖 于 2012-11-24 15:50 编辑
热血三国服务端论坛有下载,
源码讨论, 发现
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<title><?=TITLE?></title>
<script src="AC_OETags.js" language="javascript"></script>
<script src="bloodwar.js" language="javascript"></script>
<script src="pass_test.js" language="javascript"></script>
<script src="lang_zh_CN.js" language="javascript"></script>
<?php if (is_callable(index_head)) index_head(); ?>
这代码是比较关键的加载代码, 估计 核对到pass_test.js或者pass.js时出现连接错误
连接pass.js时是跳转到登录界面的, 不相关 问题继续查找!
问题1, 数据库怎么连接,
按照非熟勿扰的思路 数据库连接在config
找到<?php define('chat_host','127.0.0.1');?> 这代码
DB.PHP
<?
////////////////////////////////////////////////////
// Database Options //
////////////////////////////////////////////////////
ini_set('include_path',ini_get('include_path').':'. '../lib');
define('db_RDBMS', 'mysql');
define('db_Username', 'root');
define('db_Password', 'PHP_58.19');
define('db_Server', '127.0.0.1');
define('db_Port', '3306');
define('db_Database', 'bloodwar');
$GLOBALS['dbcharset'] = 'utf8';
require_once("chathost.php");
define('chat_port','5308');
define('SERVER_ID',1);
?>
chat_port 相关联的大概就这个, 连接数据库的, |
|