10261 【越南】【砍树】仙盟徽章,头像框,头像(动态),聊天气泡,聊天表情(增加头像、头像框)
4个文件已修改
1个文件已添加
129 ■■■■■ 已修改文件
Account/User.php 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Server/config.ini 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Server/eventdata/FightPowerModule.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
SuperGMToolClient/Face.php 122 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
index.php 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Account/User.php
@@ -75,6 +75,7 @@
                    Permission::P_DelPlayerMoney => array("Name" => \Lang\gettext("扣除玩家货币"), "GMTKey2" => array("GMT_DelPlayerMoney"), "Log" => array("GMT_DelPlayerMoney")),
                    Permission::P_DelPlayerItem => array("Name" => \Lang\gettext("扣除玩家物品"), "GMTKey2" => array("GMT_DelPlayerItem"), "Log" => array("GMT_DelPlayerItem")),
                    Permission::P_SetGMLevel => array("Name" => \Lang\gettext("设置玩家GM"), "GMTKey2" => array("GMT_SetGMLevel"), "Log" => array("GMT_SetGMLevel")),
                    Permission::P_Face => array("Name" => \Lang\gettext("头像管理"), "GMTKey2" => array("GMT_Face"), "Log" => array("GMT_Face")),
                    Permission::P_AddTitle => array("Name" => \Lang\gettext("称号管理"), "GMTKey2" => array("GMT_AddTitle"), "Log" => array("GMT_AddTitle")),
                    Permission::P_Worship => array("Name" => \Lang\gettext("膜拜管理"), "GMTKey2" => array("GMT_Worship")),
                    Permission::P_AddAuctionItem => array("Name" => \Lang\gettext("上架拍品"), "GMTKey2" => array("GMT_AddAuctionItem")),
@@ -234,6 +235,7 @@
    const P_DelPlayerItem = "P_DelPlayerItem";
    const P_SetGMLevel = "P_SetGMLevel";
    const P_AddTitle = "P_AddTitle";
    const P_Face = "P_Face";
    const P_Worship = "P_Worship";
    const P_AddAuctionItem = "P_AddAuctionItem";
    const P_RefixWorldLV = "P_RefixWorldLV";
Server/config.ini
@@ -17,5 +17,5 @@
;权限2
[Popedom_2]
key=VERCbmNrbFZQVDE9
pack_types=GMT_ItemExpiation,GMT_MoneyExpiation,GMT_AddNewGuyCard,GMT_CardTypeInfo,GMT_NewGuyCardInfo,GMT_CTG,GMT_FreshmanGuide,GMT_BourseOnOff,GMT_AddEntireCompensation,GMT_AddPersonalCompensation,GMT_SetOpenServerTime,GMT_CompensationQuery,GMT_CompensationMgr,GMT_MediaCard,GMT_CrossServerMaintain,GMT_CrossClientServerMaintain,GMT_AddAuctionItem,GMT_AddTitle,GMT_CompensationQueryPersonal,GMT_CrossActServerIDChange,GMT_DelPlayerMoney,GMT_DelPlayerItem,GMT_RefixWorldLV,GMT_Execfile,GMT_SetGMLevel,GMT_CrossBattleChampionSet,GMT_AddPayCoin,GMT_ReloadPymongo,GMT_Worship
pack_types=GMT_ItemExpiation,GMT_MoneyExpiation,GMT_AddNewGuyCard,GMT_CardTypeInfo,GMT_NewGuyCardInfo,GMT_CTG,GMT_FreshmanGuide,GMT_BourseOnOff,GMT_AddEntireCompensation,GMT_AddPersonalCompensation,GMT_SetOpenServerTime,GMT_CompensationQuery,GMT_CompensationMgr,GMT_MediaCard,GMT_CrossServerMaintain,GMT_CrossClientServerMaintain,GMT_AddAuctionItem,GMT_AddTitle,GMT_CompensationQueryPersonal,GMT_CrossActServerIDChange,GMT_DelPlayerMoney,GMT_DelPlayerItem,GMT_RefixWorldLV,GMT_Execfile,GMT_SetGMLevel,GMT_CrossBattleChampionSet,GMT_AddPayCoin,GMT_ReloadPymongo,GMT_Worship,GMT_Face
Server/eventdata/FightPowerModule.py
@@ -21,7 +21,7 @@
    MFPNameDict = {0:_(u"角色"), 1:_(u"装备"), 2:_(u"强化"), 3:_(u"宝石"), 4:_(u"灵根"), 5:_(u"灵器"), 6:_(u"洗练"), 7:_(u"灵宠"), 8:_(u"坐骑"), 9:_(u"境界"),
                   10:_(u"神兵"), 11:_(u"称号"), 12:_(u"符印"), 13:_(u"升星"), 14:_(u"人族"), 15:_(u"丹药"), 16:_(u"魔族"), 17:_(u"仙族"), 18:_(u"灵宠魂石"), 19:_(u"坐骑魂石"),
                   20:_(u"法器"), 21:_(u"神兽"), 22:_(u"聚魂"), 23:_(u"王者法宝"), 24:_(u"时装"), 25:_(u"情缘"), 26:_(u"魅力"), 27:_(u"炼体"), 28:_(u"附魔"), 29:_(u"古宝"),
                   30:_(u"神通"), 31:_(u"阵法"), 32:_(u"聚魂新"),
                   30:_(u"神通"), 31:_(u"阵法"), 32:_(u"聚魂新"), 33:_(u"头像"), 34:_(u"头像框"),
                   }
    addMFPTName(OtherMFPType, _(u"其他"))
    return
