当前位置: 首页>>代码示例>>PHP>>正文


PHP makebutton函数代码示例

本文整理汇总了PHP中makebutton函数的典型用法代码示例。如果您正苦于以下问题:PHP makebutton函数的具体用法?PHP makebutton怎么用?PHP makebutton使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了makebutton函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: search

function search()
{
    global $lang_global, $output, $itemperpage, $item_datasite, $mangos_db, $characters_db, $realm_id, $sql_search_limit;
    wowhead_tt();
    if (!isset($_GET['search_value']) || !isset($_GET['search_by'])) {
        redirect("mail_on.php?error=2");
    }
    $sql = new SQL();
    $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    $search_value = $sql->quote_smart($_GET['search_value']);
    $search_by = $sql->quote_smart($_GET['search_by']);
    $search_menu = array('sender', 'receiver');
    // if (!array_key_exists($search_by, $search_menu)) $search_by = 'sender';
    $start = isset($_GET['start']) ? $sql->quote_smart($_GET['start']) : 0;
    $order_by = isset($_GET['order_by']) ? $sql->quote_smart($_GET['order_by']) : "id";
    $dir = isset($_GET['dir']) ? $sql->quote_smart($_GET['dir']) : 1;
    $order_dir = $dir ? "ASC" : "DESC";
    $dir = $dir ? 0 : 1;
    $temp = $sql->query("SELECT guid FROM `characters` WHERE name like '%{$search_value}%'");
    $search_value = $sql->result($temp, 0, 'guid');
    $query_1 = $sql->query("SELECT count(*) FROM `mail`");
    $query = $sql->query("SELECT a.id, a.messageType, a.sender, a.receiver, a.subject, a.itemTextId, a.has_items, a.money, a.cod, a.checked, b.item_template\r\n            FROM mail a\r\n            INNER JOIN mail_items b ON a.id = b.mail_id\r\n            WHERE {$search_by} = {$search_value}\r\n            ORDER BY {$order_by} {$order_dir} LIMIT {$start}, {$itemperpage}");
    $this_page = $sql->num_rows($query);
    $all_record = $sql->result($query_1, 0);
    $total_found = $sql->num_rows($query);
    //==========================top page navigation starts here========================
    $output .= "<center><table class=\"top_hidden\">\r\n    <tr><td>\r\n            <table class=\"hidden\">\r\n                <tr><td>\r\n            <form action=\"mail_on.php\" method=\"get\" name=\"form\">\r\n            <input type=\"hidden\" name=\"action\" value=\"search\" />\r\n            <input type=\"hidden\" name=\"error\" value=\"4\" />\r\n            <input type=\"text\" size=\"45\" name=\"search_value\" />\r\n            <select name=\"search_by\">\r\n                <option value=\"sender\">Sender</option>\r\n                <option value=\"receiver\">Receiver</option>\r\n            </select></form></td><td>";
    makebutton($lang_global['search'], "javascript:do_submit()", 80);
    $output .= "</td></tr></table>\r\n            <td align=\"right\">";
    $output .= generate_pagination("mail_on.php?action=search&amp;order_by={$order_by}&amp;dir=" . !$dir, $all_record, $itemperpage, $start);
    $output .= "</td></tr></table>";
    //==========================top page navigation ENDS here ========================
    $output .= "<table class=\"lined\">\r\n  <tr>\r\n    <th width=\"5%\">ID</th>\r\n    <th width=\"5%\">Source</th>\r\n    <th width=\"10%\">Sender</th>\r\n    <th width=\"10%\">Receiver</th>\r\n    <th width=\"15%\">Subject</th>\r\n    <th width=\"5%\">Has Items</th>\r\n    <th width=\"25%\">Text</th>\r\n    <th width=\"15%\">Money</th>\r\n    <th width=\"5%\">Checked</th>\r\n  </tr>";
    while ($mail = $sql->fetch_array($query)) {
        $g = floor($mail[7] / 10000);
        $mail[7] -= $g * 10000;
        $s = floor($mail[7] / 100);
        $mail[7] -= $s * 100;
        $c = $mail[7];
        $money = "";
        if ($mail[7] > 0) {
            $money = $g . "<img src=\"./img/gold.gif\" /> " . $s . "<img src=\"./img/silver.gif\" /> " . $c . "<img src=\"./img/copper.gif\" /> ";
        }
        $output .= "<tr valign=top>\r\n                    <td>{$mail['0']}</td>\r\n                    <td>" . get_mail_source($mail[1]) . "</td>\r\n                    <td><a href=\"char.php?id={$mail['2']}\">" . get_char_name($mail[2]) . "</a></td>\r\n                    <td><a href=\"char.php?id={$mail['3']}\">" . get_char_name($mail[3]) . "</a></td>\r\n                    <td>{$mail['4']}</td>\r\n            ";
        $output .= "<td>";
        $output .= "\r\n                    <a style=\"padding:2px;\" href=\"{$item_datasite}{$mail[10]}\" target=\"_blank\">\r\n                      <img class=\"bag_icon\" src=\"" . get_item_icon($mail[10]) . "\" alt=\"\" />\r\n                  </a>";
        //maketooltip("<img src=\"./img/up.gif\" alt=\"\">", $item_datasite{$mail[10]}, $mail[10], "item_tooltip", "target=\"_blank\"");
        $output .= "</td>";
        $output .= "<td>" . get_mail_text($mail[5]) . "</td>\r\n                        <td>{$money}</td>\r\n        <td>" . get_check_state($mail[9]) . "</td>\r\n                   </tr>";
    }
    /*--------------------------------------------------*/
    $output .= "<tr><td colspan=\"6\" class=\"hidden\" align=\"right\">All Mails: {$all_record}</td></tr>\r\n </table></center>";
    $sql->close();
}
开发者ID:TheProjecter,项目名称:mmfm,代码行数:54,代码来源:mail_on.php

示例2: char_achievements


