Jump to content

Azael Dev

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Thailand
  • Server
    Thailand
  • Github: Azael Dev

Contact Methods

Recent Profile Visitors

1372 profile views

Azael Dev's Achievements

Poring

Poring (1/15)

1

Reputation

  1. I want to increase view Cash Points in on accounts FluxCP tried several times but I'm also not successful. Messiah's Please help, how to write, to draw #CASHPOINTS global reg value from a table in SQL as well. FluxCP\modules\account\view.php <?php if (!defined('FLUX_ROOT')) exit; $this->loginRequired(); $title = Flux::message('AccountViewTitle'); require_once 'Flux/TemporaryTable.php'; if($server->isRenewal) { $fromTables = array("{$server->charMapDatabase}.item_db_re", "{$server->charMapDatabase}.item_db2_re"); } else { $fromTables = array("{$server->charMapDatabase}.item_db", "{$server->charMapDatabase}.item_db2"); } $tableName = "{$server->charMapDatabase}.items"; $tempTable = new Flux_TemporaryTable($server->connection, $tableName, $fromTables); $creditsTable = Flux::config('FluxTables.CreditsTable'); $creditColumns = 'credits.balance, credits.last_donation_date, credits.last_donation_amount'; $createTable = Flux::config('FluxTables.AccountCreateTable'); $createColumns = 'created.confirmed, created.confirm_code, created.reg_date'; $isMine = false; $accountID = $params->get('id'); $account = false; if (!$accountID || $accountID == $session->account->account_id) { $isMine = true; $accountID = $session->account->account_id; $account = $session->account; } if (!$isMine) { // Allowed to view other peoples' account information? if (!$auth->allowedToViewAccount) { $this->deny(); } $sql = "SELECT login.*, {$creditColumns}, {$createColumns} FROM {$server->loginDatabase}.login "; $sql .= "LEFT OUTER JOIN {$server->loginDatabase}.{$creditsTable} AS credits ON login.account_id = credits.account_id "; $sql .= "LEFT OUTER JOIN {$server->loginDatabase}.{$createTable} AS created ON login.account_id = created.account_id "; $sql .= "WHERE login.sex != 'S' AND login.group_id >= 0 AND login.account_id = ? LIMIT 1"; $sth = $server->connection->getStatement($sql); $sth->execute(array($accountID)); // Account object. $account = $sth->fetch(); if ($account) { $title = sprintf(Flux::message('AccountViewTitle2'), $account->userid); } } else { $title = Flux::message('AccountViewTitle3'); } $level = AccountLevel::getGroupLevel($account->group_id); $banSuperior = $account && (($level > $session->account->group_level && $auth->allowedToBanHigherPower) || $level <= $session->account->group_level); $canTempBan = !$isMine && $banSuperior && $auth->allowedToTempBanAccount; $canPermBan = !$isMine && $banSuperior && $auth->allowedToPermBanAccount; $tempBanned = $account && $account->unban_time > 0; $permBanned = $account && $account->state == 5; $showTempBan = !$isMine && !$tempBanned && !$permBanned && $auth->allowedToTempBanAccount; $showPermBan = !$isMine && !$permBanned && $auth->allowedToPermBanAccount; $showUnban = !$isMine && ($tempBanned && $auth->allowedToTempUnbanAccount) || ($permBanned && $auth->allowedToPermUnbanAccount); if (count($_POST) && $account) { $reason = (string)$params->get('reason'); if ($params->get('tempban') && ($tempBanDate=$params->get('tempban_date'))) { if ($canTempBan) { if ($server->loginServer->temporarilyBan($session->account->account_id, $reason, $account->account_id, $tempBanDate)) { $formattedDate = $this->formatDateTime($tempBanDate); $session->setMessageData("Account has been temporarily banned until $formattedDate."); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } else { $errorMessage = Flux::message('AccountTempBanFailed'); } } else { $errorMessage = Flux::message('AccountTempBanUnauth'); } } elseif ($params->get('permban')) { if ($canPermBan) { if ($server->loginServer->permanentlyBan($session->account->account_id, $reason, $account->account_id)) { $session->setMessageData("Account has been permanently banned."); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } else { $errorMessage = Flux::message('AccountPermBanFailed'); } } else { $errorMessage = Flux::message('AccountPermBanUnauth'); } } elseif ($params->get('unban')) { $tbl = Flux::config('FluxTables.AccountCreateTable'); $sql = "SELECT account_id FROM {$server->loginDatabase}.$tbl WHERE confirmed = 0 AND account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account->account_id)); $confirm = $sth->fetch(); $sql = "UPDATE {$server->loginDatabase}.$tbl SET confirmed = 1, confirm_expire = NULL WHERE account_id = ?"; $sth = $server->connection->getStatement($sql); if ($tempBanned && $auth->allowedToTempUnbanAccount && $server->loginServer->unban($session->account->account_id, $reason, $account->account_id)) { if ($confirm) { $sth->execute(array($account->account_id)); } $session->setMessageData(Flux::message('AccountLiftTempBan')); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } elseif ($permBanned && $auth->allowedToPermUnbanAccount && $server->loginServer->unban($session->account->account_id, $reason, $account->account_id)) { if ($confirm) { $sth->execute(array($account->account_id)); } $session->setMessageData(Flux::message('AccountLiftPermBan')); $this->redirect($this->url('account', 'view', array('id' => $account->account_id))); } else { $errorMessage = Flux::message('AccountLiftBanUnauth'); } } } $banInfo = false; if ($account) { $banInfo = $server->loginServer->getBanInfo($account->account_id); } $characters = array(); foreach ($session->getAthenaServerNames() as $serverName) { $athena = $session->getAthenaServer($serverName); $sql = "SELECT ch.*, guild.name AS guild_name, guild.emblem_len AS guild_emblem_len "; $sql .= "FROM {$athena->charMapDatabase}.`char` AS ch "; $sql .= "LEFT OUTER JOIN {$athena->charMapDatabase}.guild ON guild.guild_id = ch.guild_id "; $sql .= "WHERE ch.account_id = ? ORDER BY ch.char_num ASC"; $sth = $server->connection->getStatement($sql); $sth->execute(array($accountID)); $chars = $sth->fetchAll(); $characters[$athena->serverName] = $chars; } $col = "storage.*, items.name_japanese, items.type, items.slots, c.char_id, c.name AS char_name"; $sql = "SELECT $col FROM {$server->charMapDatabase}.storage "; $sql .= "LEFT JOIN {$server->charMapDatabase}.items ON items.id = storage.nameid "; $sql .= "LEFT JOIN {$server->charMapDatabase}.`char` AS c "; $sql .= "ON c.char_id = IF(storage.card0 IN (254, 255), "; $sql .= "IF(storage.card2 < 0, storage.card2 + 65536, storage.card2) "; $sql .= "| (storage.card3 << 16), NULL) "; $sql .= "WHERE storage.account_id = ? "; if (!$auth->allowedToSeeUnknownItems) { $sql .= 'AND storage.identify > 0 '; } if ($account) { $sql .= "ORDER BY storage.nameid ASC, storage.identify DESC, "; $sql .= "storage.attribute DESC, storage.refine ASC"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account->account_id)); $items = $sth->fetchAll(); $cards = array(); if ($items) { $cardIDs = array(); foreach ($items as $item) { $item->cardsOver = -$item->slots; if ($item->card0) { $cardIDs[] = $item->card0; $item->cardsOver++; } if ($item->card1) { $cardIDs[] = $item->card1; $item->cardsOver++; } if ($item->card2) { $cardIDs[] = $item->card2; $item->cardsOver++; } if ($item->card3) { $cardIDs[] = $item->card3; $item->cardsOver++; } if ($item->card0 == 254 || $item->card0 == 255 || $item->card0 == -256 || $item->cardsOver < 0) { $item->cardsOver = 0; } } if ($cardIDs) { $ids = implode(',', array_fill(0, count($cardIDs), '?')); $sql = "SELECT id, name_japanese FROM {$server->charMapDatabase}.items WHERE id IN ($ids)"; $sth = $server->connection->getStatement($sql); $sth->execute($cardIDs); $temp = $sth->fetchAll(); if ($temp) { foreach ($temp as $card) { $cards[$card->id] = $card->name_japanese; } } } } $itemAttributes = Flux::config('Attributes')->toArray(); } ?> FluxCP\themes\bootstrap\account\view.php <?php if (!defined('FLUX_ROOT')) exit; ?> <h2><?php echo htmlspecialchars(Flux::message('AccountViewHeading')) ?></h2> <?php if (!empty($errorMessage)): ?> <p class="red"><?php echo htmlspecialchars($errorMessage) ?></p> <?php endif ?> <?php if ($account): ?> <table class="vertical-table"> <tr> <th><?php echo htmlspecialchars(Flux::message('UsernameLabel')) ?></th> <td><?php echo htmlspecialchars($account->userid) ?></td> <th><?php echo htmlspecialchars(Flux::message('AccountIdLabel')) ?></th> <td> <?php if ($auth->allowedToSeeAccountID): ?> <?php echo $account->account_id ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NotApplicableLabel')) ?></span> <?php endif ?> </td> </tr> <tr> <th><?php echo htmlspecialchars(Flux::message('EmailAddressLabel')) ?></th> <td> <?php if ($account->email): ?> <?php if ($auth->actionAllowed('account', 'index')): ?> <?php echo $this->linkToAccountSearch(array('email' => $account->email), $account->email) ?> <?php else: ?> <?php echo htmlspecialchars($account->email) ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NoneLabel')) ?></span> <?php endif ?> </td> <th><?php echo htmlspecialchars(Flux::message('AccountGroupIDLabel')) ?></th> <td> <?php echo getGroupPlayers((int)$account->group_id) ?> </td> </tr> <tr> <th><?php echo htmlspecialchars(Flux::message('GenderLabel')) ?></th> <td> <?php if ($gender = $this->genderText($account->sex)): ?> <?php echo $gender ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('UnknownLabel')) ?></span> <?php endif ?> </td> <th><?php echo htmlspecialchars(Flux::message('AccountStateLabel')) ?></th> <td> <?php if (!$account->confirmed && $account->confirm_code): ?> <span class="account-state state-pending"> <?php echo htmlspecialchars(Flux::message('AccountStatePending')) ?> </span> <?php elseif (($state = $this->accountStateText($account->state)) && !$account->unban_time): ?> <?php echo $state ?> <?php elseif ($account->unban_time): ?> <span class="account-state state-banned"> <?php printf(htmlspecialchars(Flux::message('AccountStateTempBanned')), date(Flux::config('DateTimeFormat'), $account->unban_time)) ?> </span> <?php else: ?> <span class="account-state state-unknown"><?php echo htmlspecialchars(Flux::message('UnknownLabel')) ?></span> <?php endif ?> </td> </tr> <tr> <th><?php echo htmlspecialchars(Flux::message('LoginCountLabel')) ?></th> <td><?php echo number_format((int)$account->logincount) ?></td> <th><?php echo htmlspecialchars(Flux::message('CreditBalanceLabel')) ?></th> <td> <?php echo number_format((int)$account->balance) ?> <?php if ($auth->allowedToDonate && $isMine): ?> <a href="<?php echo $this->url('donate') ?>"><?php echo htmlspecialchars(Flux::message('AccountViewDonateLink')) ?></a> <?php endif ?> </td> </tr> <tr> <th><?php echo htmlspecialchars(Flux::message('AccountBirthdateLabel')) ?></th> <td><?php echo $account->birthdate ?></td> <th><?php echo htmlspecialchars(Flux::message('CashPointBalanceLabel')) ?></th> <td> <?php echo number_format((int)$account->cashpoints) ?> </td> </tr> <tr> <th><?php echo htmlspecialchars(Flux::message('LastLoginDateLabel')) ?></th> <td colspan="3"> <?php if (!$account->lastlogin || $account->lastlogin == '0000-00-00 00:00:00'): ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NeverLabel')) ?></span> <?php else: ?> <?php echo $this->formatDateTime($account->lastlogin) ?> <?php endif ?> </td> </tr> <tr> <th><?php echo htmlspecialchars(Flux::message('LastUsedIpLabel')) ?></th> <td colspan="3"> <?php if ($account->last_ip): ?> <?php if ($auth->actionAllowed('account', 'index')): ?> <?php echo $this->linkToAccountSearch(array('last_ip' => $account->last_ip), $account->last_ip) ?> <?php else: ?> <?php echo htmlspecialchars($account->last_ip) ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NoneLabel')) ?></span> <?php endif ?> </td> </tr> <?php $banconfirm=htmlspecialchars(str_replace("'", "\\'", Flux::message('AccountBanConfirm'))) ?> <?php if ($showTempBan): ?> <tr> <th><?php echo htmlspecialchars(Flux::message('AccountViewTempBanLabel')) ?></th> <td colspan="3"> <form action="<?php echo $this->urlWithQs ?>" method="post"> <input type="hidden" name="tempban" value="1" /> <label><?php echo htmlspecialchars(Flux::message('AccountBanReasonLabel')) ?><br /><textarea name="reason" class="block reason"></textarea></label> <label><?php echo htmlspecialchars(Flux::message('AccountBanUntilLabel')) ?></label> <?php echo $this->dateTimeField('tempban', date('H:i:s')); ?> <input type="submit" value="<?php echo htmlspecialchars(Flux::message('AccountTempBanButton')) ?>" onclick="return confirm('<?php echo $banconfirm ?>')" /> </form> </td> </tr> <?php endif ?> <?php if ($showPermBan): ?> <tr> <th><?php echo htmlspecialchars(Flux::message('AccountViewPermBanLabel')) ?></th> <td colspan="3"> <form action="<?php echo $this->urlWithQs ?>" method="post"> <input type="hidden" name="permban" value="1" /> <label><?php echo htmlspecialchars(Flux::message('AccountBanReasonLabel')) ?><br /><textarea name="reason" class="block reason"></textarea></label> <input type="submit" value="<?php echo htmlspecialchars(Flux::message('AccountPermBanButton')) ?>" onclick="return confirm('<?php echo $banconfirm ?>')" /> </form> </td> </tr> <?php endif ?> <?php if ($showUnban): ?> <tr> <th><?php echo htmlspecialchars(Flux::message('AccountViewUnbanLabel')) ?></th> <td colspan="3"> <form action="<?php echo $this->urlWithQs ?>" method="post"> <input type="hidden" name="unban" value="1" /> <?php if ($tempBanned && $auth->allowedToTempUnbanAccount): ?> <label><?php echo htmlspecialchars(Flux::message('AccountBanReasonLabel')) ?><br /><textarea name="reason" class="block reason"></textarea></label> <input type="submit" value="<?php echo htmlspecialchars(Flux::message('AccountTempUnbanButton')) ?>" /> <?php elseif ($permBanned && $auth->allowedToPermUnbanAccount): ?> <label><?php echo htmlspecialchars(Flux::message('AccountBanReasonLabel')) ?><br /><textarea name="reason" class="block reason"></textarea></label> <input type="submit" value="<?php echo htmlspecialchars(Flux::message('AccountPermUnbanButton')) ?>" /> <?php endif ?> </form> </td> </tr> <?php endif ?> </table> <?php if ($auth->allowedToViewAccountBanLog && $banInfo): ?> <h3><?php echo htmlspecialchars(sprintf(Flux::message('AccountBanLogSubHeading'), $account->userid)) ?></h3> <table class="vertical-table"> <tr> <th><?php echo htmlspecialchars(Flux::message('BanLogBanTypeLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('BanLogBanDateLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('BanLogBanReasonLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('BanLogBannedByLabel')) ?></th> </tr> <?php foreach ($banInfo as $ban): ?> <tr> <td align="right"><?php echo htmlspecialchars($this->banTypeText($ban->ban_type)) ?></td> <td><?php echo htmlspecialchars($this->formatDateTime($ban->ban_date)) ?></td> <td><?php echo nl2br(htmlspecialchars($ban->ban_reason)) ?></td> <td> <?php if ($ban->userid): ?> <?php if ($auth->allowedToViewAccount): ?> <?php echo $this->linkToAccount($ban->banned_by, $ban->userid) ?> <?php else: ?> <?php echo htmlspecialchars($ban->userid) ?> <?php endif ?> <?php else: ?> <strong><?php echo htmlspecialchars(Flux::message('BanLogBannedByCP')) ?></strong> <?php endif ?> </td> </tr> <?php endforeach ?> </table> <?php endif ?> <?php foreach ($characters as $serverName => $chars): $zeny = 0; ?> <h3><?php echo htmlspecialchars(sprintf(Flux::message('AccountViewCharSubHead'), $serverName)) ?></h3> <?php if ($chars): ?> <table class="vertical-table"> <tr> <th><?php echo htmlspecialchars(Flux::message('AccountViewSlotLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('AccountViewCharLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('AccountViewClassLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('AccountViewLvlLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('AccountViewJlvlLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('AccountViewZenyLabel')) ?></th> <th colspan="2"><?php echo htmlspecialchars(Flux::message('AccountViewGuildLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('AccountViewStatusLabel')) ?></th> <?php if (($isMine || $auth->allowedToModifyCharPrefs) && $auth->actionAllowed('character', 'prefs')): ?> <th><?php echo htmlspecialchars(Flux::message('AccountViewPrefsLabel')) ?></th> <?php endif ?> </tr> <?php foreach ($chars as $char): $zeny += $char->zeny; ?> <tr> <td align="right"><?php echo $char->char_num+1 ?></td> <td> <?php if ($auth->actionAllowed('character', 'view') && ($isMine || (!$isMine && $auth->allowedToViewCharacter))): ?> <?php echo $this->linkToCharacter($char->char_id, $char->name, $serverName) ?> <?php else: ?> <?php echo htmlspecialchars($char->name) ?> <?php endif ?> </td> <td><?php echo htmlspecialchars($this->jobClassText($char->class)) ?></td> <td><?php echo (int)$char->base_level ?></td> <td><?php echo (int)$char->job_level ?></td> <td><?php echo number_format((int)$char->zeny) ?></td> <?php if ($char->guild_name): ?> <?php if ($char->guild_emblem_len): ?> <td><img src="<?php echo $this->emblem($char->guild_id) ?>" /></td> <?php endif ?> <td<?php if (!$char->guild_emblem_len) echo ' colspan="2"' ?>> <?php if ($auth->actionAllowed('guild', 'view')): ?> <?php echo $this->linkToGuild($char->guild_id, $char->guild_name) ?> <?php else: ?> <?php echo htmlspecialchars($char->guild_name) ?> <?php endif ?> </td> <?php else: ?> <td colspan="2" align="center"><span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NoneLabel')) ?></span></td> <?php endif ?> <td> <?php if ($char->online): ?> <span class="online"><?php echo htmlspecialchars(Flux::message('OnlineLabel')) ?></span> <?php else: ?> <span class="offline"><?php echo htmlspecialchars(Flux::message('OfflineLabel')) ?></span> <?php endif ?> </td> <?php if (($isMine || $auth->allowedToModifyCharPrefs) && $auth->actionAllowed('character', 'prefs')): ?> <td> <a href="<?php echo $this->url('character', 'prefs', array('id' => $char->char_id)) ?>" class="block-link"> <?php echo htmlspecialchars(Flux::message('CharModifyPrefsLink')) ?> </a> </td> <?php endif ?> </tr> <?php endforeach ?> </table> <p>Total Zeny: <strong><?php echo number_format($zeny) ?></strong></p> <?php else: ?> <p><?php echo htmlspecialchars(sprintf(Flux::message('AccountViewNoChars'), $serverName)) ?></p> <?php endif ?> <?php endforeach ?> <h3><?php echo htmlspecialchars(sprintf(Flux::message('AccountViewStorage'), $account->userid)) ?></h3> <?php if ($items): ?> <p><?php echo htmlspecialchars(sprintf(Flux::message('AccountViewStorageCount'), $account->userid, count($items))) ?></p> <table class="vertical-table"> <tr> <th><?php echo htmlspecialchars(Flux::message('ItemIdLabel')) ?></th> <th colspan="2"><?php echo htmlspecialchars(Flux::message('ItemNameLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ItemAmountLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ItemIdentifyLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ItemBrokenLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ItemCard0Label')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ItemCard1Label')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ItemCard2Label')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ItemCard3Label')) ?></th> <th>Extra</th> </th> </tr> <?php foreach ($items AS $item): ?> <?php $icon = $this->iconImage($item->nameid) ?> <tr> <td align="right"> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->nameid, $item->nameid) ?> <?php else: ?> <?php echo htmlspecialchars($item->nameid) ?> <?php endif ?> </td> <?php if ($icon): ?> <td><img src="<?php echo htmlspecialchars($icon) ?>" /></td> <?php endif ?> <td<?php if (!$icon) echo ' colspan="2"' ?><?php if ($item->cardsOver) echo ' class="overslotted' . $item->cardsOver . '"'; else echo ' class="normalslotted"' ?>> <?php if ($item->refine > 0): ?> +<?php echo htmlspecialchars($item->refine) ?> <?php endif ?> <?php if ($item->card0 == 255 && intval($item->card1/1280) > 0): ?> <?php for ($i = 0; $i < intval($item->card1/1280); $i++): ?> Very <?php endfor ?> Strong <?php endif ?> <?php if ($item->card0 == 254 || $item->card0 == 255): ?> <?php if ($item->char_name): ?> <?php if ($auth->actionAllowed('character', 'view') && ($isMine || (!$isMine && $auth->allowedToViewCharacter))): ?> <?php echo $this->linkToCharacter($item->char_id, $item->char_name, $session->serverName) . "'s" ?> <?php else: ?> <?php echo htmlspecialchars($item->char_name . "'s") ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('UnknownLabel')) ?></span>'s <?php endif ?> <?php endif ?> <?php if ($item->card0 == 255 && array_key_exists($item->card1%1280, $itemAttributes)): ?> <?php echo htmlspecialchars($itemAttributes[$item->card1%1280]) ?> <?php endif ?> <?php if ($item->name_japanese): ?> <span class="item_name"><?php echo htmlspecialchars($item->name_japanese) ?></span> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('UnknownLabel')) ?></span> <?php endif ?> <?php if ($item->slots): ?> <?php echo htmlspecialchars(' [' . $item->slots . ']') ?> <?php endif ?> </td> <td><?php echo number_format($item->amount) ?></td> <td> <?php if ($item->identify): ?> <span class="identified yes"><?php echo htmlspecialchars(Flux::message('YesLabel')) ?></span> <?php else: ?> <span class="identified no"><?php echo htmlspecialchars(Flux::message('NoLabel')) ?></span> <?php endif ?> </td> <td> <?php if ($item->attribute): ?> <span class="broken yes"><?php echo htmlspecialchars(Flux::message('YesLabel')) ?></span> <?php else: ?> <span class="broken no"><?php echo htmlspecialchars(Flux::message('NoLabel')) ?></span> <?php endif ?> </td> <td> <?php if($item->card0 && ($item->type == 4 || $item->type == 5) && $item->card0 != 254 && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card0])): ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card0, $cards[$item->card0]) ?> <?php else: ?> <?php echo htmlspecialchars($cards[$item->card0]) ?> <?php endif ?> <?php else: ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card0, $item->card0) ?> <?php else: ?> <?php echo htmlspecialchars($item->card0) ?> <?php endif ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NoneLabel')) ?></span> <?php endif ?> </td> <td> <?php if($item->card1 && ($item->type == 4 || $item->type == 5) && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card1])): ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card1, $cards[$item->card1]) ?> <?php else: ?> <?php echo htmlspecialchars($cards[$item->card1]) ?> <?php endif ?> <?php else: ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card1, $item->card1) ?> <?php else: ?> <?php echo htmlspecialchars($item->card1) ?> <?php endif ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NoneLabel')) ?></span> <?php endif ?> </td> <td> <?php if($item->card2 && ($item->type == 4 || $item->type == 5) && $item->card0 != 254 && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card2])): ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card2, $cards[$item->card2]) ?> <?php else: ?> <?php echo htmlspecialchars($cards[$item->card2]) ?> <?php endif ?> <?php else: ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card2, $item->card2) ?> <?php else: ?> <?php echo htmlspecialchars($item->card2) ?> <?php endif ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NoneLabel')) ?></span> <?php endif ?> </td> <td> <?php if($item->card3 && ($item->type == 4 || $item->type == 5) && $item->card0 != 254 && $item->card0 != 255 && $item->card0 != -256): ?> <?php if (!empty($cards[$item->card3])): ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card3, $cards[$item->card3]) ?> <?php else: ?> <?php echo htmlspecialchars($cards[$item->card3]) ?> <?php endif ?> <?php else: ?> <?php if ($auth->actionAllowed('item', 'view')): ?> <?php echo $this->linkToItem($item->card3, $item->card3) ?> <?php else: ?> <?php echo htmlspecialchars($item->card3) ?> <?php endif ?> <?php endif ?> <?php else: ?> <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NoneLabel')) ?></span> <?php endif ?> </td> <td> <?php if($item->bound == 1):?> Account Bound <?php elseif($item->bound == 2):?> Guild Bound <?php elseif($item->bound == 3):?> Party Bound <?php elseif($item->bound == 4):?> Character Bound <?php else:?> <span class="not-applicable">None</span> <?php endif ?> </td> </tr> <?php endforeach ?> </table> <?php else: ?> <p><?php echo htmlspecialchars(Flux::message('AccountViewNoStorage')) ?></p> <?php endif ?> <?php else: ?> <p> <?php echo htmlspecialchars(Flux::message('AccountViewNotFound')) ?> <a href="javascript:history.go(-1)"><?php echo htmlspecialchars(Flux::message('GoBackLabel')) ?></a> </p> <?php endif ?> English is not my strength by https://translate.google.co.th.
  2. I would like to add the View Cash Points in my account, I should do because I tried to fix it several times without success. I used FluxCP of https://github.com/rathena/FluxCP My English is not good by www.translate.google.co.th. From Thailand
  3. Fixed installer. Closes #2. https://github.com/HerculesWS/FluxCP/commit/e38f5a023a890d09538dbb893a741a0492f5344f
×
×
  • Create New...