32 lines
1 KiB
PHP
32 lines
1 KiB
PHP
<?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 © 2024 Justin Pope.</FONT>";
|
|
|
|
?>
|