//.........这里部分代码省略.........
			%%REPLACE_POINTS%%
			<td align="right">
				<form action="char_achieve.php?id=' . $id . '&amp;realm=' . $realmid . '" method="post" name="form">
					' . $lang_char['show'] . ' :
						<select name="show_type">
							<option value="1"';
            if (1 == $show_type) {
                $output .= '
								selected="selected"';
            }
            $output .= '
								>' . $lang_char['all'] . '
							</option>
							<option value="0"';
            if (0 == $show_type) {
                $output .= '
								selected="selected"';
            }
            $output .= '
								>' . $lang_char['earned'] . '
							</option>
							<option value="2"';
            if (2 == $show_type) {
                $output .= '
								selected="selected"';
            }
            $output .= '
								>' . $lang_char['incomplete'] . '
							</option>
						</select>
				</form>
			</td>
		<td align="right">';
            makebutton('View', 'javascript:do_submit()', 130);
            $output .= '
		</td>
	</tr>
</table>
<table class="lined" style="width: 90%;">
	<tr valign="top">
		<td width="30%">
			<table class="hidden" style="width: 100%">
				<tr>
					<th align="left">
						<div id="divsummary" onclick="expand(\'tsummary\')">[-] ' . $lang_char['summary'] . '</div>
					</th>
				</tr>
				<tr>
					<td>
					</td>
				</tr>';
            $result = $sqlc->query('
		SELECT achievement, date
		FROM character_achievement
		WHERE guid = ' . $id . '');
            $char_achieve = array();
            while ($temp = $sqlc->fetch_assoc($result)) {
                $char_achieve[$temp['achievement']] = $temp['date'];
            }
            $result = $sqlc->query('
			SELECT achievement, date
			FROM character_achievement 
			WHERE guid = \'' . $id . '\'
			ORDER BY date DESC
			LIMIT 4');
            $points = 0;
开发者ID:BACKUPLIB,项目名称:minimanager-1,代码行数:67,代码来源:char_achieve.php

示例3: edit_motd

function edit_motd(&$sqlm)
{
    global $output, $lang_motd, $lang_global, $realm_id, $mmfpm_db, $action_permission;
    // minimum permission to view page
    valid_login($action_permission['update']);
    $sqlm = new SQL();
    $sqlm->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']);
    if (empty($_GET['id'])) {
        redirect('motd.php?error=1');
    }
    $id = $sqlm->quote_smart($_GET['id']);
    if (is_numeric($id)) {
    } else {
        redirect('motd.php?error=1');
    }
    $msg = $sqlm->result($sqlm->query('
		SELECT content
		FROM mm_motd
		WHERE id = ' . $id . ''), 0);
    $output .= '
<center>
	<form action="motd.php?action=do_edit_motd" method="post" name="form">
		<input type="hidden" name="id" value="' . $id . '" />
		<table class="top_hidden">
			<tr>
				<td colspan="3">';
    unset($id);
    bbcode_add_editor();
    $output .= '
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<textarea id="msg" name="msg" rows="26" cols="97">' . $msg . '</textarea>
				</td>
			</tr>
			<tr>
				<td>' . $lang_motd['post_rules'] . '</td>
				<td>';
    unset($msg);
    makebutton($lang_motd['post_motd'], 'javascript:do_submit()" type="wrn', 230);
    $output .= '
				</td>
				<td>';
    makebutton($lang_global['back'], 'javascript:window.history.back()" type="def', 130);
    $output .= '
				</td>
			</tr>
		</table>
	</form>
	<br />
</center>';
}
开发者ID:BACKUPLIB,项目名称:Infinity_MaNGOS,代码行数:53,代码来源:motd.php

示例4: lang

          <!-- start of error.php -->
          <div class="center_text">
            <br />
            <table id="error_message_table" class="flat center">
              <tr>
                <td align="center">
                  <h1>
                    <span class="error">
                      <img src="img/warn_red.gif" width="48" height="48" alt="error" />
                      <br />' . lang("error", "error") . '!
                    </span>
                  </h1>
                  <br />' . htmlspecialchars($err) . '<br />
                </td>
              </tr>
            </table>
            <br />
            <table id="error_buttons" class="hidden center">
              <tr>
                <td align="center">';
makebutton(lang("global", "home"), 'index.php', 130);
makebutton(lang("global", "back"), 'javascript:window.history.back()', 130);
unset($err);
$output .= '
                </td>
              </tr>
            </table>
            <br />
          </div>
          <!-- end of error.php -->';
require_once "footer.php";
开发者ID:Refuge89,项目名称:World-of-Warcraft-Trinity-Core-MaNGOS,代码行数:31,代码来源:error.php

示例5: del_guild

function del_guild()
{
    global $lang_guild, $lang_global, $output, $characters_db, $realm_id, $realm_db, $action_permission, $user_lvl, $user_id;
    $sqlr = new SQL();
    $sqlr->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']);
    if (empty($_GET['realm'])) {
        $realmid = $realm_id;
    } else {
        $realmid = $sqlr->quote_smart($_GET['realm']);
        if (!is_numeric($realmid)) {
            $realmid = $realm_id;
        }
    }
    if (isset($_GET['id'])) {
        $id = $_GET['id'];
    } else {
        redirect("guild.php?error=1&amp;realm={$realmid}");
    }
    if (is_numeric($id)) {
    } else {
        redirect("guild.php?error=5&amp;realm={$realmid}");
    }
    $sqlc = new SQL();
    $sqlc->connect($characters_db[$realmid]['addr'], $characters_db[$realmid]['user'], $characters_db[$realmid]['pass'], $characters_db[$realmid]['name']);
    $q_amIguildleader = $sqlc->query("select 1 from guild where guildid = '{$id}' and leaderguid in (select guid from characters where account = '{$user_id}')");
    $amIguildleader = $sqlc->result($q_amIguildleader, 0, '1');
    if ($user_lvl < $action_permission['delete'] && !$amIguildleader) {
        redirect("guild.php?error=6&amp;realm={$realmid}");
    }
    $output .= "\r\n        <center>\r\n          <h1><font class=\"error\">{$lang_global['are_you_sure']}</font></h1>\r\n          <br />\r\n          <font class=\"bold\">{$lang_guild['guild_id']}: {$id} {$lang_global['will_be_erased']}</font>\r\n          <br /><br />\r\n          <form action=\"cleanup.php?action=docleanup\" method=\"post\" name=\"form\">\r\n            <input type=\"hidden\" name=\"type\" value=\"guild\" />\r\n            <input type=\"hidden\" name=\"check\" value=\"-{$id}\" />\r\n            <input type=\"hidden\" name=\"override\" value=\"1\" />\r\n            <table class=\"hidden\">\r\n              <tr>\r\n                <td>";
    makebutton($lang_global['yes'], "javascript:do_submit()\" type=\"wrn", 130);
    $output .= "\r\n                </td>\r\n                <td>";
    makebutton($lang_global['no'], "guild.php?action=view_guild&amp;realm={$realmid}&amp;id={$id}\" type=\"def", 130);
    $output .= '
                </td>
              </tr>
            </table>
          </form>
        </center>
        <br />';
}
开发者ID:brunogcar,项目名称:minimanager,代码行数:41,代码来源:guild.php

示例6: edit_ticket

function edit_ticket()
{
    global $output, $characters_db, $realm_id, $action_permission, $site_encoding, $sql, $core;
    valid_login($action_permission["update"]);
    if (!isset($_GET["id"])) {
        redirect("Location: ticket.php?error=1");
    }
    $id = $sql["char"]->quote_smart($_GET["id"]);
    if (!is_numeric($id)) {
        redirect("ticket.php?error=1");
    }
    if ($core == 1) {
        $query = $sql["char"]->query("SELECT gm_tickets.ticketid AS guid, gm_tickets.playerGuid AS player,\r\n                        gm_tickets.message AS message,\r\n                        `characters`.name AS opener,\r\n                        gm_tickets.deleted AS status, gm_tickets.timestamp AS timestamp\r\n                        FROM gm_tickets\r\n                          LEFT JOIN `characters` ON gm_tickets.playerGuid=`characters`.`guid`\r\n                        WHERE ticketid='" . $id . "'");
    } elseif ($core == 2) {
        $query = $sql["char"]->query("SELECT character_ticket.ticket_id AS guid, character_ticket.guid AS player,\r\n                        character_ticket.ticket_text AS message,\r\n                        op.name AS opener,\r\n                        UNIX_TIMESTAMP(character_ticket.ticket_lastchange) AS timestamp\r\n                        FROM character_ticket\r\n                          LEFT JOIN `characters` AS op ON character_ticket.guid=op.`guid`\r\n                        WHERE character_ticket.ticket_id='" . $id . "'");
    } else {
        $query = $sql["char"]->query("SELECT gm_tickets.guid AS guid, gm_tickets.guid AS player,\r\n                        gm_tickets.message AS message,\r\n                        op.name AS opener, gm.name AS closer,\r\n                        gm_tickets.closedBy AS status, lastModifiedTime AS timestamp\r\n                        FROM gm_tickets\r\n                          LEFT JOIN `characters` AS op ON gm_tickets.guid=op.`guid`\r\n                          LEFT JOIN `characters` AS gm ON gm_tickets.closedBy=gm.`guid`\r\n                        WHERE gm_tickets.guid='" . $id . "'");
    }
    if ($ticket = $sql["char"]->fetch_assoc($query)) {
        $output .= '
          <div id="ticket_edit_field" class="fieldset_border center">
            <span class="legend">' . lang("ticket", "edit_reply") . '</span>
            <form method="post" action="ticket.php?action=do_edit_ticket" id="form">
              <div>
                <input type="hidden" name="id" value="' . $id . '" />
              </div>
              <table class="flat">
                <tr>
                  <td>' . lang("ticket", "id") . '</td>
                  <td>' . $id . '</td>
                </tr>
                <tr>
                  <td>' . lang("ticket", "submitted_by") . ':</td>
                  <td>
                    <a href="char.php?id=' . $ticket["player"] . '">' . htmlentities($ticket["opener"], ENT_COMPAT, $site_encoding) . '</a>
                  </td>
                </tr>
                <tr>
                  <td>' . lang("ticket", "date") . ':</td>
                  <td>' . date('G:i:s m-d-Y', $ticket["timestamp"]) . '</td>
                </tr>
                <tr>
                  <td valign="top">' . lang("ticket", "message") . '</td>
                  <td>
                    <textarea name="new_text" rows="5" cols="40">' . htmlentities($ticket["message"], ENT_COMPAT, $site_encoding) . '</textarea>
                  </td>
                </tr>';
        if ($core == 3) {
            $output .= '
                <tr>
                  <td>' . lang("ticket", "closedby") . ':</td>
                  <td>' . ($ticket["status"] != 0 ? '<a href="char.php?id=' . $ticket["status"] . '">' . htmlentities($ticket["closer"], ENT_COMPAT, $site_encoding) . '</a>' : '') . '</td>
                </tr>';
        }
        $output .= '
                <tr>
                  <td>';
        makebutton(lang("ticket", "update"), "javascript:do_submit()\" type=\"wrn", 140);
        $output .= '
                  </td>
                  <td>';
        // MaNGOS just deletes a ticket to close it
        // so we don't need this button
        if ($core == 2) {
            $output .= '
                    &nbsp;';
        } else {
            if (!$ticket["status"]) {
                makebutton(lang("ticket", "abandon" . ($core == 1 ? "A" : "MT")), 'ticket.php?action=do_mark_ticket&amp;id=' . $id . '" type="wrn', 230);
            } else {
                makebutton(lang("ticket", "abandon" . ($core == 1 ? "A" : "MT")), 'ticket.php', 230);
            }
        }
        $output .= '
                  </td>
                </tr>
                <tr>
                  <td>';
        makebutton(lang("ticket", "send_ingame_mail"), "mail.php?type=ingame_mail&amp;to=" . $ticket["opener"], 140);
        $output .= '
                  </td>
                  <td>';
        makebutton(lang("global", "back"), "javascript:window.history.back()\" type=\"def", 130);
        $output .= '
                  </td>
                </tr>
              </table>
            </form>
            <br />
            <br />
          </div>';
    } else {
        error(lang("global", "err_no_records_found"));
    }
}
开发者ID:GlassFace,项目名称:CoreManager2,代码行数:95,代码来源:ticket.php

示例7: stats


//.........这里部分代码省略.........
    }
    unset($race);
    $output .= '
                      </tr>
                    </table>
                    <br />
                  </td>
                </tr>';
    // RACE END
    // CLASS
    foreach ($class as $id) {
        $class[$id[0]][2] = $sql["char"]->result($sql["char"]->query("SELECT COUNT(guid) FROM characters\n        WHERE class=" . $id[0] . " " . $order_race . " " . $order_level . " " . $order_side . ($action ? " AND online=1" : "")), 0);
        $class[$id[0]][3] = round($class[$id[0]][2] * 100 / $total_chars, 1);
    }
    unset($order_level);
    $output .= '
                <tr align="left">
                  <td>
                    <h1>' . lang("stat", "chars_by_class") . '</h1>
                  </td>
                </tr>
                <tr>
                  <td>
                    <table class="bargraph">
                      <tr>';
    foreach ($class as $id) {
        $height = $class[$id[0]][3] * 4;
        $output .= '
                        <td>
                          <a href="stat.php?action=' . $action . '&amp;class=' . $id[0] . '" class="graph_link">' . $class[$id[0]][3] . '%<img src="themes/' . $theme . '/column.gif" width="69" height="' . $height . '" alt="' . $class[$id[0]][2] . '" /></a>
                        </td>';
    }
    $output .= '
                      </tr>
                      <tr>';
    foreach ($class as $id) {
        $output .= '
                        <th>' . lang("id_tab", $class[$id[0]][1]) . '<br />' . $class[$id[0]][2] . '</th>';
    }
    unset($class);
    $output .= '
                    </tr>
                  </table>
                  <br />
                </td>
              </tr>';
    // CLASS END
    // LEVEL
    foreach ($level as $id) {
        $level[$id[0]][3] = $sql["char"]->result($sql["char"]->query("SELECT COUNT(guid) FROM characters\n        WHERE level>=" . $id[1] . " AND level<=" . $id[2] . "\n        " . $order_race . " " . $order_class . " " . $order_side . ($action ? " AND online=1" : "")), 0);
        $level[$id[0]][4] = round($level[$id[0]][3] * 100 / $total_chars, 1);
    }
    unset($order_level);
    unset($order_class);
    unset($order_race);
    unset($total_chars);
    unset($order_side);
    $output .= '
              <tr align="left">
                <td>
                  <h1>' . lang("stat", "chars_by_level") . '</h1>
                </td>
              </tr>
              <tr>
                <td>
                  <table class="bargraph">
                    <tr>';
    foreach ($level as $id) {
        $height = $level[$id[0]][4] * 4;
        $output .= '
                      <td><a href="stat.php?action=' . $action . '&amp;level=' . $id[1] . '" class="graph_link">' . $level[$id[0]][4] . '%<img src="themes/' . $theme . '/column.gif" width="77" height="' . $height . '" alt="' . $level[$id[0]][3] . '" /></a></td>';
    }
    unset($height);
    $output .= '
                    </tr>
                    <tr>';
    foreach ($level as $id) {
        $output .= '
                          <th>' . $level[$id[0]][1] . '-' . $level[$id[0]][2] . '<br />' . $level[$id[0]][3] . '</th>';
    }
    unset($id);
    unset($level);
    $output .= '
                    </tr>
                  </table>
                  <br />
                  <hr/>
                </td>
              </tr>
              <tr>
                <td>';
    // LEVEL END
    makebutton(lang("stat", "reset"), 'stat.php', 720);
    $output .= '
                </td>
              </tr>
            </table>
          </div>
          <br />';
}
开发者ID:Refuge89,项目名称:World-of-Warcraft-Trinity-Core-MaNGOS,代码行数:101,代码来源:stat.php

示例8: char_pets


//.........这里部分代码省略.........
                        $hap_val = 2;
                    } else {
                        $hap_text = 'Unhappy';
                        $hap_val = 0;
                    }
                    if ($core == 1) {
                        $pet_next_lvl_xp = $pet["next_level_xp"];
                    } else {
                        $pet_next_lvl_xp = floor(char_get_xp_to_level($pet["level"]) / 4);
                    }
                    // this_is_junk: style left hardcoded because it's calculated.
                    $output .= '
                <font class="bold">' . $pet["name"] . ' - lvl ' . char_get_level_color($pet["level"]) . '
                  <a class="ch_pet_padding" onmouseover="oldtoolTip(\'' . $hap_text . '\', \'old_item_tooltip\')" onmouseout="oldtoolTip()"><img src="img/pet/happiness_' . $hap_val . '.jpg" alt="" /></a>
                  <br /><br />
                </font>
                <table class="lined" id="ch_pet_xp">
                  <tr>
                    <td align="right">Exp:</td>
                    <td valign="top" class="bar skill_bar" style="background-position: ' . (round(385 * $pet["cur_xp"] / $pet_next_lvl_xp) - 385) . 'px;">
                      <span>' . $pet["cur_xp"] . '/' . $pet_next_lvl_xp . '</span>
                    </td>
                  </tr>
                  <tr>
                    <td align="right">Pet Abilities:</td>
                    <td align="left">';
                    if ($core == 1) {
                        $ability_results = $sql["char"]->query("SELECT spellid FROM playerpetspells WHERE petnumber='" . $pet["petnumber"] . "' AND flags > 1");
                    } else {
                        $ability_results = $sql["char"]->query("SELECT spell AS spellid FROM pet_spell WHERE guid='" . $pet["petnumber"] . "' AND active > 1");
                    }
                    // active = 0 is unused and active = 1 probably some passive auras, i dont know diference between values 129 and 193, need to check mangos source
                    if ($sql["char"]->num_rows($ability_results)) {
                        while ($ability = $sql["char"]->fetch_assoc($ability_results)) {
                            $output .= '
                      <a class="ch_pet_padding" href="' . $base_datasite . $spell_datasite . $ability["spellid"] . '" target="_blank">
                        <img src="' . spell_get_icon($ability["spellid"]) . '" alt="' . $ability["spellid"] . '" class="icon_border_0" />
                      </a>';
                        }
                    }
                    $output .= '
                    </td>
                  </tr>
                </table>
                <br /><br />';
                }
                unset($ability_results);
                unset($pet_next_lvl_xp);
                unset($happiness);
                unset($pet);
            }
            $output .= '
              </div>
            </div>
            <br />
            <table class="hidden">
              <tr>
                <td>';
            // button to user account page, user account page has own security
            makebutton(lang("char", "chars_acc"), 'user.php?action=edit_user&amp;id=' . $owner_acc_id . '', 130);
            $output .= '
                </td>
                <td>';
            // only higher level GM with delete access can edit character
            //  character edit allows removal of character items, so delete permission is needed
            if ($user_lvl > $owner_gmlvl && $user_lvl >= $action_permission["delete"]) {
                //makebutton($lang_char["edit_button"], 'char_edit.php?id='.$id.'&amp;realm='.$realmid.'', 130);
                $output .= '
                </td>
                <td>';
            }
            // only higher level GM with delete access, or character owner can delete character
            if ($user_lvl > $owner_gmlvl && $user_lvl >= $action_permission["delete"] || $owner_name === $user_name) {
                makebutton(lang("char", "del_char"), 'char_list.php?action=del_char_form&amp;check%5B%5D=' . $id . '" type="wrn', 130);
                $output .= '
                </td>
                <td>';
            }
            // only GM with update permission can send mail, mail can send items, so update permission is needed
            if ($user_lvl >= $action_permission["update"]) {
                makebutton(lang("char", "send_mail"), 'mail.php?type=ingame_mail&amp;to=' . $char["name"] . '', 130);
                $output .= '
                </td>
                <td>';
            }
            makebutton(lang("global", "back"), 'javascript:window.history.back()" type="def', 130);
            $output .= '
                </td>
              </tr>
            </table>
            <br />
          </center>
          <!-- end of char_pets.php -->';
        } else {
            error(lang("char", "no_permission"));
        }
    } else {
        error(lang("char", "no_char_found"));
    }
}
开发者ID:Refuge89,项目名称:World-of-Warcraft-Trinity-Core-MaNGOS,代码行数:101,代码来源:char_pets.php