SuperGMToolClient/Face.php
New file
@@ -0,0 +1,122 @@
<?php
include_once "/Account/User.php";
include_once "/Common/Logging.php";
include_once "/Common/CommFunc.php";
include_once "/language/lang.php";
\Logging\CreateLogging("Face.php");
$Permission = \User\Permission::P_Face;
$spid = $_SESSION['spid'];
$user = new \User\User($_SESSION['UserAccount']);
if (!$user->HavePermission($Permission)) {
    exit;
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title><?php echo \Lang\gettext("头像管理"); ?></title>
    <link rel="gettext" type="application/x-po" href="../language/<?php echo \Lang\getLang(); ?>/LC_MESSAGES/<?php echo \Lang\getjspodomain(); ?>.po" />
</head>
<body>
    <form action="/Common/GMCmdProcess.php" method="post">
        <dl>
            <dt><?php echo \Lang\gettext("头像管理"); ?></dt>
            <dd class="def_dd">
                <div>
                    <input type="radio" name="queryType" value="accID" checked />
                    <span><?php echo \Lang\gettext("按账号"); ?></span>
                    <input type="radio" name="queryType" value="playerName" />
                    <span><?php echo \Lang\gettext("角色名"); ?></span>
                    <br />
                    <label><?php echo \Lang\gettext("目标玩家"); ?>:</label>
                    <input class="long_input" type="text" name="playerFind" id="playerFind" value="" />
                </div>
                <p class="clear"></p>
            </dd>
            <dd class="def_dd">
                <label><?php echo \Lang\gettext("操作"); ?> (ID):</label>
                <input class="long_input" type="number" name="opID" id="opID" value="" min="1" />
                <p class="clear"></p>
            </dd>
            <dd class="def_dd">
                <label><?php echo \Lang\gettext("有效期秒"); ?>:</label>
                <input class="long_input" type="number" name="expireTime" value="" min="0" /> (<?php echo \Lang\gettext("0永久,不填则默认以配表为准"); ?>)
                <p class="clear"></p>
            </dd>
            <dd class="def_dd">
                <label><?php echo \Lang\gettext("选择类型"); ?>:</label>
                <input type="radio" name="faceType" value="face" checked />
                <span><?php echo \Lang\gettext("头像"); ?></span>
                <input type="radio" name="faceType" value="facePic" />
                <span><?php echo \Lang\gettext("头像框"); ?></span>
                <p class="clear"></p>
            </dd>
            <dd class="def_dd">
                <label><?php echo \Lang\gettext("选择操作"); ?>:</label>
                <input type="radio" name="opType" value="add" checked />
                <span><?php echo \Lang\gettext("激活"); ?></span>
                <input type="radio" name="opType" value="del" />
                <span><?php echo \Lang\gettext("删除"); ?></span>
                <p class="clear"></p>
            </dd>
            <?php
            if ($user->NeedCheckKey()) {
                echo "<dd class=\"def_dd\"><br />";
                echo \Lang\gettext("授权码(key)") . ":";
                echo "<input type=\"text\" name=\"key\" id=\"key\" />";
                echo "<p class=\"clear\"></p>";
                echo "</dd>";
            } else {
                echo "<input type=\"hidden\" name=\"key\" id=\"key\" />";
            }
            ?>
            <input type="hidden" name="Permission" value="<?php echo $Permission; ?>" />
            <input type="hidden" name="pack_type" value="GMT_Face" />
            <dd class="submit_dd">
                <input type="submit" name="submit" value="<?php echo \Lang\gettext("提交"); ?>" onclick="return CheckSubmit();" />
            </dd>
        </dl>
    </form>
    <script type='text/javascript' src='/language/gettext.js'></script>
    <script type='text/javascript' src="/js/common.js"></script>
    <script type="text/javascript">
        function CheckSubmit() {
            if (!document.getElementById("playerFind").value) {
                alert("<?php echo \Lang\gettext("请输入目标玩家"); ?>!");
                document.getElementById("playerFind").focus();
                return false;
            }
            if (!document.getElementById("opID").value) {
                alert("<?php echo \Lang\gettext("请输入ID"); ?>!");
                document.getElementById("opID").focus();
                return false;
            }
            if (!CheckKey("key")) {
                return false;
            }
            if (!window.confirm("<?php echo \Lang\gettext("确定提交?"); ?>")) {
                return false;
            }
            return true;
        }
    </script>
</body>
</html>
index.php
@@ -79,6 +79,7 @@
        array(\User\Permission::P_AddPayCoin, "SuperGMToolClient/AddPayCoin.php", \Lang\gettext("发放代币")),
        array(\User\Permission::P_DelPlayerMoney, "SuperGMToolClient/DelPlayerMoney.php", \Lang\gettext("扣除玩家货币")),
        array(\User\Permission::P_DelPlayerItem, "SuperGMToolClient/DelPlayerItem.php", \Lang\gettext("扣除玩家物品")),
        array(\User\Permission::P_Face, "SuperGMToolClient/Face.php", \Lang\gettext("头像管理")),
        array(\User\Permission::P_AddTitle, "SuperGMToolClient/AddTitle.php", \Lang\gettext("称号管理")),
        array(\User\Permission::P_Worship, "SuperGMToolClient/Worship.php", \Lang\gettext("膜拜管理")),
        array(\User\Permission::P_SetGMLevel, "SuperGMToolClient/SetGMLevel.php", \Lang\gettext("设置玩家GM")),