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


PHP account::getAccName方法代码示例

本文整理汇总了PHP中account::getAccName方法的典型用法代码示例。如果您正苦于以下问题:PHP account::getAccName方法的具体用法?PHP account::getAccName怎么用?PHP account::getAccName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在account的用法示例。


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

示例1: while

    </tr>
    <?php 
$server->selectDB('logondb');
$result = mysql_query("SELECT * FROM account_access");
if (mysql_num_rows($result) == 0) {
    echo "<b>No GM accounts found!</b>";
} else {
    while ($row = mysql_fetch_assoc($result)) {
        ?>
            <tr style="text-align:center;">
            	<td><?php 
        echo $row['id'];
        ?>
</td>
                <td><?php 
        echo $account->getAccName($row['id']);
        ?>
</td>
                <td><?php 
        echo $row['gmlevel'];
        ?>
</td>
                <td>
                <?php 
        if ($row['RealmID'] == '-1') {
            echo 'All';
        } else {
            $getRealm = mysql_query("SELECT name FROM realmlist WHERE id='" . $row['RealmID'] . "'");
            if (mysql_num_rows($getRealm) == 0) {
                echo 'Unknown';
            }
开发者ID:nero08,项目名称:CraftedWeb,代码行数:31,代码来源:tools-accountaccess.php

示例2: while

} else {
    ?>
 <input type='text' value='Search...' id="logs_search" onkeyup="searchLog('vote')">
 <?php 
    echo "<br/><b>Showing " . $start . "-" . ($start + $per_page) . "</b>";
    ?>
 <hr/>
<div id="logs_content">
<table width="100%">
        <tr><th>User</th><th>Character</th><th>Realm</th><th>Item</th><th>Date</th></tr>
        <?php 
    while ($row = mysql_fetch_assoc($result)) {
        ?>
		<tr class="center">
            <td><?php 
        echo $account->getAccName($row['account']);
        ?>
</td>
            <td><?php 
        echo $account->getCharName($row['char_id'], $row['realm_id']);
        ?>
</td>
            <td><?php 
        echo $server->getRealmName($row['realm_id']);
        ?>
</td>
            <td><a href="http://<?php 
        echo $GLOBALS['tooltip_href'];
        ?>
item=<?php 
        echo $row['entry'];
开发者ID:nero08,项目名称:CraftedWeb,代码行数:31,代码来源:logs-voteshop.php

示例3: VALUES

        $extended .= "Changed email to" . $email . "<br/>";
    }
    mysql_query("UPDATE account SET email='" . $email . "' WHERE id='" . $id . "'");
    $server->selectDB('webdb');
    mysql_query("INSERT IGNORE INTO account_data VALUES('" . $id . "','','','')");
    $chk2 = mysql_query("SELECT COUNT FROM account_data WHERE vp='" . $vp . "' AND id='" . $od . "'");
    if (mysql_query($chk2, 0) > 0) {
        $extended .= "Updated Vote Points to " . $vp . "<br/>";
    }
    $chk3 = mysql_query("SELECT COUNT FROM account_data WHERE dp='" . $dp . "' AND id='" . $od . "'");
    if (mysql_query($chk3, 0) > 0) {
        $extended .= "Updated Donation Coins to " . $dp . "<br/>";
    }
    mysql_query("UPDATE account_data SET vp='" . $vp . "', dp ='" . $dp . "' WHERE id='" . $id . "'");
    if (!empty($password)) {
        $username = strtoupper(trim($account->getAccName($id)));
        $password = sha1("" . $username . ":" . $password . "");
        $server->selectDB('logondb');
        mysql_query("UPDATE account SET sha_pass_hash='" . $password . "' WHERE id='" . $id . "'");
        mysql_query("UPDATE account SET v='0',s='0' WHERE id='" . $id . "'");
        $extended .= "Changed password<br/>";
    }
    $server->logThis("Modified account information for " . ucfirst(strtolower($account->getAccName($id))), $extended);
    echo "Settings were saved.";
}
###############################
if ($_POST['action'] == 'saveAccA') {
    $id = (int) $_POST['id'];
    $rank = (int) $_POST['rank'];
    $realm = mysql_real_escape_string($_POST['realm']);
    mysql_query("UPDATE account_access SET gmlevel='" . $rank . "',RealmID='" . $realm . "' WHERE id='" . $id . "'");
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:31,代码来源:account.php

示例4: elseif

                    </tr>
                    <?php 
            }
        }
        ?>
             </table>
            <hr/>
		<?php 
    }
} elseif (isset($_GET['getlogs'])) {
    ?>
	Account selected: <a href='?p=users&s=manage&user=<?php 
    echo $_GET['getlogs'];
    ?>
'><?php 
    echo $account->getAccName($_GET['getlogs']);
    ?>
</a><p />
	
	<h4 class='payments' onclick='loadPaymentsLog(<?php 
    echo (int) $_GET['getlogs'];
    ?>
)'>Payments log</h4>
	<div class='hidden_content' id='payments'></div>
	<hr/>
	<h4 class='payments' onclick='loadDshopLog(<?php 
    echo (int) $_GET['getlogs'];
    ?>
)'>Donation shop log</h4>
	<div class='hidden_content' id='dshop'></div>
	<hr/>
开发者ID:nero08,项目名称:CraftedWeb,代码行数:31,代码来源:users-manage.php

示例5: strtolower

$usersTotal = mysql_query("SELECT name,race,account,class,level,money,leveltime,totaltime,online,latency,gender FROM characters WHERE guid='" . $_GET['guid'] . "'");
$row = mysql_fetch_assoc($usersTotal);
?>
<hr/>
<table style="width: 100%;">
<tr>
    <td>Character Name</td>
    <td><input type="text" value="<?php 
echo $row['name'];
?>
" class="noremove" id="editchar_name"/></td>
</tr>
<tr>
    <td>Account</td>
    <td><input type="text" value="<?php 
echo $account->getAccName($row['account']);
?>
" class="noremove" id="editchar_accname"/>
    <a href="?p=users&s=manage&user=<?php 
echo strtolower($account->getAccName($row['account']));
?>
">View</a></td>
</tr>
<tr>
    <td>Race</td>
    <td>
    	<select id="editchar_race">
        	<option <?php 
if ($row['race'] == 1) {
    echo 'selected';
}
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:31,代码来源:users-viewchar.php


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