示例9: delete

function delete()
{
    global $lang_global, $lang_creature, $output, $user_lvl, $action_permission;
    if ($user_lvl < $action_permission['delete']) {
        redirect("creature.php?error=9");
    }
    if (isset($_GET['entry'])) {
        $entry = $_GET['entry'];
    } else {
        redirect("creature.php?error=1");
    }
    $output .= "\r\n                <center>\r\n                    <h1>\r\n                        <font class=\"error\">{$lang_global['are_you_sure']}</font>\r\n                    </h1>\r\n                    <br />\r\n                    <font class=\"bold\">\r\n                        {$lang_creature['creature_template']}: <a href=\"creature.php?action=edit&amp;entry={$entry}\" target=\"_blank\">{$entry}</a>\r\n                        {$lang_global['will_be_erased']}<br />{$lang_creature['all_related_data']}\r\n                    </font>\r\n                    <br /><br />\r\n                    <table class=\"hidden\">\r\n                        <tr>\r\n                            <td>";
    makebutton($lang_global['yes'], "creature.php?action=do_delete&amp;entry={$entry}", 120);
    makebutton($lang_global['no'], "creature.php", 120);
    $output .= "\r\n                            </td>\r\n                        </tr>\r\n                    </table>\r\n                </center>\r\n                <br />";
}
开发者ID:BACKUPLIB,项目名称:minimanager,代码行数:16,代码来源:creature.php

