Location: PHPKode > projects > Merchant Empires > merchempires/merchantempires/index.php3
<?php
/****************************************************************************
*    Copyright (C) 2000 Bryan Brunton
*
*    This program is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with this program; if not, write to the Free Software
*    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
****************************************************************************/

page_open(array("sess" => "ME_Session_Uncached", "auth" => "ME_Auth", "user" => "ME_User"));
require("./merchantempiresdefines.php");

$db = new ME_DB;
$query = sprintf("select * from auth_user where user_id = '%s'", $user->id);
$db->query($query);
$db->next_record();

if ( $db->f("suspended") == 1 or $db->f("validated") == 0 ) {
  $sess->unregister("player_id");
  $sess->delete();
  page_open(array("auth" => "ME_Auth"));
}
?>

<html><head>
<META NAME="keywords" CONTENT="merchant empires, games, strategy, trade wars, free, open source, play, galaxy, rpg, game, merchants, empire, war">
<title>Merchant Empires: Login</title>
<link rel=stylesheet href="./merchantempires.css" type=text/css>
</head><body text=white background="./images/createbg.gif"><?php

include("./templates/script.js");
include("./templates/header.html");
?>

<table width=100%><tr>
<td width=100 vAlign=top><?php

$db_2 = new ME_DB_Xml;
$db_2->add_parameter("time", date ("Y H:i:s"));
echo $db_2->get_transform("./xslt/mainmenu_small.xslt", "");
?>

</td>
<td vAlign=top width=650>

<table border=0 cellPadding=0 cellSpacing=0 width=450> 
  <tr> 
    <td bgColor=#993300> 
      <table border=0 cellPadding=5 cellSpacing=1 width="100%"><?php

if ( $db->f("validated") == 0 ) {
?>
        <tr>
          <td bgColor=#330000><font color=#ffffff face=arial,helvetica,swiss size=4>Please Validate
          </font><BR clear=all></td>
        </tr>
        <tr>
          <td class=clsNrmTxt>
             Your user has not been validated.  Until you validate your user, you may not join the game of Merchant Empires.<br><br>
            You may validate <a href=<?php printf("%s", URL); ?>verify.php>here</a>.
          </td>
        </tr><?php
  
  $auth->logout();  
} else {

  if ( $db->f("suspended") == 1)  {    
?>
        <tr>
          <td bgColor=#330000><font color=#ffffff face=arial,helvetica,swiss size=4>User Suspended
          </font><BR clear=all></td>
        </tr>
        <tr>
          <td class=clsNrmTxt>
             Your user has suspended.  Most users are suspended due to bad conduct.<br><br>
            You may visit the Merchant Empire's project page <a href=http://www.sourceforge.net/forum/?group_id=1452>here</a> and
            enquire in the player discussion area as to why you have been suspended.
          </td>
        </tr><?php

    $auth->logout();
  } else {
    $query = sprintf("update auth_user set user_ip = '%s' where user_id = '%s'", $REMOTE_ADDR, $user->id);
    $db->query($query);

    $query = sprintf("update active_sessions set player_ip = '%s' where sid = '%s'", $REMOTE_ADDR, $sess->id);
    $db->query($query);
  ?>
        <tr>
          <td class=clsHedTxt id=red1>Merchant Empires News
           <br></td>
        </tr>
        <tr>
          <td class=clsNrmTxt>
           <br>
		Features recently implemented / bugs fixed:<br>
		--  Added credits from normal and military bounties to player score.<br>
		--  The comparison to see if a merchant can see a cloaked merchant is now based on level, not experience.  Same level merchants can now see each other.  This is more realistic and simplifies who you need to be worried about when moving through enemy space.<br>
		--  Created the hall of fame table.  No UI yet.  If you want to be in there, I suggest killing as many high level merchants as possible, trade as much as you can in the next 10 days.<br>
		--  MA treaty works for defenders.<br>
		--  New treaty type: Mutual Assistance.  Merchants with a Mutual Assistance treaty will team up when attacking.  This treaty type can be offered in addition to Free Movement.  It doesn't replace or supercede FM.  I will enable this for defenders asap.<br>
		--  Fixed a number of the notable bugs on SF.  I will fix the last few major bugs before pushing a few features in before the games end: cloakable scouts, new treaty type for alliance mutual attack/defense.<br>
		--  Both games will be ending on 05/15 and a new game starting shortly after.  Two major changes to the game require restarting: (1) hexagonal maps (2) dynamic goods, or goods that appear and disappear at ports over time.<br><br>
			Final scoring mechanism for the games hasn't been coded yet.  Major factors in alliance weighting will not only be aggregate exp, but total planets owned and planetary build levels will be major factors.  There will also be 
			scoring for top "trader" and "warrior" merchants.<br>
		--  Tractor Beams will be used, in part, to tow and place the "automated trading drone ships" which I am working on.<br>
		--  You can actually purchase the Tractor Beam now.  Reduced TB lock time to 45 seconds.  If it is not physically possible to tow a ship, then the tow link will not appear on the current sector screen.  The amount of seconds before TB locks on will appear in the current sector screen.<br>
		--  Tractor Beam now available at Hyde Dynamics.  Tractor Beam takes 60 seconds to lock on the target ship.  Once locked, the target ship can be towed.  Towing a ship expends 2.5 times the normal amount of turns per sector.  There are some limits to towing.  Any ship with under 250 max cargo and 500 max shields + armor is towable.  If the towing ship has less than 250 max cargo and less than 750 shields + armor, and the target ship has greater than 250 max cargo and 500 shields + armor, then a tow is not possible.<br>
           </td>
        </tr><?php
  }
}
?>

      </table>
    </td>
  </tr>
