示例#1
0
    </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';
            }
示例#2
0
} 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'];
示例#3
0
        $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 . "'");
示例#4
0
                    </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/>
示例#5
0
$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';
}