示例10: guild_bank


//.........这里部分代码省略.........
                $output .= '
              <li' . ($current_tab == $i ? ' class="selected"' : '') . '>
                <a href="guildbank.php?id=' . $guild_id . '&amp;tab=' . $i . '&amp;realm=' . $realmid . '">';
                if ($tabs[$i]['TabIcon'] == '') {
                    $output .= '
                  <img src="img/INV/INV_blank_32.gif" class="icon_border_0"';
                } else {
                    // make sure we're looking for the file name with the correct capitalization
                    $ii_query = "SELECT * FROM itemdisplayinfo WHERE LCASE(IconName)='" . strtolower($tabs[$i]["TabIcon"]) . "' LIMIT 1";
                    $ii_result = $sql["dbc"]->query($ii_query);
                    $ii_fields = $sql["dbc"]->fetch_assoc($ii_result);
                    $tabs[$i]["TabIcon"] = $ii_fields["IconName"];
                    if (file_exists($item_icons . "/" . $tabs[$i]["TabIcon"] . ".png")) {
                        $output .= '
                  <img src="' . $item_icons . "/" . $tabs[$i]["TabIcon"] . '.png" class="icon_border_0"';
                    } else {
                        $output .= '
                  <img src="img/INV/INV_blank_32.gif" class="icon_border_0"';
                    }
                }
                if ($tabs[$i]['TabName'] == '') {
                    $output .= ' onmousemove="oldtoolTip(\'' . lang("guildbank", "tab") . ($i + 1) . '\', \'old_item_tooltip\')" onmouseout="oldtoolTip()" alt="" />';
                } else {
                    $output .= ' onmousemove="oldtoolTip(\'' . $tabs[$i]['TabName'] . '\', \'old_item_tooltip\')" onmouseout="oldtoolTip()" alt="" />';
                }
                $output .= '
                </a>
              </li>';
            }
        }
        $output .= '
            </ul>
          </div>
          <div class="tab_content center">';
        if ($core == 1) {
            $result = $sql["char"]->query("SELECT gbi.SlotId, gbi.itemGuid, ii.entry,\r\n        ii.count AS stack_count,\r\n        FROM guild_bankitems gbi\r\n          INNER JOIN playeritems ii ON ii.guid=gbi.itemGuid\r\n        WHERE gbi.guildid='" . $guild_id . "' AND TabID='" . $current_tab . "'");
        } elseif ($core == 2) {
            $result = $sql["char"]->query("SELECT gbi.SlotId, gbi.item_guid AS itemGuid, gbi.item_entry AS entry, \r\n        SUBSTRING_INDEX(SUBSTRING_INDEX(data, ' ', 15), ' ', -1) as stack_count \r\n        FROM guild_bank_item gbi\r\n          INNER JOIN item_instance ii ON ii.guid=gbi.item_guid \r\n        WHERE gbi.guildid='" . $guild_id . "' AND TabID='" . $current_tab . "'");
        } else {
            $result = $sql["char"]->query("SELECT gbi.SlotId, gbi.item_guid AS itemGuid, ii.itemEntry AS entry, \r\n        ii.count as stack_count \r\n        FROM guild_bank_item gbi\r\n          INNER JOIN item_instance ii ON ii.guid=gbi.item_guid \r\n        WHERE gbi.guildid='" . $guild_id . "' AND TabID='" . $current_tab . "'");
        }
        $gb_slots = array();
        while ($tab = $sql["char"]->fetch_assoc($result)) {
            if ($tab["itemGuid"]) {
                $gb_slots[$tab["SlotId"]] = $tab;
            }
        }
        // this_is_junk: style left hardcoded because it's calculated.
        $output .= '
            <table id="guildbank_tabs">
              <tr>
                <td align="center">
                  <div class="bag" style="width:' . (14 * 43 + 2) . 'px; height:' . 7 * 41 . 'px;">';
        $item_position = 0;
        for ($i = 0; $i < 7; ++$i) {
            for ($j = 0; $j < 14; ++$j) {
                $item_position = $j * 7 + $i;
                if (isset($gb_slots[$item_position])) {
                    $gb_item_id = $gb_slots[$item_position]["entry"];
                    $stack = $gb_slots[$item_position]["stack_count"] == 1 ? '' : $gb_slots[$item_position]["stack_count"];
                    // this_is_junk: style left hardcoded because it's calculated.
                    $output .= '
                    <div class="bag_slot" style="left:' . ($j * 43 + 4) . 'px; top:' . ($i * 41 + 4) . 'px;">
                      <a class="guildbank_padding" href="' . $base_datasite . $item_datasite . $gb_item_id . '">
                        <img src="' . get_item_icon($gb_item_id) . '" class="inv_icon" alt="" />
                      </a>
                      <div class="guildbank_quantity_shadow">' . $stack . '</div>
                      <div class="guildbank_quantity">' . $stack . '</div>
                    </div>';
                }
            }
        }
        $output .= '
                  </div>
                </td>
              </tr>
              <tr>
                <td class="hidden" align="right">
                  ' . substr($bank_gold, 0, -4) . '<img src="img/gold.gif" alt="" style="position: relative; bottom: -6px;" />
                  ' . substr($bank_gold, -4, 2) . '<img src="img/silver.gif" alt="" style="position: relative; bottom: -6px;" />
                  ' . substr($bank_gold, -2) . '<img src="img/copper.gif" alt="" style="position: relative; bottom: -6px;" />
                </td>
              </tr>
            </table>
          </div>
          <br />
          <table class="hidden center">
            <tr>
              <td>';
        makebutton(lang("guildbank", "guild"), "guild.php?action=view_guild&amp;realm=" . $realmid . "&amp;error=3&amp;id=" . $guild_id, 130);
        $output .= '
              </td>
            </tr>
          </table>
          <br />';
        unset($bank_gold);
    } else {
        redirect("error.php?err=" . lang("guildbank", "notfound"));
    }
}
开发者ID:GlassFace,项目名称:CoreManager2,代码行数:101,代码来源:guildbank.php

