游戏私服论坛

 找回密码
 立即注册

查看: 1143|回复: 1
打印 上一主题 下一主题

[技术分享] 烈焰私服服务端如何进行局域网修改

[复制链接]

18

主题

19

帖子

1121

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1121
跳转到指定楼层
楼主
发表于 2016-3-15 00:55:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
   前提内容都必须在本地假设成功后方可,并且在做一下操作时候,最后对源文件备份,如果更改不能游戏,你可以恢复,这也是更改任何一个游戏或者程序必须具备的。
1、打开D:\ESSamp\ly_server\GameServer\conf\realms.conf   修改如下 192.168.1.100处内容,原文件IP都为127.0.0.1,192.168.1.100为我更改的案例IP
  1. <LogonServer Address = "192.168.1.100" Port = "9555" Name = "Default Logon" RealmCount = "1"> <MonitorServer Address = "0.0.0.0" Port = "18800" Enable = "0"> <WorldDatabase Hostname = "192.168.1.100" Username = "root" Password = "123456" Name = "gamedb_s22t25" Port = "3306"> <Realm1 Name = "test_1" Address = "192.168.1.100:10009" Icon = "PVP" Population = "1.0" TimeZone = "1">
复制代码


打开D:\ESSamp\wwwroot\game1.php   修改如下 192.168.1.100处内容,原文件IP都为127.0.0.1,192.168.1.100为我更改的案例IP

  1. <? require "1.php"; if((int)$_SESSION['id']<1){ die("小子a,先登录3!"); } if ($_SESSION['valid_user']=="") { die("小子,先登录4!");a } if ($_GET['username']!=$_SESSIaON['valid_user']) { die("小子,只能登录自己的帐号!"); } $exec1 = "select acct from accounts where login='".$_SESSION['valid_user']."' and encrypted_password = '".md5($_SESSION['password_o'])."'"; $result1 = $db->query($exec1); $rs1 = $db->get($result1); if ($rs1['acct']!="") { }else{ die("ERROR!!"); } $user = $_SESSION['valid_user']; $password = $_SESSION['password']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>烈焰</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta name="google" value="notranslate" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css" media="screen"> html, body { height:100%; } body { margin:0; padding:0; overflow:auto; text-align:center; background-color: #ffffff; } object:focus { outline:none; } #flashContent { display:none; } </style> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> var jsReady = false; function isReady() { return jsReady; } function pageInit() { jsReady = true; } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName];        } } function onbeforeunload() { //thisMovie("iLoader").onbeforeunload(); } function getParams() { return "http://192.168.1.100/?server_ip=192.168.1.100&server_port=9000&pass_user_name=<?=$user?>&encrypted_string=<?=$password?>&server_id=test_1&source=0&sub_source=&flags=4&time=1392385580&agent=9377&server=1&is_client=false"; } function getCDNPath() { //一区 return "http://192.168.1.100/data"; } function getClientPath() { return "http://www.han2u.com/";//获取登陆器下载地址 } function rightButton(btType,m_x,m_y) { thisMovie("iLoader").rightButton(btType,m_x,m_y); } function getRechargePath() { return "pay.htm";//获取官网充值页面地址 } function quit() { location.replace("index.php"); } function reload() { window.location.reload(); } var swfVersionStr = "0.0.0"; var xiSwfUrlStr = "playerProductInstall.swf"; var flashvars = {}; var params = {}; params.quality = "high"; params.bgcolor = "#000000"; params.allowscriptaccess = "always"; params.allowfullscreen = "true"; var attributes = {}; attributes.id = "iLoader"; attributes.name = "iLoader"; attributes.align = "middle"; swfobject.embedSWF( "iLoader6.swf", "flashContent", "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. swfobject.createCSS("#flashContent", "display:block;text-align:left;"); </script> </head> <body onload="pageInit();" onbeforeunload="onbeforeunload();"> <div id="flashContent"> <p> To view this page ensure that Adobe Flash Player version 0.0.0 or greater is installed. </p> <script type="text/javascript"> var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); </script> </div> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="iLoader"> <param name="movie" value="iLoader6.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="allowScriptAccess" value="always" /> <param name="allowFullScreen" value="true" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="iLoader6.swf" width="100%" height="100%"> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="allowScriptAccess" value="always" /> <param name="allowFullScreen" value="true" /> <!--<![endif]--> <!--[if gte IE 6]>--> <p> Either scripts and active content are not permitted to run or Adobe Flash Player version 0.0.0 or greater is not installed. </p> <!--<![endif]--> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /> </a> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </noscript> </body> </html>
复制代码
回复

使用道具 举报

18

主题

19

帖子

1121

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1121
沙发
 楼主| 发表于 2016-3-15 00:58:13 | 只看该作者
很不错的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|网页私服发布网

GMT+8, 2024-12-22 19:03 , Processed in 0.078000 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表