Upload files to "website"

This commit is contained in:
Justin Pope 2024-09-19 03:00:59 +00:00
parent 7480285825
commit 160f456ae1
5 changed files with 243 additions and 0 deletions

31
website/include.php Normal file
View file

@ -0,0 +1,31 @@
<?php
# customizable configuration variables
$config_maxchars = 2;
# static global variables
# setup SQL connection
$hostname = "localhost";
require($_SERVER['DOCUMENT_ROOT'].'/../secret.php'); // only viewable to apache/php, not to world
$mysqli = mysqli_connect($hostname,$sqluser,$sqlpass,$database) or die("GAME: SQL connection error.");
# game strings
$gamever = "0.2.00 (2024-07-31)";
$gameroot = "https://frontier.popelore.net";
$gameerror = "<P><FONT COLOR=\"RED\">ERROR:</FONT> Database query failed.
<P>There has been an error accessing the database. Please
notify the administors by sending an email to the discussion
list with what you were trying to do, and include the
following error code: ";
$gameseserr = "<P><FONT COLOR=\"RED\">ERROR:</FONT> Not authenticated.
<P>Either you did not log in, or your session timed out.
<P>Please <A HREF=\"$gameroot/index.html\">log in</A> again.";
$footer = "<P><HR><P ALIGN=\"CENTER\"><FONT SIZE=\"-1\">Version ".$gamever.". Copyright &copy; 2024 Justin Pope.</FONT>";
?>