Upload files to "website/game"
This commit is contained in:
parent
766fa39b31
commit
ebb776db0d
16
website/game/frame.html
Normal file
16
website/game/frame.html
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<HTML>
|
||||||
|
<HEAD><TITLE>Frontier II</TITLE></HEAD>
|
||||||
|
|
||||||
|
<FRAMESET ROWS="28,*" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>
|
||||||
|
<FRAMESET COLS="*,100" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>
|
||||||
|
<FRAME SRC="menu.html" NAME="MENU" NORESIZE SCROLLING="NO" MARGINWIDTH="0" MARGINHEIGHT="0">
|
||||||
|
<FRAME SRC="tray.php" NAME="TRAY" NORESIZE SCROLLING="NO" MARGINWIDTH="0" MARGINHEIGHT="0">
|
||||||
|
</FRAMESET>
|
||||||
|
<FRAME SRC="homepage.php" NAME="MAIN" NORESIZE SCROLLING="YES" MARGINWIDTH="10" MARGINHEIGHT="10">
|
||||||
|
<NOFRAMES>
|
||||||
|
<P>Frontier II uses HTML frames. You browser either does not support
|
||||||
|
frames, or is configured not to use them.
|
||||||
|
</NOFRAMES>
|
||||||
|
</FRAMESET>
|
||||||
|
|
||||||
|
</HTML>
|
||||||
19
website/game/homepage.php
Normal file
19
website/game/homepage.php
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<HTML>
|
||||||
|
<BODY BGCOLOR="#000000" TEXT="#f0f0f0">
|
||||||
|
|
||||||
|
<TABLE HEIGHT="75%" WIDTH="75%" ALIGN="CENTER" VALIGN="MIDDLE"
|
||||||
|
CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>
|
||||||
|
|
||||||
|
<P>Welcome.
|
||||||
|
|
||||||
|
<P>(In the future, this screen will give you a quick summary of your
|
||||||
|
status, and if you have any new messages.)
|
||||||
|
|
||||||
|
<P>Update: The message system should work. Use the "quicknote" feature,
|
||||||
|
which for now sends the message to all characters in the game.
|
||||||
|
(Please sign your own name, because the "from" field is temporarily
|
||||||
|
just the #id instead of your character name.)
|
||||||
|
|
||||||
|
</TD></TR></TABLE>
|
||||||
|
|
||||||
|
</BODY></HTML>
|
||||||
14
website/game/menu.html
Normal file
14
website/game/menu.html
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<HTML>
|
||||||
|
<BODY BGCOLOR="#d0d0d0" TEXT="#000000">
|
||||||
|
|
||||||
|
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"><TR>
|
||||||
|
<TD> FrontierII </TD>
|
||||||
|
<TD> [ <A HREF="msg.php" TARGET="MAIN">COMMLINK</A> ] </TD>
|
||||||
|
<TD> [ DATALINK ] </TD>
|
||||||
|
<TD> [ ACTIONS ] </TD>
|
||||||
|
<TD> [ <A HREF="status.php" TARGET="MAIN">STATUS</A> ] </TD>
|
||||||
|
<TD> [ SIGNOFF ] </TD>
|
||||||
|
</TR></TABLE>
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
81
website/game/status.php
Normal file
81
website/game/status.php
Normal file
|
|
@ -0,0 +1,81 @@
|
||||||
|
<HTML><HEAD>
|
||||||
|
<TITLE>Frontier II</TITLE>
|
||||||
|
</HEAD><BODY BGCOLOR="#000000" TEXT="#f0f0f0">
|
||||||
|
|
||||||
|
<TABLE ALIGN="CENTER" VALIGN="CENTER" WIDTH="90%" HEIGHT="90%" BORDER="0">
|
||||||
|
<TR><TD>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
session_start();
|
||||||
|
require($_SERVER['DOCUMENT_ROOT'].'/include.php');
|
||||||
|
|
||||||
|
if ($_SESSION['cid'] != '')
|
||||||
|
{ // Logged in
|
||||||
|
|
||||||
|
$cid = $_SESSION['cid'];
|
||||||
|
|
||||||
|
$sql = "SELECT * FROM `character` WHERE `id` = '$cid'";
|
||||||
|
$result = mysqli_query($mysqli, $sql) or die($gameerror . 'S-Q01');
|
||||||
|
$row = mysqli_fetch_assoc($result);
|
||||||
|
|
||||||
|
$cname = $row['name'];
|
||||||
|
$time = $row['time'];
|
||||||
|
$credits = $row['credits'];
|
||||||
|
$star = $row['location'];
|
||||||
|
$status = $row['status'];
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<P>$cname
|
||||||
|
<BR>Hours: $time
|
||||||
|
<BR>Credits: $credits
|
||||||
|
<BR>Status: ";
|
||||||
|
|
||||||
|
if ($status == 1) {
|
||||||
|
echo "travelling";
|
||||||
|
} elseif ($status == 2) {
|
||||||
|
echo "deployed";
|
||||||
|
} else {
|
||||||
|
echo "idle";
|
||||||
|
}
|
||||||
|
|
||||||
|
$sql = "SELECT * FROM `star` WHERE `id` = '$star'";
|
||||||
|
$result = mysqli_query($mysqli, $sql) or die($gameerror . 'S-Q02');
|
||||||
|
$row = mysqli_fetch_assoc($result);
|
||||||
|
|
||||||
|
$sname = $row['name'];
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<BR>Location: $sname
|
||||||
|
|
||||||
|
<P>Fleets in this sector:";
|
||||||
|
|
||||||
|
$sql = "SELECT * FROM `character` WHERE `location` = '$star'";
|
||||||
|
$result = mysqli_query($mysqli, $sql) or die($gameerror . 'S-Q03');
|
||||||
|
|
||||||
|
$num = mysqli_num_rows($result);
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
while ($i < $num)
|
||||||
|
{ // display others in the region
|
||||||
|
|
||||||
|
$row = mysqli_fetch_assoc($result);
|
||||||
|
$ocname = $row['name'];
|
||||||
|
|
||||||
|
echo "<BR>$ocname";
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else { echo $gameseserr; } // Not logged in
|
||||||
|
|
||||||
|
mysqli_close($mysqli);
|
||||||
|
|
||||||
|
echo "</TD></TR></TABLE>";
|
||||||
|
|
||||||
|
echo $footer;
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
</BODY></HTML>
|
||||||
28
website/game/tray.php
Normal file
28
website/game/tray.php
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<HTML><BODY BGCOLOR="#303030" TEXT="#F5F5F5">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
session_start();
|
||||||
|
require($_SERVER['DOCUMENT_ROOT'].'/include.php');
|
||||||
|
|
||||||
|
$cid = $_SESSION['cid'];
|
||||||
|
|
||||||
|
$sql = "SELECT `id`, `time`, `credits` FROM `character` WHERE `id` = '$cid'";
|
||||||
|
$result = mysqli_query($mysqli, $sql) or die("Error.");
|
||||||
|
$num = mysqli_num_rows($result);
|
||||||
|
|
||||||
|
if ($num == 1) {
|
||||||
|
|
||||||
|
$row = mysqli_fetch_assoc($result);
|
||||||
|
$time = $row['time'];
|
||||||
|
$cred = $row['credits'];
|
||||||
|
|
||||||
|
echo "$time hrs, $cred cr";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
mysqli_close($mysqli);
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
</BODY></HTML>
|
||||||
Loading…
Reference in a new issue