コード例 #1
0
ファイル: UserAction.php プロジェクト: svn2github/ybtx
function RoleToUser($var, $gm)
{
    global $page_main;
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        echo "<script src='/js/checkbox.js' type='text/javascript'></script>\n";
        form($var, $gm);
        checkbox(true, false);
        echo "</form>\n";
        ReturnAndBack();
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        return $ret;
    }
    $serverid = $var["serverindex"];
    $role_names = $var["role_name"];
    $role_names = implode("','", explode(",", $role_names));
    $qs = "select distinct us.us_uId, us.us_sName from tbl_char_static cs, tbl_char c, tbl_user_static us where cs.cs_uId = c.cs_uId and cs.us_uId = us.us_uId and c.c_sName in ('" . $role_names . "');";
    $result = MySQLQuery($qs, "Game", $serverid);
    echo "<table class='list_table'>\n";
    echo "<tr><th>" . $page_main["user_id"] . "</th><th>" . $page_main["user_name"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        printf("<tr" . ($i++ % 2 == 0 ? "" : " class='even'") . "><td>%s</td><td><input type='checkbox' flag='user' onclick='Checkbox(this);' value='%s'/>%s</td></tr>\n", $row[0], $row[1], $row[1]);
    }
    echo "</table>\n";
    return true;
}
コード例 #2
0
ファイル: GetAllComplaints.php プロジェクト: svn2github/ybtx
function GetAllComplaints($var, $gm)
{
    global $tbl_list_complaint;
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        echo "<script src='/js/page.js'></script>\n";
        echo "<script src='/js/checkbox.js'></script>\n";
        form($var, $gm);
        checkbox(true, true);
        ReturnAndBack();
        echo "</form>\n";
        return eachServerFrame($var, $gm);
    } else {
        $serv_id = intval($var["serverindex"]);
    }
    global $page_main, $tbl_sys_msg;
    $query_string = "select ua.ua_nMsgType, us.us_sName, c.c_sName, ua.ua_sErrorMsg, ua.ua_dtTime, ua.ua_uErrorCode from tbl_user_advice ua, tbl_char c, tbl_char_static cs, tbl_user_static us where ua.cs_uId = c.cs_uId and c.cs_uId = cs.cs_uId and cs.us_uId = us.us_uId order by ua_dtTime desc";
    page($var, $query_string, 58, "Game", $serv_id, $result, $page, $desc);
    echo "<table class='list_table'>\n";
    echo "<tr><th class='type' style='width:60px;'>" . $page_main["category"] . "</th><th style='width:80px;'>" . $page_main["user_name"] . "</th><th style='width:80px;'>" . $page_main["role_name"] . "</th><th>" . $page_main["content"] . "</th><th style='width:40px;'>" . $tbl_sys_msg["status"] . "</th><th style='width:120px;'>" . $tbl_sys_msg["time"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        printf("<tr><td>%s</td><td><input type='checkbox' flag='user' value='%s' onclick='Checkbox(this)' />%s</td><td><input type='checkbox' flag='role' value='%s' onclick='Checkbox(this)' />%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $tbl_list_complaint[$row[0]], $row[1], $row[1], $row[2], $row[2], $row[3], "-", $row[4]);
    }
    echo "</table>\n";
    echo $page;
    return true;
}
コード例 #3
0
ファイル: GetCmpstByGM.php プロジェクト: svn2github/ybtx
function GetCmpstByGM($var, $gm)
{
    global $tbl_sys_msg, $page_main, $tbl_list_compensate;
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        $js_src = <<<_js_src
<script type='text/javascript' src='/js/checkbox.js'></script>
<script type='text/javascript' src='/js/page.js'></script>
<script type='text/javascript'>
function cancel(id)
{
\tdocument.form1.target = "_block"
\tdocument.form1.action_name.value='124';
\tdocument.form1.id.value=id;
\tdocument.form1.submit();
}
</script>
_js_src;
        echo $js_src . "\n";
        echo "<script type='text/javascript' src='/js/log_info.js'></script>\n";
        form($var, $gm);
        echo "<input type='hidden' name='flag' />\n";
        echo "<input type='hidden' name='role_name' />\n";
        echo "<input type='hidden' name='str' />\n";
        echo "<input type='hidden' name='urs' />\n";
        echo "<input type='hidden' name='id' />";
        checkbox(false, true);
        ReturnAndBack();
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        echo "</form>\n";
        return $ret;
    }
    $serv_id = intval($var["serverindex"]);
    $gm_name = mysql_escape_string($gm);
    $filter = "";
    if ($var["flag"] != "" || $var["role_name"] != "") {
        $filter = " and";
        if ($var["flag"] != "") {
            $filter .= " reason like '%#[" . $var["flag"] . "[%'";
        }
        if ($var["flag"] != "" && $var["role_name"] != "") {
            $filter .= " and";
        }
        if ($var["role_name"] != "") {
            $k = $var["role_name"];
            $filter .= " (reason like '%[" . $k . ",%' or reason like '%," . $k . "]%' or reason like '%," . $k . ",%' or reason like '%[" . $k . "]%')";
        }
    }
    $query = "select gca_uId, gm, action_id, reason, action_state from tbl_gm_compensate_action where server_id = '{$serv_id}' and gm = '{$gm_name}'" . $filter . " order by gca_uId desc";
    page($var, $query, 123, "GMS", 0, $result, $page, $desc);
    echo "<table class='list_table'>\n";
    echo "<tr><th style='width:60px;'>" . $page_main["user_name"] . "</th><th style='width:160px;'>" . $page_main["event_type"] . "</th><th>" . $tbl_sys_msg["desc"] . "</th><th style='width:60px;'>" . $tbl_sys_msg["act"] . "</th><th style='width:80px;'>" . $tbl_sys_msg["status"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td class='server' title='" . $serv_id . "'>%s</td></tr>", $row[1], GetGMCommandLogAction($row[2]), LogInfo($row[3]), hasAuth(124, $gm) && $row[4] == 1 ? "<input type=button value='" . $tbl_sys_msg["cancel"] . "' onclick='cancel(" . $row[0] . ")'/>" : "", $tbl_list_compensate[$row[4]]);
    }
    echo "</table>\n";
    echo $page;
    return true;
}
コード例 #4
0
ファイル: GetGMMgr.php プロジェクト: svn2github/ybtx
function GetGMMgrInfo($var, $gm)
{
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        $js_src = <<<_js_src
<script type="text/javascript">
<!--//
function DelGMMmr(obj,id,game_id)
{
\tdocument.form1.action =  "/cgi-bin/gm_tools/FrameWork.php";
\tdocument.form1.action_name.value = '89';
\tdocument.form1.target = "block";
\tdocument.form1.id.value = id;
\tdocument.form1.game_id.value = game_id;
\tdocument.form1.serverid.value = \$(obj).parents(".panel").attr("id").substring(4);
\tdocument.form1.submit();
}
function ChangeGMLevel(obj,id,game_id)
{\t
\tdocument.form1.action =  "/lib/gm_tools/ChangeGMLevel.php";
\tdocument.form1.target = "block";
\tdocument.form1.id.value = id;
\tdocument.form1.game_id.value = game_id;
\tdocument.form1.serverid.value = \$(obj).parents(".panel").attr("id").substring(4);
\tdocument.form1.submit();
\t
}
</script>
_js_src;
        echo $js_src . "\n";
        form($var, $gm);
        echo "<input type='hidden' name='id'/>\n";
        echo "<input type='hidden' name='game_id'/>\n";
        $ret = eachServerFrame($var, $gm);
        echo "</form>\n";
        ReturnAndBack();
        return $ret;
    } else {
        $serverid = intval($var["serverindex"]);
    }
    global $page_main, $tbl_sys_msg;
    $query_string = "select username,gv_uLevel, us_uGameID from tbl_gm_validate";
    $result = MySQLQuery($query_string, "Game", $serverid);
    echo "<table class='list_table'>\n";
    printf("<tr><th>%s</th><th>%s</th><th>%s</th></tr>\n", $page_main["user_name"], $tbl_sys_msg["level"], $tbl_sys_msg["act"]);
    while ($row = mysql_fetch_row($result)) {
        $func_str = "";
        if (hasAuth(89, $gm)) {
            $func_str .= sprintf("<input type=button value=\"%s\" onclick=\"DelGMMmr(this,'%s',%d)\"/>", $tbl_sys_msg["delete"], $row[0], $row[2]);
        }
        if (hasAuth(96, $gm)) {
            $func_str .= sprintf("<input type=button value=\"%s\" onclick=\"ChangeGMLevel(this,'%s',%d)\"/>", $tbl_sys_msg["edit"], $row[0], $row[2]);
        }
        printf("<tr" . ($i % 2 == 0 ? "" : " class='even'") . "><td>%s</td><td>%d</td><td>%s</td></tr>\n", $row[0], $row[1], $func_str);
    }
    echo "</table>\n";
    return true;
}
コード例 #5
0
ファイル: GetRoleFriends.php プロジェクト: svn2github/ybtx
function GetFriends($var, $gm)
{
    global $tbl_role_all_detail;
    echo "<h1>{$tbl_role_all_detail['16']}</h1>\n";
    ReturnAndBack();
    Reload();
    $role_id = ArgRoleId();
    echo "<table class='list_table'>\n";
    echo sprintf("<tr><td>{$tbl_role_all_detail['18']}</td></tr>\n", ArgRoleName() . "(" . $role_id . ")");
    echo "</table>\n";
    global $tbl_role_friends, $tbl_camp, $tbl_class, $tbl_sex, $tbl_sys_msg;
    $serverid = $var["serverid"];
    if (!$role_id) {
        return true;
    }
    echo "<h1>" . $tbl_role_friends[0] . "</h1>\n";
    echo "<table class='list_table'>\n";
    printf("<tr><th>%s</th><th>%s</th><th style='width:100px;'>%s</th><th style='width:100px;'>%s</th><th style='width:100px;'>%s</th><th style='width:100px;'>%s</th></tr>\n", $tbl_role_friends[1][0], $tbl_role_friends[1][1], $tbl_role_friends[1][2], $tbl_role_friends[1][3], $tbl_role_friends[1][4], $tbl_role_friends[1][5]);
    $rs = MySQLQuery("select c.c_sName, cs.cs_uCamp, cs.cs_uClass, cb.cb_uLevel, cs.cs_uSex, fc.fc_sName from tbl_player_friends pf, tbl_friends_class fc, tbl_char c, tbl_char_basic cb, tbl_char_static cs where pf.fc_uId = fc.fc_uId and pf.cs_uId = fc.cs_uId and pf.pf_uFriendId = c.cs_uId and fc.fc_uId<>2 and pf.cs_uId='{$role_id}' and cb.cs_uId = c.cs_uId and cs.cs_uId = c.cs_uId", "Game", $serverid);
    while ($row = mysql_fetch_row($rs)) {
        if ($row[5] == UTF82Local($tbl_role_friends[1][6])) {
            $row[5] = $tbl_role_friends[1][6];
        }
        printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $row[5], $row[0], $tbl_camp[$row[1]], $tbl_class[$row[2]], $row[3], $tbl_sex[$row[4]]);
    }
    echo "</table>\n";
    echo "<h1>" . $tbl_role_friends[2] . "</h1>\n";
    echo "<table class='list_table'>\n";
    printf("<tr><th>%s</th><th style='width:100px;'>%s</th><th style='width:100px;'>%s</th><th style='width:100px;'>%s</th><th style='width:100px;'>%s</th></tr>\n", $tbl_role_friends[3][0], $tbl_role_friends[3][1], $tbl_role_friends[3][2], $tbl_role_friends[3][3], $tbl_role_friends[3][4]);
    $rs = MySQLQuery("select c.c_sName, cs.cs_uCamp, cs.cs_uClass, cb.cb_uLevel, cs.cs_uSex from tbl_player_friends pf, tbl_char c, tbl_char_basic cb, tbl_char_static cs where pf.pf_uFriendId = c.cs_uId and pf.cs_uId='{$role_id}' and pf.fc_uId=2 and cb.cs_uId = c.cs_uId and cs.cs_uId = c.cs_uId", "Game", $serverid);
    while ($row = mysql_fetch_row($rs)) {
        printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $row[0], $tbl_camp[$row[1]], $tbl_class[$row[2]], $row[3], $tbl_sex[$row[4]]);
    }
    echo "</table>\n";
    echo "<h1>" . $tbl_role_friends[4] . "</h1>\n";
    echo "<table class='list_table'>\n";
    printf("<tr><th>%s</th><th>%s</th><th>%s</th></tr>\n", $tbl_role_friends[5][0], $tbl_role_friends[5][1], $tbl_role_friends[5][2]);
    $rs = MySQLQuery("select fg.fg_sName,gm1.gm_uIdentity,count(*) from tbl_group_manager gm1,tbl_group_manager gm2,tbl_friends_group fg where gm1.cs_uId='{$role_id}' and gm1.fg_uId = gm2.fg_uId and gm1.fg_uId = fg.fg_uId group by gm2.fg_uId", "Game", $serverid);
    while ($row = mysql_fetch_row($rs)) {
        printf("<tr><td>%s</td><td>%s</td><td>%d</td></tr>\n", $row[0], $tbl_role_friends[5][3][intval($row[1])], $row[2]);
    }
    echo "</table>\n";
    echo "<h1>" . $tbl_role_friends[6] . "</h1>\n";
    echo "<table class='list_table'>\n";
    printf("<tr><th>%s</th><th>%s</th><th>%s</th></tr>\n", $tbl_role_friends[7][0], $tbl_role_friends[7][1], $tbl_role_friends[7][2]);
    $rs = MySQLQuery("select t.t_sName, mt1.mt_sPosition, count(*) from tbl_member_tong mt1, tbl_tong t, tbl_member_tong mt2 where mt1.t_uId = t.t_uId and t.t_uId = mt2.t_uId and mt1.cs_uId = '{$role_id}' group by t.t_uId", "Game", $serverid);
    while ($row = mysql_fetch_row($rs)) {
        global $tbl_tong_pos;
        printf("<tr><td>%s</td><td>%s</td><td>%d</td></tr>\n", $row[0], $tbl_tong_pos[intval($row[1])], $row[2]);
    }
    echo "</table>\n";
    return true;
}
コード例 #6
0
ファイル: TaskInfo.php プロジェクト: svn2github/ybtx
function RetGetTaskInfo($tbl_content, $role_name, $role_id)
{
    $tbl_count = count($tbl_content);
    $str = "";
    global $page_main, $tbl_sys_msg;
    echo "<table class='list_table'>\n";
    echo sprintf("<tr><th>%s</th><th>%s</th><th>%s</th><th>%s</th></tr>\n", $page_main["task"], $tbl_sys_msg["status"], $page_main["begin_time"], $page_main["end_time"]);
    for ($i = 0; $i < $tbl_count; $i++) {
        printf("<tr" . ($i % 2 == 0 ? "" : " class='even'") . "><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>", Lan_Quest_GetDisplayName(Local2UTF8($tbl_content[$i][0])), $tbl_content[$i][1], $tbl_content[$i][2], "1970-01-01 08:00:00" == $tbl_content[$i][3] ? "-" : $tbl_content[$i][3]);
    }
    echo "</table>\n";
    ReturnAndBack();
}
コード例 #7
0
ファイル: CorpsDetail.php プロジェクト: svn2github/ybtx
function RetTongDetail($tbl_content, $var)
{
    global $tbl_camp, $tbl_tong_detail, $tbl_tong_msg;
    echo "<table class='form_table'>";
    echo sprintf("<tr><th>%s</th><td><b>%s</b></td></tr>", $tbl_tong_detail[0], $tbl_content[0]);
    echo sprintf("<tr><th>%s</th><td>%s</td></tr>", $tbl_tong_detail[1], $tbl_content[1]);
    echo sprintf("<tr><th>%s</th><td>%s</td></tr>", $tbl_tong_detail[2], $tbl_camp[$tbl_content[2]]);
    echo sprintf("<tr><th>%s</th><td>%d</td></tr>", $tbl_tong_detail[3], $tbl_content[3]);
    echo sprintf("<tr><th>%s</th><td>%s</td></tr>", $tbl_tong_detail[4], $tbl_content[4]);
    echo sprintf("<tr><th>%s</th><td>%d</td></tr>", $tbl_tong_detail[5], $tbl_content[5]);
    echo sprintf("<tr><th>%s</th><td>%d</td></tr>", $tbl_tong_detail[6], $tbl_content[6]);
    echo sprintf("<tr><th>%s</th><td>%d</td></tr>", $tbl_tong_detail[7], $tbl_content[7]);
    echo sprintf("<tr><th>%s</th><td>%d</td></tr>", $tbl_tong_detail[8], $tbl_content[8]);
    echo sprintf("<tr><th>%s</th><td>%s</td></tr>", $tbl_tong_detail[9], $tbl_content[9]);
    echo sprintf("<tr><th>%s</th><td>%d</td></tr>", $tbl_tong_detail[10], $tbl_content[10]);
    echo sprintf("<tr><th>%s</th><td>%s</td></tr>", $tbl_tong_detail[11], $tbl_content[11]);
    echo sprintf("<tr><th>%s</th><td>%s</td></tr>", $tbl_tong_detail[12], $tbl_tong_msg["war_zone"][$tbl_content[12]] . "-" . $tbl_tong_msg["station_name"][$tbl_content[13]]);
    echo sprintf("</table>");
    ReturnAndBack();
}
コード例 #8
0
ファイル: GetRoles.php プロジェクト: svn2github/ybtx
function GetRoles($var, $gm, $fun)
{
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        $js_src = <<<_js_src
<script type='text/javascript' src='/js/checkbox.js'></script>
<script type='text/javascript' src='/js/page.js'></script>
<script>
\tfunction ViewUser(obj,urs)
\t{
\t\talert(\$(obj).html());
\t\tdocument.form1.action_name.value = '50';
\t\tdocument.form1.serverid.value = \$(obj).parents(".panel").find("input[name='serverindex']").val();
\t\tdocument.form1.urs.value = urs;
\t\tdocument.form1.submit();
\t}
\tfunction ViewRole(obj,role_name)
\t{
\t\tdocument.form1.action_name.value = '97';
\t\tdocument.form1.serverid.value = \$(obj).parents(".panel").find("input[name='serverindex']").val();
\t\tdocument.form1.role_name.value = role_name;
\t\tdocument.form1.submit();
\t}
</script>
_js_src;
        echo $js_src . "\n";
        form($var, $gm);
        echo "<input type='hidden' name='role_name' />";
        echo "<input type='hidden' name='urs' />";
        checkbox(true, true);
        ReturnAndBack();
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        echo "</form>\n";
        return $ret;
    }
    $serverid = $var["serverindex"];
    $channel_id = $var["channel_id"];
    $tbl_content = $fun($var, $gm);
    return true;
}
コード例 #9
0
function GetMoneyCorrencyLimit($var, $gm)
{
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        $js_src = <<<_js_src
<script type="text/javascript">
<!--//
function DelMoneyCorrencyLimit(money_func,obj)
{
\tdocument.form1.target = "block";
\tdocument.form1.action_name.value = '93';
\tdocument.form1.money_func.value = money_func;
\tdocument.form1.serverid.value = \$(obj).parents(".panel").attr("id").substring(4);
\tdocument.form1.submit();
}
</script>
_js_src;
        echo $js_src;
        form($var, $gm);
        echo "<input type='hidden' name='money_func'/>\n";
        echo "</form>\n";
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        return $ret;
    } else {
        $serverid = intval($var["serverindex"]);
    }
    $query_string = "select mcl_sFunName,mcl_sModule from tbl_money_corrency_limit";
    $result = MySQLQuery($query_string, "Game", $serverid);
    $tbl_content = array();
    while ($row = mysql_fetch_row($result)) {
        $tbl_size = count($tbl_content);
        $tbl_content[$tbl_size] = $row;
    }
    RetMoneyCorrencyLimit($tbl_content, $var);
    return true;
}
コード例 #10
0
ファイル: ReqAction.php プロジェクト: svn2github/ybtx
function ReqSendMail($var, $gm)
{
    ReturnAndBack();
    return eachServer($var, $gm, SendMail_f);
}
コード例 #11
0
ファイル: GetAllGMLog.php プロジェクト: svn2github/ybtx
function GetGMActionLog($var, $gm)
{
    global $tbl_sys_msg, $page_main, $tbl_game_server, $page_action_name;
    if ($var["page"] == "" and $var["page_field"] == "" and $var["flag"] == "" and $var["role_name"] == "") {
        echo "<script type='text/javascript' src='/js/page.js'></script>\n";
        echo "<script type='text/javascript' src='/js/log_info.js'></script>\n";
        echo "<script type='text/javascript' src='/js/checkbox.js'></script>\n";
        form($var, $gm);
        checkbox(true, true);
        echo "<input type='hidden' name='flag' />\n";
        echo "<input type='hidden' name='role_name' />\n";
        echo "<input type='hidden' name='str' />\n";
        echo "<input type='hidden' name='urs' />\n";
        ReturnAndBack();
        echo "<div class='panel' id='div_0'>\n";
    }
    $filter = "";
    if ($var["flag"] != "" || $var["role_name"] != "") {
        $filter = " where";
        if ($var["flag"] != "") {
            $filter .= " reason like '%#[" . $var["flag"] . "[%'";
        }
        if ($var["flag"] != "" && $var["role_name"] != "") {
            $filter .= " and";
        }
        if ($var["role_name"] != "") {
            $k = $var["role_name"];
            $filter .= " (reason like '%[" . $k . ",%' or reason like '%," . $k . "]%' or reason like '%," . $k . ",%' or reason like '%[" . $k . "]%')";
        }
    }
    $query = "select gcl_sGmName, gcl_fAction, gcl_sReason, gcl_uServerId, gcl_tUptime from tbl_gm_command_log" . $filter . " order by gcl_tUptime desc";
    page($var, $query, 62, "GMS", 0, $result, $page, $desc);
    echo "<table class='list_table'>";
    echo "\t<tr>";
    echo "\t\t<th style='width:60px;' class='f0'>" . $page_main["user_name"] . page_filter("gcl_sGmName", "f0", 0, $query, "GMS", 0) . "</th>";
    echo "\t\t<th style='width:160px;' class='f1'>" . $page_main["event_type"] . page_filter("gcl_fAction", "f1", 0, $query, "GMS", 0, "GetGMCommandLogAction") . "</th>";
    echo "\t\t<th class='f2'>" . $tbl_sys_msg["desc"] . "<div class='filter' style='display:none;'><a href='#' onclick=\"toNoFilter(this)\">" . $tbl_sys_msg["all"] . "</a></div>";
    echo "<script type=\"text/javascript\">\n";
    echo "\t\$(\"#div_0 .f2\").css(\"cursor\",\"pointer\");\n";
    echo "\t\$(\"#div_0 .f2\").hover(\n";
    echo "\tfunction(){\n";
    echo "\t\t\$(this).find(\"div.filter\").slideDown();\n";
    echo "\t},\n";
    echo "\tfunction(){\n";
    echo "\t\t\$(this).find(\"div.filter\").hide();\n";
    echo "\t}\n";
    echo ");\n";
    echo "</script>\n";
    echo "\t\t</th>";
    echo "\t\t<th style='width:70px;'>" . $tbl_sys_msg["server"] . "</th>";
    echo "\t\t<th style='width:130px;'>" . $tbl_sys_msg["time"] . "</th>";
    echo "\t</tr>\n";
    while ($row = mysql_fetch_row($result)) {
        printf("<tr><td align='center'>%s</td><td>%s</td><td>%s</td><td align='center' class='server' title='%d'>%s</td><td align='center'>%s</td></tr>\n", $row[0], GetGMCommandLogAction($row[1]), LogInfo($row[2]), $row[3], $tbl_game_server[$row[3]][2], $row[4]);
    }
    echo "</table>\n";
    echo $page;
    if ($var["page"] == "" and $var["page_field"] == "" and $var["flag"] == "" and $var["role_name"] == "") {
        echo "</div>\n";
        ReturnAndBack();
        echo "</form>\n";
    }
    return true;
}
コード例 #12
0
ファイル: Management.php プロジェクト: svn2github/ybtx
function UnFreezeUrs($var, $gm)
{
    ReturnAndBack();
    return eachServer($var, $gm, UnFreezeUrs_f);
}
コード例 #13
0
ファイル: CorpsTotal.php プロジェクト: svn2github/ybtx
function GetTongDepot($var, $gm)
{
    global $tbl_tong_depot, $bid2type, $tbl_tong_page, $tbl_sys_msg;
    $id = intval($var["id"]);
    $serverid = intval($var["serverid"]);
    if ($var["page"] == null || $var["page"] == "") {
        $js_str = <<<_js_str
<script type='text/javascript' src='/js/page.js'></script>
<script type='text/javascript'>
function del(i_type, i_name, i_num,i_page,i_pos){
\tdocument.form1.target = "block";
\tdocument.form1.item_name.value = i_type + "_" + i_name;
\tdocument.form1.num.value = i_num;
\tdocument.form1.uPage.value = i_page;
\tdocument.form1.pos.value = i_pos;
\tvar reason = prompt("%s","");
\tif(reason==null) return;
\tdocument.form1.reason.value = reason;
\tdocument.form1.action_name.value = "79";
\tdocument.form1.submit();
}
</script>
_js_str;
        echo sprintf($js_str, $tbl_sys_msg["reason"]) . "\n";
        echo "<h1>" . $tbl_tong_depot[0] . "</h1>\n";
        ReturnAndBack();
        form($var, $gm);
        $row = mysql_fetch_row(MySQLQuery("select t_sName from tbl_tong where t_uId = {$id}", "Game", $serverid));
        echo "<input type='hidden' name='tong_name' value='" . $row[0] . "' />\n";
        echo "<input type='hidden' name='item_name' />\n";
        echo "<input type='hidden' name='num' />\n";
        echo "<input type='hidden' name='uPage' />\n";
        echo "<input type='hidden' name='pos' />\n";
        echo "<input type='hidden' name='reason' />\n";
        echo "</form>\n";
        echo "<div class='panel'>\n";
    }
    $query = "select is.is_sName,is.is_uType,icd.icd_uPageIndex,icd.icd_uPos,count(*) from tbl_item_collectivity_depot icd, tbl_item_static `is` where icd.is_uId = is.is_uId and icd.cds_uId = '{$id}' group by icd.icd_uPageIndex,icd.icd_uPos order by icd.icd_uPageIndex,icd.icd_uPos";
    page($var, $query, 178, "Game", $serverid, $result, $str, $desc);
    echo $desc;
    echo "<table class='list_table'>\n";
    echo "<tr><th>" . $tbl_tong_depot[1][0] . "</th><th style='width:70px;'>" . $tbl_tong_depot[1][1] . "</th><th style='width:70px;'>" . $tbl_tong_depot[1][2] . "</th><th style='width:30px;'>" . $tbl_tong_depot[1][3] . "</th><th style='width:30px;'>" . $tbl_tong_depot[1][4] . "</th><th style='width:50px;'>" . $tbl_sys_msg["act"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        $row[0] = Lan_Item_GetDisplayName(Local2UTF8($row[0]));
        echo sprintf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%d</td><td>%d</td><td><input type='button' onclick=\"del('%d','%s','%d','%d','%d')\" value='" . $tbl_sys_msg["delete"] . "'/></td></tr>\n", $row[0], $bid2type[$row[1]], $tbl_tong_page[$row[2]], $row[3], $row[4], $row[1], $row[0], $row[4], $row[2], $row[3]);
    }
    echo "</table>\n";
    echo $str;
    if ($var["page"] == null || $var["page"] == "") {
        echo "</div>\n";
        ReturnAndBack();
    }
    return true;
}
コード例 #14
0
ファイル: BulletinMgr.php プロジェクト: svn2github/ybtx
function ListBulletin($var, $gm)
{
    global $page_main, $tbl_sys_msg, $tbl_list_bulletin_state, $tbl_game_server;
    if ($var["page"] == null || $var["page"] == "") {
        $strjs = <<<_strjs
\t<script type="text/javascript" src="/js/page.js"></script>
\t<script type="text/javascript">
\tfunction View(id){
\t\tdocument.form1.action_name.value='83';
\t\tdocument.form1.id.value=id;
\t\tdocument.form1.submit();
\t}
\tfunction Delete(id){
\t\tdocument.form1.target = "_blank";
\t\tdocument.form1.action_name.value='84';
\t\tdocument.form1.id.value=id;
\t\tdocument.form1.submit();
\t}
\t</script>
_strjs;
        echo $strjs . "\n";
        form($var, $gm);
        echo "<input type='hidden' name='id'/>\n";
        echo "</form>\n";
    }
    $serverid = $var["server_id"];
    $serv_id = intval($var["serverindex"]);
    $query = "select ga_id, begin_time, end_time, step, title, state, serverid from tbl_gm_anousment where serverid in (" . implode(",", $serverid) . ") order by ga_id desc";
    page($var, $query, 81, "GMS", 0, $result, $page, $desc);
    echo "<table class='list_table'>\n";
    echo "<tr><th style='width:120px;'>" . $page_main["begin_time"] . "</th><th style='width:120px;'>" . $page_main["end_time"] . "</th><th style='width:60px;'>" . $page_main["step"] . "</th><th>" . $page_main["title"] . "</th><th style='width:40px;'>" . $tbl_sys_msg["status"] . "</th><th>" . $page_main["select_server"] . "</th><th style='width:150px;'>" . $tbl_sys_msg["act"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        printf("<tr><td>%s</td><td>%s</td><td>%d</td><td>%s</td><td>%s</td><td>%s</td><td>%s%s</td></tr>\n", $row[1], $row[2], $row[3], $row[4], $tbl_list_bulletin_state[$row[5]], $tbl_game_server[$row[6]][2], hasAuth(83, $gm) ? "<input type=button value='" . $tbl_sys_msg["detail"] . "' onclick='View(" . $row[0] . ")'/>" : "", hasAuth(84, $gm) ? "<input type=button value='" . $tbl_sys_msg["delete"] . "' onclick='Delete(" . $row[0] . ")'/>" : "");
    }
    echo "</table>\n";
    echo $page;
    if ($var["page"] == null || $var["page"] == "") {
        echo "</div>\n";
        ReturnAndBack();
    }
    return true;
}
コード例 #15
0
ファイル: UserRoleList.php プロジェクト: svn2github/ybtx
function RoleSearch($var, $gm)
{
    global $tbl_role_search, $tbl_class, $tbl_camp, $tbl_sys_msg, $page_main;
    if ($var["serverindex"] == "") {
        echo "<script type=\"text/javascript\" src=\"/js/checkbox.js\" ></script>\n";
        echo "<script type=\"text/javascript\" src=\"/js/page.js\" ></script>\n";
        $js_str = <<<_js_str
<script type="text/javascript">
function OnClick(role_name,obj){
\tdocument.form1.target = "_self";
\tdocument.form1.serverid.value = \$(obj).parents(".panel").attr("id").substring(4);
\tdocument.form1.action_name.value = '97';
\tdocument.form1.role_name.value = role_name;
\tdocument.form1.submit();
}
</script>
_js_str;
        echo $js_str;
        form($var, $gm);
        echo "<input type='hidden' name='role_name' />\n";
        echo "<h1>" . $tbl_role_search[0] . "</h1>\n";
        checkbox(false, true);
        ReturnAndBack();
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        echo "</form>\n";
        return $ret;
    }
    $role_name = ArgRoleName();
    $serv_id = $var["serverindex"];
    $query = "select c.c_sName, us.us_sName, cb.cb_uLevel, ifnull(co_uOnServerId,0), cs.cs_uClass, cs.cs_uCamp, cs.cs_dtCreateDate, co.co_dtLastLoginTime from tbl_char c, tbl_char_static cs, tbl_user_static us, tbl_char_basic cb, tbl_char_onlinetime co left join tbl_char_online con on con.cs_uId = co.cs_uId where c.cs_uId = cs.cs_uId and cs.us_uId = us.us_uId and cs.cs_uId = cb.cs_uId and cs.cs_uId = co.cs_uId and c.c_sName like '%{$role_name}%'";
    page($var, $query, 193, "Game", $serv_id, $result, $page, $desc);
    echo $desc;
    echo "<table class='list_table'>\n";
    echo "<tr><th style=\"text-align:left;\"><input type=\"checkbox\" onclick=\"checkboxAll(this,'role')\" />" . $page_main["role_name"] . "</th>\n<th style=\"text-align:left;\"><input type=\"checkbox\" onclick=\"checkboxAll(this,'user')\" />" . $page_main["user_name"] . "</th>\n<th>" . $page_main["level"] . "</th>\n<th>" . $tbl_sys_msg["online"] . "/" . $tbl_sys_msg["offline"] . "</th>\n<th>" . $tbl_sys_msg["class"] . "</th>\n<th>" . $page_main["camp"] . "</th><th>" . $tbl_sys_msg["CreateTime"] . "</th><th>" . $tbl_sys_msg["LastLoginTime"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        printf("<tr><td><input type=\"checkbox\" onclick=\"Checkbox(this)\" flag=\"role\" value='%s' /><a href='#' onclick='OnClick(\"%s\",this)'>%s</a></td><td><input type=\"checkbox\" onclick=\"Checkbox(this)\" flag=\"user\" value='%s' />%s</td><td>%d</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $row[0], $row[0], $row[0], $row[1], $row[1], $row[2], $row[3] != 0 ? $tbl_sys_msg["online"] : $tbl_sys_msg["offline"], $tbl_class[$row[4]], $tbl_camp[$row[5]], $row[6], $row[7]);
    }
    echo $page;
    echo "</table>\n";
    return true;
}
コード例 #16
0
ファイル: RoleDetail.php プロジェクト: svn2github/ybtx
function GetRoleAllDetail($var, $gm)
{
    global $tbl_role_all_detail, $tbl_sys_msg;
    $serverid = $var["serverid"];
    $js_str = <<<_js_str
<script type="text/javascript">
function toItem(){
\tdocument.form1.action_name.value = "201";
\tdocument.form1.submit();
}
function toFriend(){
\tdocument.form1.action_name.value = "199";
\tdocument.form1.submit();
}
function toRealTime(){
\tdocument.form1.action_name.value = "204";
\tdocument.form1.submit();
}
</script>
_js_str;
    echo $js_str . "\n";
    echo "<h1>{$tbl_role_all_detail['10']}</h1>\n";
    ReturnAndBack();
    Reload();
    form($var, $gm);
    $role_id = ArgRoleId();
    echo "<input type='hidden' name='role_str' value='" . $var["role_str"] . "'/>";
    echo "<input type='hidden' name='role_item' value='" . $var["role_item"] . "'/>";
    echo "<table class='list_table'>\n";
    echo sprintf("<tr><td>{$tbl_role_all_detail['0']}</td></tr>\n", ArgRoleName() . "(" . $role_id . ")");
    echo "<tr><td><a href='#' onclick='toItem()'>{$tbl_role_all_detail['15']}</a></td></tr>\n";
    echo "<tr><td><a href='#' onclick='toFriend()'>{$tbl_role_all_detail['16']}</a></td></tr>\n";
    echo "</table>\n";
    echo "</form>\n";
    echo "<h2>{$tbl_role_all_detail['1']}</h2>\n" . GetRoleDetail($role_id, $serverid);
    echo "<h2>{$tbl_role_all_detail['19']}</h2>\n" . GetRoleLogin($role_id, $serverid);
    echo "<h2>{$tbl_role_all_detail['2']}</h2>\n" . GetRoleLocation($role_id, $serverid);
    echo "<h2>{$tbl_role_all_detail['11']}</h2>\n" . GetRoleSort($role_id, $serverid);
    echo "<h2>{$tbl_role_all_detail['12']}</h2>\n" . GetRoleAppellation($role_id, $serverid);
    echo "<h2>{$tbl_role_all_detail['6']}</h2>\n" . GetRoleSkill($role_id, $serverid);
    return true;
}
コード例 #17
0
ファイル: TalkMgr.php プロジェクト: svn2github/ybtx
function ChannelChatAll($var, $gm)
{
    global $tbl_serv_db, $tbl_game_server, $tbl_sys_msg;
    echo "<script type='text/javascript' src='/js/page.js'></script>\n";
    echo "<script type='text/javascript' src='/js/checkbox.js'></script>\n";
    $jsstr = <<<_jsstr
<script type="text/javascript">
function re_load(){
\t\$(".panel").each(function(){
\t\tvar ins = \$(this).find("table");
\t\tif(\$(ins).find("tbody").html()!=null)
\t\t\tins = \$(ins).find("tbody");
\t\tvar last_dt = \$("#ldt").val();
\t\tvar url = "/cgi-bin/gm_tools/FrameWork.php?UID=%s&action_name=209&serv_id="+\$(this).attr("id").substring(4)+"&last_dt="+last_dt;
\t\t\$.ajax({
\t\t\turl: url,
\t\t\tdata: "serv_id="+\$(this).attr("id").substring(4)+"&last_dt="+last_dt,
\t\t\tsuccess: function(msg) {
\t\t\t\tvar s = msg.indexOf("_start_");
\t\t\t\tvar m = msg.indexOf(">|+|+|<");
\t\t\t\tvar ndt = msg.substring(m+7);
\t\t\t\tvar str = msg.substring(s+7,m);
\t\t\t\t\$(ins).append(str);
\t\t\t\t\$("#ldt").val(ndt);
\t\t\t}
\t\t});
\t});
}

setInterval("re_load()",10000);
</script>
_jsstr;
    printf($jsstr, $var["UID"]);
    form($var, $gm);
    ReturnAndBack();
    $serv_id = implode(",", $var["server_id"]);
    echo "<div class='panel' id = 'div_{$serv_id}'>\n";
    echo "<input type='hidden' id='ldt' value='" . date("Y-m-d H:i:s") . "' />\n";
    echo "<table class='list_table'>\n";
    echo "</table>\n";
    echo "</div>\n";
    Reload();
    ReturnAndBack();
    echo "</form>\n";
    return true;
}
コード例 #18
0
ファイル: ShowNotice.php プロジェクト: svn2github/ybtx
				border-width:0px 1px 1px 0px;
			}
			ul, ol {
				margin: 0px;
				padding: 0px;
				padding-left: 22px;
			}
		</style>
	</head>
	<body>
		<h1><?php 
