$db->Execute("INSERT INTO $dbtables[players] SET character_name='Unowned'");
	  // Create a random email and password
	  $UnownedPassword = createRandomPassword();
	  $db->Execute("UPDATE `$dbtables[players]` SET `player_id` = '0', `cleared_defences` = NULL, `subscribed` = NULL, email = '$UnownedPassword', password = '******' WHERE `character_name` = 'Unowned' LIMIT 1");
      echo "<BR><BR><center><B>Your admin login is: <BR>";
      echo "<BR>Username: $admin_mail";
      echo "<BR>Password: $password<BR></B></center>";
      newplayer($admin_mail, "The Federation", $password, "The Orb");
  	  $db->Execute("UPDATE $dbtables[players] SET player_id = '1', `cleared_defences` = NULL, `subscribed` = NULL WHERE `email` = '$admin_mail' LIMIT 1");
	  $db->Execute("UPDATE $dbtables[ships] SET player_id = '1' WHERE player_id=2 LIMIT 1");
      PrintFlush("<BR><BR><center><BR><B>Congratulations! Universe created successfully.<BR>");
      PrintFlush("Click <A HREF=login.php>here</A> to return to the login screen.</B></center>");
      break;

// Pre-stage, What's the password?
   default:
      echo "<form action=create_universe.php method=post>";
      echo "Password: <input type=password name=swordfish size=20 maxlength=20>&nbsp;&nbsp;";
      echo "<input type=submit value=Submit><input type=hidden name=step value=1>";
      echo "<input type=reset value=Reset>";
      echo "</form>";
      break;
}

// Done
$StopTime=$BenchmarkTimer->stop();
$Elapsed=$BenchmarkTimer->elapsed();
PrintFlush("<br>Elapsed Time - $Elapsed");
include("footer.php");
?>
示例#2
0
 function Table_Footer($footer = '')
 {
     if (!empty($footer)) {
         PrintFlush("    <tr>\n");
         PrintFlush("      <td width=\"100%\" colspan=\"2\" bgcolor=\"#9999cc\" align=\"left\"><font color=\"#000000\" size=\"1\">{$footer}</font></td>\n");
         PrintFlush("    </tr>\n");
     }
     PrintFlush("  </table>\n");
     PrintFlush("  </center>\n");
     PrintFlush("</div><p>\n");
 }
示例#3
0
        echo "<input type=hidden name=engage value=2>";
        echo "<input type=hidden name=swordfish value={$swordfish}>";
        echo "<input type=submit value=Next>";
        echo "</form>";
        break;
    case "9":
        transferData(2);
        echo "Copied players, accounts and zones.<br>Click next to restart game!";
        echo "<form action=new_game.php method=post>";
        echo "<input type=hidden name=step value=10>";
        echo "<input type=hidden name=engage value=2>";
        echo "<input type=hidden name=swordfish value={$swordfish}>";
        echo "<input type=submit value=Next>";
        echo "</form>";
        break;
    case "10":
        startGame();
        echo "Game restarted!<BR>";
        break;
    default:
        echo "<form action=new_game.php method=post>";
        echo "Password: <input type=password name=swordfish size=20 maxlength=20>&nbsp;&nbsp;";
        echo "<input type=submit value=Submit><input type=hidden name=step value=1>";
        echo "<input type=reset value=Reset>";
        echo "</form>";
        break;
}
$StopTime = $BenchmarkTimer->stop();
$Elapsed = $BenchmarkTimer->elapsed();
PrintFlush("<br>Elapsed Time: {$Elapsed}");
include "footer.php";