楼主: oils

游戏账号注册,支持SOAP和管理功能

  [复制链接]

28

时沙

0

精华

0

主题

声望: 21   虚弱: 1

Lv.1(追随者)

瓦格里的标记

发表于 2021-12-14 11:16:22 | 显示全部楼层
太强了!!!
回复

使用道具 举报

28

时沙

0

精华

0

主题

声望: 21   虚弱: 1

Lv.1(追随者)

瓦格里的标记

发表于 2021-12-14 12:36:43 | 显示全部楼层
oils 发表于 2021-12-11 21:45
config.php 文件设置
=========
Core Type:

这贴主就是一憨批 发东西不发教程 就算每个人各有不同你也可以写清楚的 就是懒。
回复

使用道具 举报

28

时沙

0

精华

0

主题

声望: 21   虚弱: 1

Lv.1(追随者)

瓦格里的标记

发表于 2021-12-14 12:42:14 | 显示全部楼层
太垃圾了 这DKP白花了。
回复

使用道具 举报

914

时沙

0

精华

4

主题

声望: 1374   虚弱: 0

Lv.5(无冕者)

炉石信仰战今天也只能打恢复的增强萨潜行者

发表于 2021-12-14 14:54:03 发表自手机触屏版 | 显示全部楼层
jiuyuanmusic 发表于 2021-12-14 12:36
这贴主就是一憨批 发东西不发教程 就算每个人各有不同你也可以写清楚的 就是懒。 ...

挨不说了什么人都有外网免费的东西简单搬运直接就dk了 教程也没有
回复

使用道具 举报

430

时沙

0

精华

5

主题

声望: 746   虚弱: 0

Lv.4(锻造者)

炉石今天也只能打恢复的增强萨吟游牧师

 楼主| 发表于 2021-12-18 23:00:25 | 显示全部楼层
本帖最后由 oils 于 2021-12-19 11:10 编辑

我简单写下设置指南哈,供大家参考使用。每个人的端不一样,使用过程中有问题,请PM我。
1.首先把 application/config/ 目录下面的 config.php.sample 文件名改为 config.php
2.根据游戏服务器的参数对应 修改 config.php 文件参数。参考如下:
<?php