示例11: del_realm

function del_realm()
{
    global $output, $action_permission, $sql;
    valid_login($action_permission["delete"]);
    if (empty($_GET["id"])) {
        redirect("realm.php?error=1");
    }
    $id = $sql["mgr"]->quote_smart($_GET["id"]);
    if (!is_numeric($id)) {
        redirect("realm.php?error=1");
    }
    $output .= '
          <center>
            <h1><font class="error">' . lang("global", "are_you_sure") . '</font></h1>
            <br />
            <font class="bold">' . lang("realm", "realm_id") . ': ' . $id . '<br />' . lang("global", "will_be_erased") . '</font>
            <br /><br />
            <table width="300" class="hidden">
              <tr>
                <td>';
    makebutton(lang("global", "yes"), 'realm.php?action=dodel_realm&amp;id=' . $id . '" type ="wrn', 130);
    makebutton(lang("global", "no"), 'realm.php" type="def', 130);
    unset($id);
    $output .= '
                </td>
              </tr>
            </table>
          </center>';
}
开发者ID:xhaher,项目名称:CoreManager,代码行数:29,代码来源:realm.php

示例12: backup_step2

function backup_step2()
{
    global $lang_backup, $lang_global, $output, $backup_dir, $realm_db, $characters_db;
    if (empty($_GET['backup_action']) || empty($_GET['backup_from_to'])) {
        redirect("backup.php?error=1");
    } else {
        $backup_action = addslashes($_GET['backup_action']);
        $backup_from_to = addslashes($_GET['backup_from_to']);
        $struc_backup = isset($_GET['struc_backup']) ? addslashes($_GET['struc_backup']) : 0;
        $save_all_realms = isset($_GET['save_all_realms']) ? addslashes($_GET['save_all_realms']) : 0;
    }
    $upload_max_filesize = ini_get("upload_max_filesize");
    if (eregi("([0-9]+)K", $upload_max_filesize, $tempregs)) {
        $upload_max_filesize = $tempregs[1] * 1024;
    }
    if (eregi("([0-9]+)M", $upload_max_filesize, $tempregs)) {
        $upload_max_filesize = $tempregs[1] * 1024 * 1024;
    }
    switch ($backup_action) {
        case "load":
            $output .= "\r\n        <center>\r\n            <fieldset class=\"tquarter_frame\">\r\n                <legend>{$lang_backup['select_file']}</legend>\r\n                <br />\r\n                <table class=\"hidden\">";
            switch ($backup_from_to) {
                case "file":
                    $output .= "\r\n                    <tr>\r\n                        <td colspan=\"2\">\r\n                            {$lang_backup['max_file_size']} : {$upload_max_filesize} bytes (" . round($upload_max_filesize / 1024 / 1024) . " Mbytes)\r\n                            <br />\r\n                            {$lang_backup['use_ftp_for_large_files']}.\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td>\r\n                            <form enctype=\"multipart/form-data\" action=\"backup.php?action=dobackup&amp;backup_action={$backup_action}&amp;backup_from_to={$backup_from_to}\" method=\"post\" name=\"form\">\r\n                                <input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"{$upload_max_filesize}\" />\r\n                                <select name=\"use_db\">";
                    foreach ($characters_db as $db) {
                        $output .= "\r\n                                    <option value=\"{$db['name']}\">{$db['name']}</option>";
                    }
                    $output .= "\r\n                                    <option value=\"{$realm_db['name']}\">{$realm_db['name']}</option>\r\n                                </select>\r\n                                <input type=\"file\" name=\"uploaded_file\" />\r\n                            </form>\r\n                        </td>\r\n                        <td>";
                    makebutton($lang_backup['upload'], "javascript:do_submit()", 130);
                    break;
                case "web":
                    $output .= "\r\n                    <tr>\r\n                        <td>\r\n                            <form action=\"backup.php?action=dobackup&amp;backup_action={$backup_action}&amp;backup_from_to={$backup_from_to}\" method=\"post\" name=\"form\">\r\n                                <select name=\"use_db\">";
                    foreach ($characters_db as $db) {
                        $output .= "\r\n                                    <option value=\"{$db['name']}\">{$db['name']}</option>";
                    }
                    $output .= "\r\n                                    <option value=\"{$realm_db['name']}\">{$realm_db['name']}</option>\r\n                                </select>\r\n                                <select name=\"selected_file_name\">";
                    if (is_dir($backup_dir)) {
                        if ($dh = opendir($backup_dir)) {
                            while (($file = readdir($dh)) != false) {
                                if ($file != '.' && $file != '..' && $file != '.htaccess' && $file != 'accounts' && $file != 'index.html') {
                                    $output .= "\r\n                                    <option value=\"{$file}\">{$file}</option>";
                                }
                            }
                            closedir($dh);
                        }
                    }
                    $output .= "\r\n                                </select>\r\n                            </form>\r\n                        </td>\r\n                        <td>";
                    makebutton($lang_backup['go'], "javascript:do_submit()", 130);
                    break;
                case "acc_on_file":
                    $output .= "\r\n                    <tr>\r\n                        <td colspan=\"2\">\r\n                            {$lang_backup['enter_acc_name']}:\r\n                        </td>\r\n                    </tr>\r\n                    <tr>\r\n                        <td>\r\n                            <form action=\"backup.php?action=dobackup&amp;backup_action={$backup_action}&amp;backup_from_to={$backup_from_to}\" method=\"post\" name=\"form\">\r\n                                <select name=\"use_db\">";
                    foreach ($characters_db as $db) {
                        $output .= "\r\n                                    <option value=\"{$db['name']}\">{$db['name']}</option>";
                    }
                    $output .= "\r\n                                    <option value=\"{$realm_db['name']}\">{$realm_db['name']}</option>\r\n                                </select>\r\n                                <select name=\"file_dir\">";
                    if (is_dir($backup_dir . "/accounts")) {
                        if ($dh = opendir($backup_dir . "/accounts")) {
                            while (($file = readdir($dh)) != false) {
                                if ($file != '.' && $file != '..' && $file != '.htaccess' && $file != 'index.html') {
                                    $output .= "\r\n                                    <option value=\"{$file}\">{$file}</option>";
                                }
                            }
                            closedir($dh);
                        }
                    }
                    $output .= "\r\n                                </select>\r\n                                <input type=\"text\" name=\"selected_file_name\" size=\"20\" maxlength=\"35\" />\r\n                            </form>\r\n                        </td>\r\n                        <td>";
                    makebutton($lang_backup['go'], "javascript:do_submit()", 80);
                    break;
                default:
            }
            makebutton($lang_global['back'], "javascript:window.history.back()", 80);
            $output .= "\r\n                        </td>\r\n                    </tr>\r\n                </table>\r\n                <br /><br />\r\n            </fieldset>\r\n            <br /><br />\r\n        </center>";
            break;
        case "save":
            redirect("backup.php?action=dobackup&backup_action={$backup_action}&backup_from_to={$backup_from_to}&struc_backup={$struc_backup}&save_all_realms={$save_all_realms}");
            break;
        default:
            redirect("backup.php?error=1");
    }
}
开发者ID:BACKUPLIB,项目名称:minimanager,代码行数:80,代码来源:backup.php

