<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']; ?> " title="" target="_blank"> <?php echo $server->getItemName($row['entry']); ?> </a></td> <td><?php echo $row['date'];
} else { ?> <span class="attention">Instance Reset costs <?php echo $GLOBALS['service'][$service]['price'] . ' ' . website::convertCurrency($GLOBALS['service'][$service]['currency']); ?> </span> <?php if ($GLOBALS['service'][$service]['currency'] == "vp") { echo "<span class='currency'>Vote Points: " . account::loadVP($_SESSION['cw_user']) . "</span>"; } elseif ($GLOBALS['service'][$service]['currency'] == "dp") { echo "<span class='currency'>" . $GLOBALS['donation']['coins_name'] . ": " . account::loadDP($_SESSION['cw_user']) . "</span>"; } } if (isset($_POST['ir_step1']) || isset($_POST['ir_step2'])) { echo 'Selected realm: <b>' . server::getRealmName($_POST['ir_realm']) . '</b><br/><br/>'; } else { ?> Select realm: <form action="?p=instancereset" method="post"> <table> <tr> <td> <select name="ir_realm"> <?php $result = mysql_query("SELECT name,char_db FROM realms"); while ($row = mysql_fetch_assoc($result)) { if (isset($_POST['ir_realm']) && $_POST['ir_realm'] == $row['char_db']) { echo '<option value="' . $row['char_db'] . '" selected>'; } else {
<th>Service</th> <th>Description</th> <th>Realm</th> <th>Date</th> </tr> <?php $server->selectDB('webdb'); $result = mysql_query("SELECT * FROM user_log WHERE account='" . (int) $_GET['getslogs'] . "'"); if (mysql_num_rows($result) == 0) { echo 'No logs was found for this account!'; } else { while ($row = mysql_fetch_assoc($result)) { echo '<tr class="center">'; echo '<td>' . $row['service'] . '</td>'; echo '<td>' . $row['desc'] . '</td>'; echo '<td>' . $server->getRealmName($row['realmid']) . '</td>'; echo '<td>' . date('Y-m-d H:i', $row['timestamp']) . '</td>'; echo '</tr>'; } } ?> </table> <hr/> <?php } ?> <table width="100%"> <tr> <td>Username or ID: </td> <form action="" method="get"> <input type="hidden" name="p" value="users">