/*===================================================================
主页地址
     那是您的网站网址。 示例:“https://DOMAIN.COM”,或IP,http://192.168.1.2
页面标题
     那是您的网站标题。 示例:“我的 WOW 私人服务器!”

     默认网站语言(英语/波斯语/意大利语/简体中文/繁体中文/瑞典语/法语/德语/西班牙语/韩语)
支持的语言
支持的语言列表,您可以删除您不想要的每种语言!
如果要禁用语言更改器,请将其更改为: $config['supported_langs'] = false;
=====================================================================*/
$config['baseurl'] = "http://填写你的域名或IP地址:端口"; // 请确保使用有效的 URL,如果您在加载图像和模板时遇到任何问题,请检查此字段。如果你发现网站上面的图像不能正常显示,有可能就是这个地址没填对。
$config['page_title'] = "魔兽世界";
$config['language'] = "chinese-simplified";
$config['supported_langs'] = false;
/*===================================================================
[
        'english' => 'English',
        'persian' => 'Persian',
        'italian' => 'Italian',
        'chinese-simplified' => 'Chinese Simplified',
        'chinese-traditional' => 'Chinese Traditional',
        'swedish' => 'Swedish',
        'french' => 'French',
        'german' => 'German',
        'spanish' => 'Spanish',
        'korean' => 'Korean'
];
=====================================================================*/
/*===================================================================
如果您看到白屏或有问题,您可以启用它以查看错误。
请注意,测试后,请务必禁用此选项,即 要设为 false  !!
=====================================================================*/
$config['debug_mode'] = false; // 如果出现空白屏幕或报503代码的错误,请把false 改为 ENABLE进行调试。
/*===================================================================
您的服务器信息。
realmlist
     服务器领域列表
patch_location
     如果有补丁集 URL 在这里下载我们的补丁或将其设为空
game_version
     你的游戏版本
=====================================================================*/
$config['realmlist'] = '你的游戏服务器名,可以起中文';
$config['patch_location'] = '';
$config['game_version'] = '游戏版本号,3.3.5a (12340)';
/*===================================================================
选择您的服务器扩展。
如果您想使用高级模板,您的图像和背景将因您的扩展而更改。
0 = Classic
1 = The Burning Crusade (TBC)
2 = Wrath of the Lich King (WotLK)
3 = Cataclysm
4 = Mist of Pandaria (MOP)
5 = Warlords of Draenor (WOD)
6 = Legion
7 = BFA (I'm not sure about this one!)
=====================================================================*/
$config['expansion'] = '2'; //游戏核心是哪个,就选上面的哪个代码。如WLK就选2
/*===================================================================
Core Type:
0 = TrinityCore
1 = AzerothCore
2 = AshamaneCore
3 = Skyfire Project
4 = OregonCore
5 = CMangos
10 = etc
=====================================================================*/
$config['server_core'] = 0; // 游戏核心版本,Trinity的就选0
/*===================================================================
如果您的服务器是 WoD/Legion/BFA,您应该启用它!
=====================================================================*/
$config['battlenet_support'] = false; //是否
/*===================================================================
如果您的核心密码加密是 SRP6,则需要启用它。
对于 TrinityCore(3.3.5/master) 的最新版本,您需要启用它。 https://git.io/JJRH4https://git.io/JJrxq
如果您使用最新版本的 TC,请启用它。
您需要为 PHP 启用 GMP 扩展。
=====================================================================
***************** GMP REQUIRED ********************
******Uncomment extension=gmp in your php.ini******
=====================================================================*/
$config['srp6_support'] = true; // READ COMMENTS, [Please ENABLE GMP]
/*===================================================================
如果您想显示玩家排名或在线玩家,如果遇到问题,您可以禁用它们!
disable_top_players
     禁用服务器顶级玩家页面 [true:隐藏玩家排名页面]
disable_online_players
     禁用在线玩家页面 [true: 隐藏在线玩家页面]
disable_changepassword
     禁用更改密码
     如果您使用 SOAP 进行注册,请将其更改为 true。
=====================================================================*/
$config['disable_top_players'] = true;
$config['disable_online_players'] = false;
$config['disable_changepassword'] = false;
/*===================================================================
允许用户使用电子邮件为多个帐户创建帐户(仅适用于非 Battle.net 服务器)
=====================================================================*/
$config['multiple_email_use'] = false;
/*===================================================================
模板名称,网站默认带了5个模板,根据你的喜爱进行选择。您可以将其更改为:
light
advance
icecrown
kaelthas
battleforazeroth
=====================================================================*/
$config['template'] = 'advance';
/*===================================================================
SMTP 配置。(这个是通过邮箱来注册或找回密码用的)
我们需要这部分来发送电子邮件。 (用于恢复密码和2FA)
您可以使用自己的 SMTP 或 Gmail/Yahoo/Hotmail 等
smtp_host
     指定主要和备份 SMTP 服务器
smtp_port
     要连接的 TCP 端口
smtp_auth
     启用 SMTP 身份验证
smtp_user
     SMTP 用户名
smtp_pass
     邮件密码
smtp_secure
     启用 TLS 加密,`ssl` 也接受
smtp_mail
     通过...发送电子邮件
=====================================================================*/
$config['smtp_host'] = 'smtp.163.com'; //以163邮箱为例,根据您的邮箱自己设置
$config['smtp_auth'] = true;
$config['smtp_user'] = '邮箱用户名';
$config['smtp_pass'] = '邮箱密码,注意不是登陆密码。很多邮件是有单独的密码';
$config['smtp_secure'] = 'tls';
$config['smtp_mail'] = '用户名@163.com';
/*===================================================================
vote_system
投票系统 ,请忽略,无需要设置。
    You can enable/disable vote system.
    Vote system is a simple and don't have postback or something like that to verify the votes
    If you use Cloudflare and you have issue with IPs and voting, Read this: https://support.cloudflare.com/hc/en-us/articles/200170786
vote_sites
    Your vote sites and images, must be array.
=====================================================================*/
$config['vote_system'] = false;
$config['vote_sites'] = array(
    array(
        'image' => 'http://www.top100arena.com/hit.asp?id=93137&c=WoW&t=2',
        'site_url' => 'http://www.top100arena.com/in.asp?id=93137'
    ),
    array(
        'image' => 'https://topg.org/topg.gif',
        'site_url' => 'https://topg.org/wow-private-servers/in-479394'
    ),
    array(
        'image' => 'http://www.xtremeTop100.com/votenew.jpg',
        'site_url' => 'http://www.xtremetop100.com/in.php?site=1132364316'
    )
);
/*===================================================================
注册时的验证码设置,国内选0就可以了。
You can use Image captcha or HCaptcha or Recaptcha v2.
If you want to use Recaptcha v2 or HCaptcha required to enable cURL in your PHP.
** We recommend using HCaptcha. **
captcha_type
    0) Image Captcha
    1) HCaptcha
    2) ReCaptcha v2
    +2) Disable captcha. (DON'T DO THAT!)
For image captcha, you don't need to put anything for captcha_key captcha_secret or captcha_language.
captcha_secret/captcha_secret
    To get key and secret for HCaptcha go to https://hCaptcha.com/?r=6d4f9117ba12
    To get key and secret for Recaptcha go to https://www.google.com/recaptcha
captcha_language
    https://docs.hcaptcha.com/languages
    https://developers.google.com/recaptcha/docs/language
=====================================================================
******Uncomment extension=gd2 in your php.ini******
=====================================================================*/
$config['captcha_type'] = 0;
$config['captcha_key'] = '';
$config['captcha_secret'] = '';
$config['captcha_language'] = 'en';
/*===================================================================
soap_for_register  SOAP 注册
注意:如果开启此功能,一定要在worldserver.conf 配置文件中开启SOAP
=======以下是worldserver.conf中部分内容============
#
#    SOAP.Enable
#        Description: Enable soap service
#        Default:     0 - (Disabled)
#                     1 - (Enabled)

SOAP.Enabled = 1  //设置1

#
#    SOAP.IP
#        Description: Bind SOAP service to IP/hostname
#        Default:     "127.0.0.1" - (Bind to localhost)

SOAP.IP = "127.0.0.1"  //本机运行游戏和网站,可以用127.0.0.1,如果是局域网,就填局域网地址

#
#    SOAP.Port
#        Description: TCP port to reach the SOAP service.
#        Default:     7878

SOAP.Port = 7878   // 默认SOAP的端口

===================================================

======以下为网页配置内容 config.php===========
    不要为 AzerothCore/TrinityCore/SkyFire 和 AshamaneCore 启用它。
    如果启用,则需要禁用更改密码功能。
    如果要启用双因素身份验证 (2FA),则无需启用此选项。
    对于双因素身份验证 (2FA),只需要配置 SOAP 的其他部分。
SOAP 功能需要在您的 PHP 配置(php.ini)环境中启用soap功能。
soap_host
    SOAP 游戏服务器地址
soap_port
    SOAP 服务器端口,一般是7878。
soap_uri
    urn:TC 如果是TrinityCore 的端,就填urn:TC
    urn:AC 如果是 AzerothCore的端 就填urn:AC
    urn:Mangos 如果是 Mangos的端,就填urn:Mangos
soap_style
        SOAP_RPC
soap_username
    SOAP 账户的用户名,记住,一定是要最高等级的GM账号
肥皂用户名
    SOAP 帐户用户名
soap_password
    SOAP GM账号的密码
soap_ca_command
    创建账户命令
    也可以这样使用它:'.account create {USERNAME} {PASSWORD} {PASSWORD} {EMAIL}'
    检查您的服务器中的创建帐户命令!
soap_cp_command
    修改密码命令
    帐户设置密码 {USERNAME} {PASSWORD} {PASSWORD}
    检查服务器中的更改密码命令
soap_asa_command
    如果你使用soap_for_register,你需要设置这个命令。
    此命令将在soap_ca_command 之后运行。
    如果您不想在soap_ca_command 之后运行任何命令,您可以像这样将其设为空:''
    帐户集插件 {USERNAME} {EXPANSION}
=====================================================================
******Uncomment extension=soap in your php.ini******
=====================================================================*/
$config['soap_for_register'] = false;
$config['soap_host'] = '192.168.1.2';
$config['soap_port'] = '7878';
$config['soap_uri'] = 'urn:TC';
$config['soap_style'] = 'SOAP_RPC';
$config['soap_username'] = 'gm账号';
$config['soap_password'] = 'password密码';
$config['soap_ca_command'] = 'account create {USERNAME} {PASSWORD}';
$config['soap_cp_command'] = 'account set password {USERNAME} {PASSWORD} {PASSWORD}';
$config['soap_asa_command'] = 'account set addon {USERNAME} {EXPANSION}';
/*===================================================================
双重验证,一般关闭就好。
Two-Factor Authentication (2FA)
Your core must support 2fa.
This feature just works for cores that have 2fa command.
If your core support 2fa but don't have any command, you can check this: https://github.com/masterking32/WoWSimpleRegistration/pull/20 (Support some of the cores, Required to use 2fa for registration.)

You need to config SOAP too but you don't need to enable 'soap_for_register'.
For security reasons, We used email to enable 2fa, You need to enable SMTP config.

2fa_support
    You can enable or disable it. (true/false)
soap_2d_command
    Command to disable 2fa.
    account set 2fa {USERNAME} off
soap_2e_command
    Command to enable 2fa.
    account set 2fa {USERNAME} {SECRET}
=====================================================================*/
$config['2fa_support'] = false;
$config['soap_2d_command'] = 'account set 2fa {USERNAME} off';
$config['soap_2e_command'] = 'account set 2fa {USERNAME} {SECRET}';
/*===================================================================
你 Auth/Realmd MySQL 信息。
db_auth_host
     认证数据库主机,就是游戏auth表
db_auth_port
     身份验证数据库端口,3306是MYSQL的默认端口,如果您修改过,就相应填。
db_auth_user
     MYSQL数据库管理员账号名
db_auth_pass
     密码
db_auth_dbname
     游戏账号验证数据库名称auth

=====================================================================*/
$config['db_auth_host'] = '192.168.1.2';
$config['db_auth_port'] = '3306';
$config['db_auth_user'] = 'root';
$config['db_auth_pass'] = 'root';
$config['db_auth_dbname'] = 'auth';
/*===================================================================
你角色的数据库,支持多个服务器,一般realmid 设置为1,就是一个服务器。

=====================================================================*/
$config['realmlists'] = array(
    "1" => array(
        'realmid' => 1, // Realm ID
        'realmname' => "游戏服务器名称", // Realm Name
        'db_host' => "192.168.1.2", // MySQL服务器地址
        'db_port' => "3306", // MySQL 端口,默认为3306
        'db_user' => "root", // MySQL 管理员
        'db_pass' => 'root', // MySQL password
        'db_name' => "characters" // Characters 角色数据库
    )
);