示例13: pass_recovery

function pass_recovery()
{
    global $lang_register, $lang_global, $output;
    $output .= "<center>\r\n\t\t<fieldset class=\"half_frame\">\r\n\t\t<legend>{$lang_register['recover_acc_password']}</legend>\r\n\t\t<form method=\"post\" action=\"register.php?action=do_pass_recovery\" name=\"form\">\r\n\t\t\t<table class=\"flat\">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td valign=\"top\">\n\t\t\t\t\t\t{$lang_register['username']} :\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input type=\"text\" name=\"username\" size=\"45\" maxlength=\"14\" />\n\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t{$lang_register['user_pass_rec_desc']}<br />\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td valign=\"top\">\n\t\t\t\t\t\t{$lang_register['email']} :\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input type=\"text\" name=\"email\" size=\"45\" maxlength=\"225\" />\n\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t{$lang_register['mail_pass_rec_desc']}\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\n\t\t\t\t\t<td>";
    makebutton($lang_register['recover_pass'], "javascript:do_submit()", 150);
    $output .= "\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>";
    makebutton($lang_global['back'], "javascript:window.history.back()", 328);
    $output .= "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\r\n\t\t\t</table>\r\n\t\t</form>\n\t</fieldset>\r\n\t<br />\n\t<br />\n</center>";
}
开发者ID:scamp,项目名称:minimanager,代码行数:9,代码来源:register.php