echo $page_action_name["ShowNotice"];
?>
</h1>
<?php 
ReturnAndBack();
if ($flag == "delete") {
    $qs = "delete from tbl_gm_tools_notice_unread where gmn_uId = {$id} and gms_sName = (select gm_name from tbl_session where UID = '{$UID}')";
    $rs = MySQLQuery($qs, "GMS");
    PrintNotice($tbl_sys_msg["success"]);
} else {
    $qs = "select gmn_sTitle, gmn_sContent, gmn.gms_sName, gmn_dDate from tbl_gm_tools_notice gmn, tbl_gm_tools_notice_unread gmnr, tbl_session gms where gmn.gmn_uId = gmnr.gmn_uId and gmnr.gms_sName = gms.gm_name and gms.UID = '{$UID}' and gmn.gmn_uId = {$id}";
    $rs = MySQLQuery($qs, "GMS");
    if ($row = mysql_fetch_row($rs)) {
        ?>
		<form method="post" name="form1">
			<input type="hidden" name="UID" value="<?php 
        echo $UID;
        ?>
" />
			<input type="hidden" name="id" value="<?php 
コード例 #19
0
ファイル: Auth.php プロジェクト: svn2github/ybtx
function AuthMgrFun($var, $gm)
{
    global $page_main;
    $user = $var["user"];
    echo "<table class=\"list_table\">\n";
    echo "<tr><td>" . $page_main["user_name"] . ": " . $user . "</td></tr>\n";
    echo "</table>";
    ReturnAndBack();
    MySQLQuery("delete from tbl_session_action where gm_name = '{$user}'", "GMS");
    $right = $var["right"];
    foreach ($right as $r) {
        MySQLQuery("insert into tbl_session_action values({$r},'{$user}')", "GMS");
    }
    return true;
}
コード例 #20
0
ファイル: AnyliseLog.php プロジェクト: svn2github/ybtx
function ShowVirWealthLog_ModulusChange($var, $gm)
{
    global $tbl_log_db, $tbl_sys_msg, $tbl_serv_db, $page_main, $tbl_modulus_type;
    if ($var["download"] == "true") {
        $tname = gmmktime();
        $filename = "../../" . $tname . ".csv";
        $file = fopen($filename, "w");
    } else {
        LastLogTime();
    }
    $server_id = $var["serverid"];
    $type = intval($var["type"]);
    $str = "";
    if ($var["begin_time"] != null && $var["begin_time"] != "") {
        $str .= " and lcesm_dtChangeTime >= '" . $var["begin_time"] . "'";
    }
    if ($var["end_time"] != null && $var["end_time"] != "") {
        $str .= " and lcesm_dtChangeTime <= '" . $var["end_time"] . "'";
    }
    if ($type != 0) {
        $str .= " and lcesm_uModulusType = " . $type;
    }
    $role_id = ArgRoleId();
    if (!$role_id) {
        return true;
    }
    if ($var["download"] == "true") {
        fwrite($file, "\"" . UTF82Local(implode("\",\"", array($tbl_sys_msg["time"], $page_main["type"], $page_main["number"])) . "\"\n"));
    } else {
        echo "<table class='list_table'>\n";
        printf("<tr><th style='width:120px;'>%s</th><th>%s</th><th>%s</th></tr>\n", $tbl_sys_msg["time"], $page_main["type"], $page_main["number"]);
    }
    $qs = "select lcesm_dtChangeTime, lcesm_uModulusType, lcesm_uModulusValue from tbl_log_char_exp_soul_modulus where lcs_uId = {$role_id}" . $str . " order by lcesm_dtChangeTime";
    $result = MySQLQuery($qs, "Log", $server_id);
    while ($row = mysql_fetch_row($result)) {
        if ($var["download"] == "true") {
            fwrite($file, UTF82Local("\"" . implode("\",\"", array($row[0], $tbl_modulus_type[$row[1]], $row[2])) . "\"\n"));
        } else {
            echo sprintf("<tr" . ($i++ % 2 == 0 ? "" : " class='even'") . "><td>%s</td><td>%s</td><td><pre>%s</pre></td></tr>\n", $row[0], $tbl_modulus_type[$row[1]], $row[2]);
        }
    }
    if ($var["download"] == "true") {
        global $page_action_name;
        fclose($file);
        echo "<script>\n";
        echo "window.location.href='../../cgi-bin/gm_tools/download.php?file={$tname}&display=" . $page_action_name[$var["action_name"]] . "';\n";
        echo "</script>\n";
    } else {
        echo "</table>\n";
        echo "<table class='list_table'><tr><td><a href='" . get_http_args() . "&download=true' target='_blank'>" . $tbl_sys_msg["download"] . "</a></td></tr></table>\n";
        ReturnAndBack();
    }
    return true;
}
コード例 #21
0
ファイル: CorpsMember.php プロジェクト: svn2github/ybtx
function GetTongMember($var, $gm)
{
    $id = intval($var["id"]);
    global $tbl_sys_msg;
    $serverid = intval($var["serverid"]);
    $qs = "";
    if ($var["role_name"] != null && $var["role_name"] != "") {
        $qs = " and c.c_sName like '%" . $var["role_name"] . "%'";
    }
    $query = "select c.c_sName, c.cs_uId, cb.cb_uLevel, mt.mt_sPosition, tp.tp_uProffer, mt.mt_dtJoinTime from tbl_tong t, tbl_member_tong mt, tbl_char c left join tbl_tong_proffer tp on tp.cs_uId = c.cs_uId, tbl_char_basic cb where c.cs_uId = mt.cs_uId and mt.t_uId = t.t_uId and cb.cs_uId=c.cs_uId and t.t_uid='{$id}'" . $qs . " order by mt.mt_sPosition desc";
    page($var, $query, 64, "Game", $serverid, $result, $str, $desc);
    $tbl_content = array();
    while ($row = mysql_fetch_row($result)) {
        $tbl_size = count($tbl_content);
        $tbl_content[$tbl_size] = $row;
    }
    if ($var["page"] == null || $var["page"] == "") {
        $js_src = <<<_js_src
<script type="text/javascript" src="/js/page.js"></script>
<script type="text/javascript" src="/js/checkbox.js"></script>
<script type="text/javascript">
<!--//
function OnClick(role_name){
\tdocument.form1.action_name.value = '97';
\tdocument.form1.role_name.value = role_name;
\tdocument.form1.submit();
}
function doremove(role_name,role_id){
\tvar reason = prompt("%s","");
\tif(reason==null) return;
\tdocument.form1.target = "block";
\tdocument.form1.reason.value = reason;
\tdocument.form1.action_name.value = '170';
\tdocument.form1.role_name.value = role_name;
\tdocument.form1.role_id.value = role_id;
\tdocument.form1.submit();
}
function dochange(obj,role_name,role_id,now_type){
\tvar new_type = \$(obj).parents("tr").find("select").val();
\tif(new_type==now_type) return;
\tdocument.form1.position.value = new_type;
\tdocument.form1.o_position.value = now_type;
\tvar reason = prompt("%s","");
\tif(reason==null) return;
\tdocument.form1.target = "block";
\tdocument.form1.reason.value = reason;
\tdocument.form1.action_name.value = '171';
\tdocument.form1.role_name.value = role_name;
\tdocument.form1.role_id.value = role_id;
\tdocument.form1.submit();
}
function OnSearch(){
\tvar query = \$("#role_name_str").val();
\tvar url_str = \$(".panel").find("input[name='url']").val();
\tvar panel = \$(".panel");
\t\$(panel).css("height",\$(panel).height());
\t\$(panel).html("Loading...");
\t\$.ajax({
\t\ttype:"get",
\t\turl:url_str,
\t\tdata:"page=1&role_name="+query+"&rand=%d",
\t\tsuccess:function(msg){
\t\t\t\$(panel).html(msg);
\t\t\t\$(panel).css("height","auto");
\t\t}
\t});
}
</script>
_js_src;
        echo sprintf($js_src . "\n", $tbl_sys_msg["reason"], $tbl_sys_msg["reason"], rand(0, 100));
        form($var, $gm);
        checkbox(false, true);
        echo "<input type='hidden' name='role_name'/>\n";
        echo "<input type='hidden' name='role_id'/>\n";
        echo "<input type='hidden' name='position'/>\n";
        echo "<input type='hidden' name='o_position'/>\n";
        echo "<input type='hidden' name='reason'/>\n";
        echo "<input type='hidden' name='id' value='" . $var["id"] . "'/>\n";
        ReturnAndBack();
        echo "<h2>" . $tbl_sys_msg["search"] . "</h2>\n";
        echo "<table class='list_table'><tr><td><input type='text' id='role_name_str'/><input type='button' onclick='OnSearch()' value='" . $tbl_sys_msg["search"] . "'/></td></tr></table>\n";
        echo "<div class='panel'>\n";
    }
    echo $desc;
    RetTongMember($tbl_content, $var, $str, $serverid);
    if ($var["page"] == null || $var["page"] == "") {
        echo "</div>\n";
        ReturnAndBack();
        echo "</form>\n";
    }
    return true;
}
コード例 #22
0
ファイル: GetItemUseLimit.php プロジェクト: svn2github/ybtx
function GetObjDropLimit($var, $gm)
{
    global $page_main, $tbl_sys_msg;
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        $js_src = <<<_js_src
<script type="text/javascript">
function DelObjDropLimit(item_name,obj)
{
\tdocument.form1.target = "block";
\tdocument.form1.action_name.value = '152';
\tdocument.form1.item_name.value = item_name;
\tdocument.form1.serverid.value = \$(obj).parents(".panel").attr("id").substring(4);
\tdocument.form1.submit();
}
</script>
_js_src;
        echo $js_src . "\n";
        form($var, $gm);
        echo "<input type='hidden' name='item_name'/>";
        echo "</form>\n";
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        return $ret;
    } else {
        $serverid = intval($var["serverindex"]);
    }
    $query_string = "select odl_sObjName from tbl_obj_drop_limit";
    $result = MySQLQuery($query_string, "Game", $serverid);
    echo "<table class='list_table'>\n";
    echo "<tr><th>" . $page_main["item"] . "</th><th>" . $tbl_sys_msg["act"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        $func_str = sprintf("<input type=button value='%s' onclick='DelObjDropLimit(\"%s\",this)'/>", $tbl_sys_msg["cancel"], Local2UTF8($row[0]));
        echo sprintf("<tr" . ($i % 2 == 0 ? "" : " class='even'") . "><td align='center'>%s</td><td align='center'>%s</td></tr>\n", Local2UTF8($row[0]), $func_str);
    }
    echo "</table>\n";
    return true;
}
コード例 #23
0
ファイル: GetAllCompensate.php プロジェクト: svn2github/ybtx
function GetAllCompensate($var, $gm)
{
    global $page_action_name, $page_main, $tbl_sys_msg, $tbl_game_server;
    if ($var["serverindex"] == null || $var["serverindex"] == "" and $var["flag"] == "" and $var["role_name"] == "") {
        $strjs = <<<_strjs
<script type="text/javascript" src="/js/page.js"></script>
<script type="text/javascript">
function pass(obj,id){
\tdocument.form1.action_name.value='54';
\tdocument.form1.id.value=id;
\tdocument.form1.serverid.value = \$(obj).parents(".panel").attr("id").substring(4);
\tdocument.form1.target='_block';
\tdocument.form1.submit();
}
function cancel(obj,id)
{
\tdocument.form1.action_name.value='55';
\tdocument.form1.id.value=id;
\tdocument.form1.serverid.value = \$(obj).parents(".panel").attr("id").substring(4);
\tdocument.form1.target='_block';
\tdocument.form1.submit();
}
function pass_all(){
\tdocument.form1.action_name.value='54';
\tdocument.form1.target='_block';
\tdocument.form1.submit();
}
function cancel_all(){
\tdocument.form1.action_name.value='55';
\tdocument.form1.target='_block';
\tdocument.form1.submit();
}
</script>
_strjs;
        echo $strjs . "\n";
        echo "<script type='text/javascript' src='/js/page.js'></script>\n";
        echo "<script type='text/javascript' src='/js/log_info.js'></script>\n";
        echo "<script type='text/javascript' src='/js/checkbox.js'></script>\n";
        form($var, $gm);
        checkbox(true, true);
        echo "<input type='hidden' name='flag' />\n";
        echo "<input type='hidden' name='role_name' />\n";
        echo "<input type='hidden' name='str' />\n";
        echo "<input type='hidden' name='urs' />\n";
        echo "<input type='hidden' name='id'/>\n";
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        echo "</form>\n";
        return $ret;
    } else {
        $serv_id = intval($var["serverindex"]);
    }
    $filter = "";
    if ($var["flag"] != "" || $var["role_name"] != "") {
        $filter = " and";
        if ($var["flag"] != "") {
            $filter .= " reason like '%#[" . $var["flag"] . "[%'";
        }
        if ($var["flag"] != "" && $var["role_name"] != "") {
            $filter .= " and";
        }
        if ($var["role_name"] != "") {
            $k = $var["role_name"];
            $filter .= " (reason like '%[" . $k . ",%' or reason like '%," . $k . "]%' or reason like '%," . $k . ",%' or reason like '%[" . $k . "]%')";
        }
    }
    $query_string = "select gca_uId, gm, action_id, reason from tbl_gm_compensate_action where action_state = 1 and server_id = '{$serv_id}'" . $filter . " order by gca_uId desc";
    page($var, $query_string, 53, "GMS", 0, $result, $page, $desc);
    echo "<table class='list_table'>\n";
    echo "<tr><th style='width:60px;'>" . $page_main["user_name"] . "</th><th style='width:120px;'>" . $page_main["event_type"] . "</th><th>" . $tbl_sys_msg["desc"] . "</th><th style='width:120px;'>" . $tbl_sys_msg["act"] . "</th><th>" . $tbl_sys_msg["server"] . "</th></tr>\n";
    while ($row = mysql_fetch_row($result)) {
        printf("<tr><td align='center'>%s</td><td><input type='checkbox' name='ids[]' value='%d_%d'/>%s</td><td>%s</td><td align='center'>%s%s</td><td>%s</td></tr>\n", $row[1], $row[0], $serv_id, GetGMCommandLogAction($row[2]), LogInfo($row[3]), hasAuth(54, $gm) ? "<input type=button value='" . $tbl_sys_msg["pass"] . "' onclick='pass(this," . $row[0] . ")'/>" : "", hasAuth(55, $gm) ? "<input type=button value='" . $tbl_sys_msg["cancel"] . "' onclick='cancel(this," . $row[0] . ")'/>" : "", $tbl_game_server[$serv_id][2]);
    }
    echo "</table>\n";
    echo "<table class='list_table'>\n";
    echo "<tr><td>";
    if (HasAuth(54, $gm)) {
        echo "<input type='button' onclick='pass_all()' value='" . $page_action_name[54] . "' />";
    }
    if (HasAuth(55, $gm)) {
        echo "<input type='button' onclick='cancel_all()' value='" . $page_action_name[55] . "' />";
    }
    echo "</td></tr>\n";
    echo "</table>\n";
    echo $page;
    return true;
}
コード例 #24
0
ファイル: ServerMgr.php プロジェクト: svn2github/ybtx
function GetServerDate($var, $gm)
{
    global $tbl_get_server_date;
    if ($var["serverindex"] == null || $var["serverindex"] == "") {
        ReturnAndBack();
        $ret = eachServerFrame($var, $gm);
        ReturnAndBack();
        return $ret;
    }
    $serverid = $var["serverindex"];
    global $tbl_game_server;
    $gas_host = $tbl_game_server[$serverid][0];
    $gas_port = $tbl_game_server[$serverid][1];
    $param = array();
    $ret = PostData($gas_host, $gas_port, "GetServerDate", $param);
    echo "<table class='form_table'>\n";
    printf("<tr><th>%s</th><td>%s<td></tr>\n", $tbl_get_server_date, Local2UTF8($ret));
    echo "</table>\n";
    return true;
}