/*
**********************************
* EXMAPLE OF MORE THAN ONE REALM *
**********************************

$config['realmlists'] = array( // Add your realmlist here
    "1" => array(
        'realmid' => 1,
        'realmname' => "Realm 1",
        'db_host' => "127.0.0.1",
        'db_port' => "3307",
        'db_user' => "root",
        'db_pass' => "root",
        'db_name' => "rm1_chars"
    ),
    "2" => array(
        'realmid' => 2,
        'realmname' => "Realm 2",
        'db_host' => "127.0.0.1",
        'db_port' => "3307",
        'db_user' => "root",
        'db_pass' => "root",
        'db_name' => "rm2_chars"
    ),
    "3" => array(
        'realmid' => 3,
        'realmname' => "Realm 3",
        'db_host' => "127.0.0.1",
        'db_port' => "3307",
        'db_user' => "root",
        'db_pass' => "root",
        'db_name' => "rm3_chars"
    )
);
*/



$config['script_version'] = '2.0.2';
回复

使用道具 举报

567

时沙

0

精华

3

主题

声望: 1174   虚弱: 2

Lv.4(锻造者)

假死猎人今天也只能打恢复的增强萨

发表于 2021-12-19 10:18:43 | 显示全部楼层
看看学习下
回复

使用道具 举报

