Ejemplo n.º 1
0
 public function buyItem($productid, $realmid, $characterid)
 {
     // Send the item to the character mailbox
     $model = $this->getModel();
     $character = $model->getCharacterInfo($realmid, $characterid);
     $item = $model->getItemInfo($productid);
     if (!$model->sendItem($item, $realmid, $character)) {
         echo "<strong>Error sending item to character. Contact administrator.</strong><br/><br/>";
         JTrinityCoreUtilities::ShowUserPoints(false);
         return false;
     }
     // Show custom message ok
     print JText::sprintf('COM_JTRINITYCORE_BUYITEM_OK', $item->name, $character->name);
 }
Ejemplo n.º 2
0
<?php

// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<h1 class="contentheading">
<?php 
echo JText::_('COM_JTRINITYCORE_BUYPOINTS_TITLE');
?>
</h1 class="contentheading">
<?php 
$user_points = JTrinityCoreUtilities::ShowUserPoints();
?>
<br/><br/>
<form action="<?php 
echo JRoute::_('index.php?option=com_jtrinitycore&amp;view=buypoints&amp;layout=paypalexpresscheckout');
?>
" method="post" name="frmPuntos" id="frmPuntos">
<p style="padding-right: 25px;">
 
</p>
<input type="radio" name="typebuy" checked value="custom">
<?php 
echo JText::_('COM_JTRINITYCORE_ENTER_POINTS');
?>
<input type="text" size=6 name="points" value="5"><br/><br/>
<?php 
/*
<input type="radio" name="typebuy"  value="pack">&nbsp;&nbsp;<?php  echo JText::_('COM_JTRINITYCORE_ENTER_POINTS_SELECT_PACK');?> <br/>

<p style="padding-left: 25px;">
Ejemplo n.º 3
0
<?php 
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
JTrinityCoreUtilities::CheckUserLogged();
//$document = JFactory::getDocument();
//JText::script('COM_JTRINITYCORE_ALERT_SELECTCHARACTER');
include 'media/com_jtrinitycore/js/listcharacters.php';
?>



<?php 
echo '<h1 class="contentheading">' . JText::_('COM_JTRINITYCORE_DONATION_SHOP_GOLD') . '</h1>';
// show user points
JTrinityCoreUtilities::ShowUserPoints(false);
?>


<form action="<?php 
echo JRoute::_('index.php?option=com_jtrinitycore&amp;view=buygold&amp;layout=buygold');
?>
" onsubmit="return validateForm();" method="post" name="frmBuy" id="frmBuy">

<?php 
JTrinityCoreUtilities::getRealmsOptionHTML(true);
?>
<select name="characterid" id="characterid">
<option  value="0"><?php 
echo JText::_('COM_JTRINITYCORE_SELECTCHARACTER');
?>