Ejemplo n.º 1
0
             $main_content .= 'Selected player is not on your account?! Hax?';
         }
     } else {
         $main_content .= 'Missing one of bid parameters?! Hax?';
     }
 }
 if (!$bidded) {
     // show bid form
     $main_content .= '<form action="index.php" method="post">
         <input type="hidden" name="subtopic" value="houses" />
         <input type="hidden" name="action" value="bid" />
         <input type="hidden" name="house" value="' . $house->getID() . '" />
         <input type="hidden" name="do_bid" value="1" />
         <table border=0 cellspacing=1 cellpadding=4 width=100%>
             <tr bgcolor="' . $config['site']['vdarkborder'] . '" class=white>
                 <td colspan="2" style="color:white;"><b>Bid at auction of house ' . $house->getName() . ' placed in ' . $towns_list[$house->getTown()] . '</b></td>
             </tr>
             <tr bgcolor="' . $config['site']['darkborder'] . '">
                 <td><b>Owner:</b></td>
                 <td><select name="bidder">';
     foreach (Visitor::getAccount()->getPlayers() as $accountPlayer) {
         $main_content .= '<option value="' . $accountPlayer->getID() . '"';
         if ($accountPlayer->getID() == $house->getHighestBidder()) {
             $main_content .= 'selected="selected"';
         }
         $main_content .= '>' . htmlspecialchars($accountPlayer->getName()) . '</option>';
     }
     $main_content .= '</select></td>
             </tr>
             <tr bgcolor="' . $config['site']['lightborder'] . '">
                 <td width="200px"><b>Your maximum offer:</b></td>