diff --git a/WebInterface/game-site/account.php b/WebInterface/game-site/account.php index ebb215b..79217fb 100755 --- a/WebInterface/game-site/account.php +++ b/WebInterface/game-site/account.php @@ -71,7 +71,7 @@ if(!is_logged_in()) // Get account data -$newUser = getUserExistInExt($dbname, $_SESSION['PLAYER_ID']); +$newUser = !getUserExistInExt($dbname, $_SESSION['PLAYER_ID']); if(!$newUser){ @@ -243,8 +243,8 @@ h+=60;//h += 96; "> - - + + /web/paypalpayment.php"> @@ -269,8 +269,8 @@ h+=60;//h += 96; "> - - + + /web/paypalpayment.php"> @@ -296,8 +296,8 @@ h+=60;//h += 96; - - + + @@ -337,8 +337,8 @@ Select: "> - - + + /web/paypalpayment.php"> @@ -362,8 +362,8 @@ Select: "> - - + + /web/paypalpayment.php"> @@ -387,8 +387,8 @@ Select: "> - - + + /web/paypalpayment.php"> diff --git a/WebInterface/game-site/web/crosserver.php b/WebInterface/game-site/web/crosserver.php index 9918230..f87195f 100644 --- a/WebInterface/game-site/web/crosserver.php +++ b/WebInterface/game-site/web/crosserver.php @@ -12,6 +12,7 @@ function GenHmacMessage(string $data, string $channel) return $hmac; } + function getPlayerList($database) { include('config.php'); @@ -163,7 +164,7 @@ function getUserExistInExt($database, $id) $stmt->execute(); $result = $stmt->get_result(); - return intval($result->fetch_row()[0]) <= 0; + return intval($result->fetch_row()[0]) >= 1; } @@ -251,7 +252,7 @@ function isUserOnline($database, $id) return $count>0; } -function getNoModPlayersOnlineInServer($database) +function getNoModPlayersOnlineInServer($database) { include('config.php'); $dbname = $database; @@ -317,6 +318,19 @@ function getNoPlayersOnlineGlobal() return $playersOn; } +function userExistAny($playerId) +{ + include('servers.php'); + for($i = 0; $i < count($server_list); $i++) + { + if(userid_exists($server_list[$i]['database'], $playerId)){ + return true; + } + } + return false; +} + + function getNoSubbedPlayersOnlineGlobal() { include('servers.php'); diff --git a/WebInterface/game-site/web/paypalpayment.php b/WebInterface/game-site/web/paypalpayment.php index 06ee935..32b05f5 100755 --- a/WebInterface/game-site/web/paypalpayment.php +++ b/WebInterface/game-site/web/paypalpayment.php @@ -1,4 +1,6 @@ - +
@@ -14,4 +16,6 @@ Click back to your ACCOUNT page to see any credited s PARENTS: please email support@horseisle.com from the paypal email or signup email to block chat, or limit time online for this account if you want to.
- \ No newline at end of file + \ No newline at end of file diff --git a/WebInterface/game-site/web/ppemu.php b/WebInterface/game-site/web/ppemu.php index f8f8404..f31b627 100644 --- a/WebInterface/game-site/web/ppemu.php +++ b/WebInterface/game-site/web/ppemu.php @@ -13,26 +13,30 @@ if(!is_logged_in()){ } $money = getUserMoney($dbname, $_SESSION['PLAYER_ID']); -$subbed = getUserSubbed($dbname, $_SESSION['PLAYER_ID']); -$subbedUntil = getUserSubTimeRemaining($dbname, $_SESSION['PLAYER_ID']); -if(!$subbed) - $subbedUntil = time(); - -if(isset($_GET["go"], $_GET["qnt"], $_GET["itm"], $_GET["ret"])) +if(isset($_GET["go"], $_GET["qnt"], $_GET["itm"], $_GET['to'], $_GET["ret"])) { + + $targetUser = $_GET['to']; + $subbed = getUserSubbed($dbname, $targetUser); + $subbedUntil = getUserSubTimeRemaining($dbname, $targetUser); + $moneyTarget = getUserMoney($dbname, $targetUser); + + if(!$subbed) + $subbedUntil = time(); + + if($_GET["go"] == 1) { - $itm = $_GET["itm"]; - + $itm = $_GET["itm"]; if(strpos($itm, "One Month Horse Isle Membership") === 0){ $amount = 5; // NO CHEATING! $cost = $amount*$EXHANGE_RATE; if($money >= $cost) { setUserMoney($dbname, $_SESSION['PLAYER_ID'], $money-$cost); - setUserSubbed($dbname, $_SESSION['PLAYER_ID'], true); - setUserSubbedUntil($dbname, $_SESSION['PLAYER_ID'], $subbedUntil + 2678400); + setUserSubbed($dbname,$targetUser, true); + setUserSubbedUntil($dbname, $targetUser, $subbedUntil + 2678400); header("Location: ".$_GET["ret"]); } @@ -51,8 +55,8 @@ if(isset($_GET["go"], $_GET["qnt"], $_GET["itm"], $_GET["ret"])) if($money >= $cost) { setUserMoney($dbname, $_SESSION['PLAYER_ID'], $money-$cost); - setUserSubbed($dbname, $_SESSION['PLAYER_ID'], true); - setUserSubbedUntil($dbname, $_SESSION['PLAYER_ID'], $subbedUntil + 31622400); + setUserSubbed($dbname, $targetUser, true); + setUserSubbedUntil($dbname, $targetUser, $subbedUntil + 31622400); header("Location: ".$_GET["ret"]); @@ -91,7 +95,7 @@ if(isset($_GET["go"], $_GET["qnt"], $_GET["itm"], $_GET["ret"])) setUserMoney($dbname, $_SESSION['PLAYER_ID'], $money-$cost); $money-=$cost; - setUserMoney($dbname, $_SESSION['PLAYER_ID'], $money+=$amountGained); + setUserMoney($dbname, $targetUser, $moneyTarget+=$amountGained); header("Location: ".$_GET["ret"]); } @@ -111,7 +115,7 @@ if(isset($_GET["go"], $_GET["qnt"], $_GET["itm"], $_GET["ret"])) if($money >= $cost) { setUserMoney($dbname, $_SESSION['PLAYER_ID'], $money-$cost); - addItemToPuchaseQueue($dbname, $_SESSION['PLAYER_ID'], 559, 1); + addItemToPuchaseQueue($dbname, $targetUser, 559, 1); header("Location: ".$_GET["ret"]); @@ -132,7 +136,7 @@ if(isset($_GET["go"], $_GET["qnt"], $_GET["itm"], $_GET["ret"])) if($money >= $cost) { setUserMoney($dbname, $_SESSION['PLAYER_ID'], $money-$cost); - addItemToPuchaseQueue($dbname, $_SESSION['PLAYER_ID'], 559, 5); + addItemToPuchaseQueue($dbname, $targetUser, 559, 5); header("Location: ".$_GET["ret"]); @@ -153,7 +157,7 @@ if(isset($_GET["go"], $_GET["qnt"], $_GET["itm"], $_GET["ret"])) } $quantity = 1; -if(!isset($_POST['item_name'], $_POST['amount'], $_POST['item_number'], $_POST['return'])) +if(!isset($_POST['item_name'], $_POST['amount'], $_POST['item_number'], $_POST['custom'], $_POST['return'])) { include("header.php"); @@ -161,6 +165,7 @@ if(!isset($_POST['item_name'], $_POST['amount'], $_POST['item_number'], $_POST[ include("footer.php"); exit(); } + if(isset($_POST['quantity'])) $quantity = intval($_POST['quantity']); @@ -170,6 +175,18 @@ $hasIntl = function_exists('numfmt_create'); if($hasIntl) $fmt = numfmt_create( 'en_US', NumberFormatter::DECIMAL ); +$toUser = $_POST['custom']; +$toUsername = ""; +if(!getUserExistInExt($dbname, $toUser)) +{ + include("header.php"); + echo("Cannot buy for a user who does not exist on this server."); + include("footer.php"); + exit(); +} +else{ + $toUsername = get_username($toUser); +} include("header.php"); ?> @@ -207,7 +224,7 @@ include("header.php"); ?> -

NOTE: $1USD = $ HorseIsle Money! (you have $)


Do you want to purchase?

Yes | No +

NOTE: $1USD = $ HorseIsle Money! (you have $)


This purchase is for User:
Do you want to purchase?

Yes | No \ No newline at end of file diff --git a/WebInterface/master-site/account.php b/WebInterface/master-site/account.php index 0de4146..88fdd31 100755 --- a/WebInterface/master-site/account.php +++ b/WebInterface/master-site/account.php @@ -122,7 +122,7 @@ for($i = 0; $i < count($server_list); $i++) } else { - $newUser = getUserExistInExt($database, $player_id); + $newUser = !getUserExistInExt($database, $player_id); if(!$newUser){ $loginDate = getUserLoginDate($database, $player_id); diff --git a/WebInterface/master-site/crosserver.php b/WebInterface/master-site/crosserver.php index ac40a92..f87195f 100644 --- a/WebInterface/master-site/crosserver.php +++ b/WebInterface/master-site/crosserver.php @@ -12,6 +12,7 @@ function GenHmacMessage(string $data, string $channel) return $hmac; } + function getPlayerList($database) { include('config.php'); @@ -163,7 +164,7 @@ function getUserExistInExt($database, $id) $stmt->execute(); $result = $stmt->get_result(); - return intval($result->fetch_row()[0]) <= 0; + return intval($result->fetch_row()[0]) >= 1; } diff --git a/WebInterface/master-site/web/giftmembership.php b/WebInterface/master-site/web/giftmembership.php index 3958356..70c7bf9 100755 --- a/WebInterface/master-site/web/giftmembership.php +++ b/WebInterface/master-site/web/giftmembership.php @@ -1,137 +1,238 @@ - -HORSE ISLE - Online Multiplayer Horse Game - - - - - - - - - - - - - - - - - - - - - - -
Welcome to Horse Isle 
- +
+ +
BUY 1 Month Membership $5.00usd (adds 31 days membership time to the account) Non-refundable. +
+ + + + + + + + + + + + + + + + +
+
- - - -
USER:
PASS:
(Forgot?)
+
 
-
+ + +
BUY Full Year Membership $40.00usd (adds 366 days membership time to the account. saves $20.00 off monthly subscription) Non-refundable. +
+ + + + + + + + + + + + + + + + +
+
+ + + + + + +
BUY $10,000 Horse Isle Currency per $1.00usd
+Select:
+ (gives Horse Isle currency for use in the game. You can earn Horse Isle money by playing the game, this is not required.) Non-refundable.
+ + + + + + + + + + + + + + + + +
+ + + +
+BUY Pawneer Order $8.00usd (allows ordering a custom breed/color/gender horse on server from Pawneer. This is not required, you can trade other players to get the breed you desire also.) Non-refundable. +
+ + + + + + + + + + + + + + + + +
+
+ + + +
+BUY 5 Pawneer Orders $30.00usd (save $10.00 - allows ordering 5 custom horses from Pawneer) Non-refundable. +
+ + + + + + + + + + + + + + + + +
+
+/web/checks.php>CASH PAYMENT OPTION +// +// +?> +

+ + + + + + + + +'); + + } + } + + include("footer.php"); + exit(); + } +?>
Gift membership payments.

The following will enable you to buy a subscription or bonus for any existing account on Horse Isle. Please BE SURE you know the EXACT playername and server that they play on, we cannot refund accidental payments on the wrong account. No refunds. ONLY make a payment if over 18. -
Horse Isle Gift Purchase For:
PLAYER NAME:(Exact Game Name!)
ON SERVER: (Be Sure!)

NOTE: The player given the gift is in no way notified that they have been given the gift. It is left up to you to notify them. They also have no way to access your payment info whatsoever.
- - - - -
-
-[ New Player Guide ]
-[ Rules ] -[ Terms and Conditions ] -[ Privacy Policy ]

-[ Expected Behavior ] -[ Contact Us ] -[ Credits ]
-Copyright © 2020 Horse Isle - - - - +
Horse Isle Gift Purchase For:
PLAYER NAME:(Exact Game Name!)
ON SERVER: (Be Sure!)

NOTE: The player given the gift is in no way notified that they have been given the gift. It is left up to you to notify them. They also have no way to access your payment info whatsoever. \ No newline at end of file diff --git a/WebInterface/master-site/web/paypalgiftpayment.php b/WebInterface/master-site/web/paypalgiftpayment.php new file mode 100644 index 0000000..8c52ee9 --- /dev/null +++ b/WebInterface/master-site/web/paypalgiftpayment.php @@ -0,0 +1,18 @@ + +
+
+ +Thank you for your Horse Isle PayPal GIFT Payment! Your generosity is sure to be appreciated by the player, and also by the artists supported by your payment.
+
+Your transaction has been completed, and a receipt for your purchase has been emailed to you from PayPal.
+You may log into your account at http://www.paypal.com/us to view details of this transaction.
+
+Purchases will be credited to the account usually within one minute, occasionally delays of up to an hour may occur. If you still do not find the payment credited, email support@horseisle.com, with the playername and paypal account email and we will track the payment.
+(NOTE: If you paid via paypal e-check it takes paypal 3-4 days to clear the check and notify us.)
+
+
+ \ No newline at end of file