From 3bc1943a3f3aa2fc22b8b576bf6cbc36fab21e86 Mon Sep 17 00:00:00 2001 From: jupo Date: Thu, 19 Sep 2024 03:01:23 +0000 Subject: [PATCH] Upload files to "website" --- website/password.php | 73 ++++++++++++++++++++++++++++++++++++++ website/playchar.php | 49 ++++++++++++++++++++++++++ website/playuser.php | 81 +++++++++++++++++++++++++++++++++++++++++++ website/register.html | 45 ++++++++++++++++++++++++ website/rules.html | 57 ++++++++++++++++++++++++++++++ 5 files changed, 305 insertions(+) create mode 100644 website/password.php create mode 100644 website/playchar.php create mode 100644 website/playuser.php create mode 100644 website/register.html create mode 100644 website/rules.html diff --git a/website/password.php b/website/password.php new file mode 100644 index 0000000..8430d0b --- /dev/null +++ b/website/password.php @@ -0,0 +1,73 @@ +Frontier II + +

Frontier II

+

Oops! Your old password was not valid. Please + go to the player page and try again. + "; + + } + + } else { // New passwords blank or didn't match + + echo "Frontier II + +

Frontier II

+

Oops! Your new passwords didn't match, or you left + them blank. Please go to the player page + and try again. + "; + + } + +} else { // Not logged in + + echo "Frontier II + +

Frontier II

+

ERROR: Not authenticated. +

Either you did not log in, or your session timed out. +

Please log in again. + "; + +} + +mysqli_close($mysqli); + +?> diff --git a/website/playchar.php b/website/playchar.php new file mode 100644 index 0000000..9890560 --- /dev/null +++ b/website/playchar.php @@ -0,0 +1,49 @@ +Frontier II + +

Frontier II

+

Error! You appear to be trying + to play a character that isn't yours! Please go to the + player page + and try again. + "; + +} + +mysqli_close($mysqli); + +?> diff --git a/website/playuser.php b/website/playuser.php new file mode 100644 index 0000000..d8c93f0 --- /dev/null +++ b/website/playuser.php @@ -0,0 +1,81 @@ + +Frontier II + +

Frontier II

+

Player Page

+ +Username: $player_nick (#$player_id) +
Real Name: $player_name +
[Edit Settings] + - [Log Out] + "; + + // Look up character list + $sql = "SELECT * FROM `character` WHERE `player_id` = '$player_id'"; + $result = mysqli_query($mysqli, $sql) or die($gameerror . "PU-Q02"); + $num = mysqli_num_rows($result); + + if ($num > 0) { // Display character list + + echo "

+ + "; + + $i = 0; + while ($i < $num) { + + $row = mysqli_fetch_assoc($result); + $char_id = $row['id']; + $char_name = $row['name']; + $char_time = $row['time']; + + echo " + "; + + $i++; + + } + + echo "
CharacterHoursStatus
$char_name$char_timen/a +
+ + +
"; + } + + if ($num < $config_maxchars) { // Provide new character option + + echo "

[Create New + Character] + "; + } + +} else { echo $gameseserr; } // Not logged in + +mysqli_close($mysqli); + +echo $footer; + +?> + + diff --git a/website/register.html b/website/register.html new file mode 100644 index 0000000..8723187 --- /dev/null +++ b/website/register.html @@ -0,0 +1,45 @@ + + +Frontier II - Registration + + + +

Frontier II

+

Registration

+ +

If you have not read the Social Contract, +please do so first. You are expected to follow these rules of conduct +while playing Frontier. + +

When you are ready, the following information is required to create +a new Frontier account. Please be honest! Knowing the other players +in the game helps build a strong community and makes the game more fun +for everyone. + +

+

Real Name:
+Your name will be visible to other registered players. Please use your +full, real name. + +

Username:
+Your username is only used for logging into the game, and is not a +public part of your account. + +

Password:
+There are no password requirements (except that you must have one). +But don't blame me if you choose one that's easily guessed. + +

Email:
+Your email address will only be visible to game administrators. You +will have an opportunity to enter a "public" email address for other +players to see by editing your account settings after you register. + +

I have read and agree to +the terms of the Social Contract. (see above) + +

+ +


+ +

Copyright © 2024 Justin Pope. All rights reserved. + \ No newline at end of file diff --git a/website/rules.html b/website/rules.html new file mode 100644 index 0000000..d32a4a1 --- /dev/null +++ b/website/rules.html @@ -0,0 +1,57 @@ + + +Frontier II - Social Contract + + + +

Frontier II

+

Social Contract (aka Rules of Conduct)

+ +

Version 1.0: Effective February 5, 2005. + +

By creating a game account, you agree to follow these rules of +conduct. Violators of this contract may be subject to penalties ranging +from warnings to account deletion, based on severity and frequency. + +

1. PURPOSE. These rules are designed to facilitate fair, honest, +and respectful interactions between players. In any society, there must +be a framework of limitations that guide behaviors, and for the +diverse community of Frontier players, this is the universal +framework that we can all draw upon for guidance. + +

2. INTEGRITY. You are expected to play this game without cheating. + Cheating is defined as any action which gives one player an unfair + advatage over other players, and it is not tolerated in any form. + +

3. RESPECT. As you develop your characters over time, you may have + the chance to taunt the enemy or develop feuds with other players. + Remember that there are real people behind every character in this + game, all of different ages and backgrounds. Keep your language + clean, avoid explicit topics, and be mindful of how your words may + affect other players. + +

4. ROLEPLAY. Narratives of your characters' lives from day to day + are fun for some people, but certainly not required. This isn't what + we mean by roleplay. We do expect you to create unique, individual + identities for each character you play ("ROLE"), and portray this + identity consistently through your character's actions, behaviors, + and messages ("PLAY"). + +

5. FUN. The reason people play games is to have fun. Rulers + are entrusted with the principle means of creating and ending wars, + and fighting wars is the main focus of the game. Therefore, these few + people have the responsibility to consider the enjoyment of all + players in addition to personal and imperial motives of their + characters. + +

6. PRIVACY. Your name, and optionally, your email address, will be + shared with other players of the game for the purpose of enhancing + the entire game community. This is still considered private + information and may not be shared with any third parties who do not + have an active game account. + +


+ +

Copyright © 2024 Justin Pope. All rights reserved. + + \ No newline at end of file