示例14: add_tele

function add_tele()
{
    global $output, $arcm_db, $action_permission, $sqlw;
    valid_login($action_permission['insert']);
    $output .= "\r\n        <center>\r\n          <fieldset class=\"half_frame\">\r\n            <legend>" . lang('tele', 'add_new_tele') . "</legend>\r\n            <form method=\"get\" action=\"tele.php\" name=\"form\">\r\n              <input type=\"hidden\" name=\"action\" value=\"do_add_tele\" />\r\n              <table class=\"flat\">\r\n                <tr>\r\n                  <td>" . lang('tele', 'loc_name') . "</td>\r\n                  <td><input type=\"text\" name=\"name\" size=\"42\" maxlength=\"98\" value=\"" . lang('tele', 'name') . "\" /></td>\r\n                </tr>\r\n                <tr>\r\n                  <td>" . lang('tele', 'on_map') . "</td>\r\n                  <td>\r\n                    <select name=\"map\">";
    $map_query = $sqlw->query("SELECT ID, InternalName from map order by id");
    while ($map = $sqlw->fetch_row($map_query)) {
        $output .= "\r\n                      <option value=\"{$map[0]}\">{$map[0]} : {$map[1]}</option>";
    }
    unset($map);
    unset($map_query);
    $output .= "\r\n                    </select>\r\n                  </td>\r\n                </tr>\r\n                <tr>\r\n                  <td>" . lang('tele', 'positionx') . "</td>\r\n                  <td><input type=\"text\" name=\"x\" size=\"42\" maxlength=\"36\" value=\"0.0000\" /></td>\r\n                </tr>\r\n                <tr>\r\n                  <td>" . lang('tele', 'positiony') . "</td>\r\n                  <td><input type=\"text\" name=\"y\" size=\"42\" maxlength=\"36\" value=\"0.0000\" /></td>\r\n                </tr>\r\n                <tr>\r\n                  <td>" . lang('tele', 'positionz') . "</td>\r\n                  <td><input type=\"text\" name=\"z\" size=\"42\" maxlength=\"36\" value=\"0.0000\" /></td>\r\n                </tr>\r\n                <tr>\r\n                  <td>" . lang('tele', 'orientation') . "</td>\r\n                  <td><input type=\"text\" name=\"orientation\" size=\"42\" maxlength=\"36\" value=\"0\" /></td>\r\n                </tr>\r\n                <tr>\r\n                  <td>\r\n                  </td>\r\n                  <td>";
    makebutton(lang('tele', 'add_new'), "javascript:do_submit()", 130);
    makebutton(lang('global', 'back'), "tele.php\" type=\"def", 130);
    $output .= "\r\n                  </td>\r\n                </tr>\r\n              </table>\r\n            </form>\r\n          </fieldset>\r\n          <br /><br />\r\n        </center>\r\n";
}
开发者ID:GlassFace,项目名称:CoreManager2,代码行数:16,代码来源:tele.php

