BUY 1 Month Membership $5.00 usd (adds 31 days membership time to the account that you are currently logged in with.) Non-refundable.
@@ -152,13 +191,13 @@ h+=60;//h += 96;
-
+ ">
-
-
+ /web/paypalpayment.php">
+ /web/paypalgateway.php">
@@ -178,13 +217,13 @@ h+=60;//h += 96;
-
+ ">
-
-
+ /web/paypalpayment.php">
+ /web/paypalgateway.php">
@@ -246,13 +285,13 @@ Select:
(Gives your account Horse Isle currency for use in the game. You can earn Horse Isle money by playing the game. This is not required.) Non-refundable.
-
+ ">
-
-
+ /web/paypalpayment.php">
+ /web/paypalgateway.php">
@@ -271,13 +310,13 @@ Select:
-
+ ">
-
-
+ /web/paypalpayment.php">
+ /web/paypalgateway.php">
@@ -296,13 +335,13 @@ Select:
-
+ ">
-
-
+ /web/paypalpayment.php">
+ /web/paypalgateway.php">
@@ -322,7 +361,7 @@ Select:
Alternative Payment Methods: Check/Cash via postal mail
- Gift Payments: Pay for a different player
+ Gift Payments: /web/giftmembership.php>Pay for a different player
diff --git a/WebInterface/game-site/web/crosserver.php b/WebInterface/game-site/web/crosserver.php
index e532bf1..2c765e2 100644
--- a/WebInterface/game-site/web/crosserver.php
+++ b/WebInterface/game-site/web/crosserver.php
@@ -30,6 +30,77 @@ function getNoSubbedPlayersOnlineInServer($database)
return $onlineSubscribers->fetch_row()[0];
}
+function getUserMoney($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT Money FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserBankMoney($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT BankBalance FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserLoginDate($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT LastLogin FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserQuestPoints($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT QuestPoints FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserTotalLogins($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT TotalLogins FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+
function getNoModPlayersOnlineInServer($database)
{
include('config.php');
diff --git a/WebInterface/game-site/web/header.php b/WebInterface/game-site/web/header.php
index 9b6aa3b..8062f90 100644
--- a/WebInterface/game-site/web/header.php
+++ b/WebInterface/game-site/web/header.php
@@ -110,7 +110,7 @@ color: #440000;
if(is_logged_in())
{
$username = $_SESSION['USERNAME'];
- echo('');
+ echo('');
}
else
{
diff --git a/WebInterface/master-site/crosserver.php b/WebInterface/master-site/crosserver.php
index e532bf1..2c765e2 100644
--- a/WebInterface/master-site/crosserver.php
+++ b/WebInterface/master-site/crosserver.php
@@ -30,6 +30,77 @@ function getNoSubbedPlayersOnlineInServer($database)
return $onlineSubscribers->fetch_row()[0];
}
+function getUserMoney($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT Money FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserBankMoney($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT BankBalance FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserLoginDate($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT LastLogin FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserQuestPoints($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT QuestPoints FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+function getUserTotalLogins($database, $id)
+{
+ include('config.php');
+ $dbname = $database;
+ $connect = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname) or die("Unable to connect to '$dbhost'");
+ $stmt = $connect->prepare("SELECT TotalLogins FROM UserExt WHERE Id=?");
+ $stmt->bind_param("i", $id);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ return intval($result->fetch_row()[0]);
+
+}
+
+
function getNoModPlayersOnlineInServer($database)
{
include('config.php');
diff --git a/WebInterface/master-site/index.php b/WebInterface/master-site/index.php
index 3aea459..414c399 100755
--- a/WebInterface/master-site/index.php
+++ b/WebInterface/master-site/index.php
@@ -61,30 +61,30 @@ HREF=/web/parents.php>Parent's Guide
Players Online Now
Subscribers Online Now
Moderators Online Now
fetch_row()[0];
if($hasIntl)
-echo numfmt_format($fmt, $activeUserCount);
+ echo numfmt_format($fmt, $activeUserCount);
else
-echo $activeUserCount;
+ echo $activeUserCount;
?> Active Accounts
ABOUT:
Horse Isle is a vast multi-player horse based world. It allows for many players to
diff --git a/WebInterface/master-site/web/header.php b/WebInterface/master-site/web/header.php
index abd01a4..8c4f3a2 100644
--- a/WebInterface/master-site/web/header.php
+++ b/WebInterface/master-site/web/header.php
@@ -111,7 +111,7 @@ color: #440000;
if(is_logged_in())
{
$username = $_SESSION['USERNAME'];
- echo('Logged in as: '.$username.'
');
+ echo('Logged in as: '.htmlspecialchars($username).'
');
}
else
{