1188

时沙

0

精华

4

主题

声望: 374   虚弱: 0

Lv.4(锻造者)

炉石时沙之瓶假死猎人今天也只能打恢复的增强萨金鼠(ytfirefox制作)

发表于 2022-2-4 15:29:22 | 显示全部楼层
模板错误修正一下
light
main.php
close 修改为<?php elang('close'); ?>
第 288 行 change_password  关闭按键位置
第 324 行 change_lang_head  关闭按键位置
close 修改为" . lang('close') . "
第 378 行 top_players-play_time  英雄榜 - 游戏时间 关闭按键位置

advance
main.php
close 修改为" . lang('close') . "
356 337
header.php
close 修改为<?php elang('close'); ?>

icecrown
main.php
close 修改为" . lang('close') . "
387 top_players-play_time  英雄榜 - 游戏时间 关闭按键位置

kaelthas
main.php
close 修改为" . lang('close') . "
373 top_players-play_time  英雄榜 - 游戏时间 关闭按键位置

battleforazeroth
main.php
close 修改为<?php elang('close'); ?>
第 524 行 change_lang_head  关闭按键位置
close 修改为" . lang('close') . "
364 top_players-play_time  英雄榜 - 游戏时间 关闭按键位置

notepad+++
回复

使用道具 举报

