Ejemplo n.º 1
0
Archivo: player.php Proyecto: mmr/b1n
?>
        <tr>
          <td><?php 
echo $lang['player_experience'] . ':</td><td>' . $_SESSION['player']['pla_exp'];
?>
</td>
        </tr>
        <tr>
          <td><?php 
echo $lang['player_ranking'] . ':</td><td>' . $lang[$_SESSION['player']['ran_name']];
?>
</td>
        </tr>
        <tr>
          <td><?php 
echo $lang['player_money'] . ':</td><td>' . b1n_formatCurrency($_SESSION['player']['pla_money']);
?>
</td>
        </tr>
<?php 
// Lineage
if (sizeof($player['lineage'])) {
    ?>
        <tr>
          <td>
<?php 
    $last = array_pop($player['lineage']);
    echo $lang['player_lineage_text'] . ':</td><td>';
    if (sizeof($player['lineage'])) {
        echo implode(', ', $player['lineage']) . ' ' . $lang['and'] . ' ';
    }
Ejemplo n.º 2
0
Archivo: history.php Proyecto: mmr/b1n
<?php

// $Id: history.php,v 1.2 2004/04/12 00:34:26 mmr Exp $
if (is_array($history)) {
    echo '<table><tr><td>&nbsp;</td><td>&nbsp;</td></tr>';
    foreach ($history as $h) {
        echo '<tr>';
        echo '<td><nobr>' . b1n_formatDateHourShow($h['log_add_dt']) . '</nobr></td>';
        $msg = $lang['log_' . $h['log_action']];
        $vars = '';
        if (!empty($h['log_vars'])) {
            $vars = explode(';', $h['log_vars']);
            if (is_array($vars)) {
                foreach ($vars as $var) {
                    list($k, $v) = explode(':', $var);
                    if (b1n_cmp($k, 'money')) {
                        $v = b1n_formatCurrency($v);
                    }
                    $msg = str_replace('{' . $k . '}', $v, $msg);
                }
            }
        }
        echo '<td>' . $msg . '</td>';
        echo '</tr>';
    }
    echo "</table>";
}
Ejemplo n.º 3
0
Archivo: map.lib.php Proyecto: mmr/b1n
function b1n_mapBuildBank($action)
{
    global $sql, $lang;
    $ret = "<form name='f_bank' action='" . b1n_URL . "' method='post'>";
    $ret .= "<input type='hidden' name='page'   value='map' />";
    $ret .= "<select class='i_select' name='action'> ";
    $ret .= "<option value=''>---</option>";
    $ret .= "<option value='deposit_money'" . (b1n_cmp($action, 'deposit_money') ? ' selected="selected"' : '') . ">" . $lang['bank_deposit'] . "</option>";
    $ret .= "<option value='withdraw_money'" . (b1n_cmp($action, 'withdraw_money') ? ' selected="selected"' : '') . ">" . $lang['bank_withdraw'] . "</option>";
    $ret .= "</select> ";
    $ret .= "<input type='text' name='money' class='i_text' size='5' maxlength='5' /> ";
    $ret .= "<input type='submit' value='" . $lang['ok'] . "' class='i_button' /><br />";
    $ret .= "</form>";
    $ret .= "<script type='text/javascript'>document.f_bank.money.focus();</script>";
    if (!empty($_SESSION['player']['pla_bank_money'])) {
        $ret .= '(' . str_replace('{money}', b1n_formatCurrency($_SESSION['player']['pla_bank_money']), $lang['bank_money']) . ')<br />';
    }
    $ret .= '(' . str_replace('{money}', b1n_formatCurrency($_SESSION['player']['pla_money']), $lang['map_label_money']) . ')';
    return $ret;
}
Ejemplo n.º 4
0
Archivo: index.php Proyecto: mmr/b1n
      <table class='map_bottom'>
        <tr>
          <td>
<?php 
require $data['page'] . '/bottom.php';
?>
 
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<div class='map_text'>
  <br />
<?php 
$aux = $lang['map_label_you'];
$aux = str_replace('{player}', '<b>' . $_SESSION['player']['pla_login'] . '</b>', $aux);
$aux = str_replace('{exp}', '<b>' . $_SESSION['player']['pla_exp'] . '</b>', $aux);
$aux = str_replace('{money}', '<b>' . b1n_formatCurrency($_SESSION['player']['pla_money']) . '</b>', $aux);
$aux = str_replace('{rank}', '<b>' . $lang[$_SESSION['player']['ran_name']] . '</b>', $aux);
echo $aux;
?>
</div>
<script src='<?php 
echo b1n_PATH_JS;
?>
/fix.js'></script>