示例15: char_friends


//.........这里部分代码省略.........
                        $output_temp .= '
                          <a href="char.php?id=' . $data["guid"] . '">
                            <span>' . $data["name"] . '</span>
                          </a>';
                    } else {
                        $output_temp .= $data["name"];
                    }
                    $output_temp .= '
                        </td>
                        <td>
                          <img src="img/c_icons/' . $data["race"] . '-' . $data["gender"] . '.gif" onmousemove="oldtoolTip(\'' . char_get_race_name($data["race"]) . '\', \'old_item_tooltip\')" onmouseout="oldtoolTip()" alt="" />
                        </td>
                        <td>
                          <img src="img/c_icons/' . $data["class"] . '.gif" onmousemove="oldtoolTip(\'' . char_get_class_name($data["class"]) . '\', \'old_item_tooltip\')" onmouseout="oldtoolTip()" alt="" />
                        </td>
                        <td>
                          <span>' . char_get_level_color($data["level"]) . '</span>
                        </td>
                        <td class="small">
                          <span onmousemove="oldtoolTip(\'MapID:' . $data["mapid"] . '\', \'old_item_tooltip\')" onmouseout="oldtoolTip()">' . get_map_name($data["mapid"]) . '</span>
                        </td>
                        <td class="small">
                          <span onmousemove="oldtoolTip(\'ZoneID:' . $data["zoneid"] . '\', \'old_item_tooltip\')" onmouseout="oldtoolTip()">' . get_zone_name($data["zoneid"]) . '</span>
                        </td>
                        <td>
                          <img src="img/' . ($data["online"] ? 'up' : 'down') . '.gif" alt="" />
                        </td>
                      </tr>';
                }
            } else {
                $output_temp .= '
                      <tr>
                        <th colspan="7" class="center_text">
                          <span>' . lang("char", "ignoredby") . '</span>
                        </th>
                      </tr>';
                // append columns
                $output_temp .= $friends_columns;
                $output_temp .= '
                      <tr>
                        <td colspan="7">
                          <span>' . lang("char", "no_ignored_by") . '</span>
                        </td>
                      </tr>';
            }
            $output .= $output_temp;
            $output .= '
                    </table>
                  </td>';
            //---------------Page Specific Data Ends here----------------------------
            //---------------Character Tabs Footer-----------------------------------
            $output .= '
                </tr>
              </table>
            </div>
            <br />
            <table class="hidden center">
              <tr>
                <td>';
            // button to user account page, user account page has own security
            makebutton(lang("char", "chars_acc"), 'user.php?action=edit_user&amp;id=' . $owner_acc_id . '', 130);
            $output .= '
                </td>
                <td>';
            // only higher level GM with delete access can edit character
            //  character edit allows removal of character items, so delete permission is needed
            if ($user_lvl > $owner_gmlvl && $user_lvl >= $action_permission["delete"]) {
                //makebutton($lang_char["edit_button"], 'char_edit.php?id='.$id.'&amp;realm='.$realmid.'', 130);
                $output .= '
                </td>
                <td>';
            }
            // only higher level GM with delete access, or character owner can delete character
            if ($user_lvl > $owner_gmlvl && $user_lvl >= $action_permission["delete"] || $owner_name === $user_name) {
                makebutton(lang("char", "del_char"), 'char_list.php?action=del_char_form&amp;check%5B%5D=' . $id . '" type="wrn', 130);
                $output .= '
                </td>
                <td>';
            }
            // only GM with update permission can send mail, mail can send items, so update permission is needed
            if ($user_lvl >= $action_permission["update"]) {
                makebutton(lang("char", "send_mail"), 'mail.php?type=ingame_mail&amp;to=' . $char["name"] . '', 130);
                $output .= '
                </td>
                <td>';
            }
            makebutton(lang("global", "back"), 'javascript:window.history.back()" type="def', 130);
            $output .= '
                </td>
              </tr>
            </table>
            <br />
          <!-- end of char_friends.php -->';
        } else {
            error(lang("char", "no_permission"));
        }
    } else {
        error(lang("char", "no_char_found"));
    }
}
开发者ID:GlassFace,项目名称:CoreManager2,代码行数:101,代码来源:char_friends.php


注:本文中的makebutton函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。