1005

时沙

0

精华

9

主题

声望: 18895   虚弱: 0

Lv.7(复仇者)

灵蛇献瑞(尚美制作)祥龙贺岁(尚美制作)金兔迎春(尚美制作)炉石时沙之瓶信仰战今天也只能打恢复的增强萨吟游牧师潜行者卖糖术神福虎贺岁(尚美制作)假死猎人雷施

发表于 2022-2-4 16:11:43 | 显示全部楼层
很厉害的样子,给开服的用的啊,自己玩的,就看看
回复

使用道具 举报

794

时沙

0

精华

25

主题

声望: 1610   虚弱: 0

Lv.5(无冕者)

今天也只能打恢复的增强萨

发表于 2022-2-6 16:29:03 | 显示全部楼层
大佬,我是个小白,请问这里面有使用教程吗,我想弄个注册通道
[发帖际遇]: 小汤圆杀死上千万小软,得到小软的内裤,获得1 声望. 幸运榜 / 衰神榜
回复

使用道具 举报

430

时沙

0

精华

5

主题

声望: 746   虚弱: 0

Lv.4(锻造者)

炉石今天也只能打恢复的增强萨吟游牧师

 楼主| 发表于 2022-2-15 21:39:27 | 显示全部楼层
小汤圆 发表于 2022-2-6 16:29
大佬,我是个小白,请问这里面有使用教程吗,我想弄个注册通道

教程在45#楼。
回复

使用道具 举报

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