</table>
<br>
<table border=0 cellPadding=0 cellSpacing=0 width=450>
  <tr>
    <td bgColor=#993300>
      <table border=0 cellPadding=5 cellSpacing=1 width="100%">
        <tr>
          <td class=clsHedTxt id=red1>The Merchant Empires Project
           <br></td>
        </tr>
        <tr>
         <td class=clsNrmTxt>
          Merchant Empires is <a href=http://www.opensource.org>open source</a> software.<br><br>
          Visit the Merchant Empires project page <a href=http://merchempires.sourceforge.net>here</a>
          if you would like to:<br><br>
          (1) Join in the development of Merchant Empires<br>
          (2) Make suggestions<br>          
          (3) Report a bug<br>
          (4) Download Merchant Empires<br>
           </td>
      </table>
    </td>
  </tr>
</table>
<br>
<table border=0 cellPadding=0 cellSpacing=0 width=450>
  <tr>
    <td bgColor=#993300>
      <table border=0 cellPadding=5 cellSpacing=1 width="100%">
        <tr>
          <td class=clsHedTxt id=red1>Related Sites
           <br></td>
        </tr>
        <tr>
         <td class=clsNrmTxt>
          <a href="http://dir.yahoo.com/Recreation/Games/Computer_Games/Titles/Strategy/Turn_Based/Trade_Wars_2002/">Yahoo Listing</a> of Trade Wars sites<br>
          <a href="http://www.tradewars.com/">Trade Wars</a>: the next generation of official Trade Wars development<br>
					<a href="www.me-players.com">ME Players</a>: ME and ME-like game development discussion<br><br>
					<b>Alliance Web Sites</b><br>
					&nbsp;&nbsp;<a href="www.whitehat.dk/lads">LADS</a><br>
					&nbsp;&nbsp;<a href="www.me-players.com">Associated Powers</a> (defunct?)<br><br>

					&nbsp;&nbsp;Message joe1 to put your alliance url here.<br>
           </td>
      </table>
    </td>
  </tr>
</table>

</td></tr></table>
</body></html><?php

page_close();
?>
Return current item: Merchant Empires