implement gifting to ppemu

This commit is contained in:
Bluzume 2021-08-09 19:03:05 +12:00
parent be9b0ba8e0
commit ddbf1fd67b
8 changed files with 321 additions and 166 deletions

View file

@ -1,137 +1,238 @@
<HEAD>
<TITLE>HORSE ISLE - Online Multiplayer Horse Game</TITLE>
<META NAME="keywords" CONTENT="Horse Game Online MMORPG Multiplayer Horses RPG Girls Girly Isle World Island Virtual Horseisle Sim Virtual">
<META NAME="description" CONTENT="A multiplayer online horse world where players can capture, train, care for and compete their horses against other players. A very unique virtual sim horse game.">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="meta" href="http://horseisle.com/labels.rdf" type="application/rdf+xml" title="ICRA labels" />
<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://horseisle.com" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 1) gen true for "http://hi1.horseisle.com" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 1))' />
<style type="text/css">
hr {
height: 1;
color: #000000;
background-color: #000000;
border: 0;
}
a {
font: bold 14px arial;
color: #6E3278;
}
TH {
background-color: #EDE5B4;
padding: 1px 6px;
border: 2px dotted #6E3278;
font: small-caps 900 14px arial;
color: #000000;
}
TR.a0 {
background-color: #EDE5B4;
}
TR.a1 {
background-color: #D4CCA1;
}
TD {
font: 14px arial;
color: #000000;
}
TD.forum {
font: 12px arial;
color: #000000;
}
TD.forumlist {
padding: 1px 6px;
border: 2px dotted #6E3278;
background-color: #EDE5B4;
text-align: center;
font: bold 14px arial;
color: #000000;
}
TD.forumpost {
padding: 5px 10px;
border: 2px dotted #6E3278;
background-color: #EDE5B4;
text-align: left;
}
TD.adminforumpost {
padding: 5px 20px;
border: 2px dotted #6E3278;
background-color: #BFE9C9;
text-align: left;
}
TD.newslist {
padding: 4px 4px;
border: 2px dotted #6E3278;
background-color: #FFDDEE;
text-align: left;
font: 14px arial;
color: #000000;
}
FORUMSUBJECT {
font: bold 14px arial;
color: #004400;
}
FORUMUSER {
font: 12px arial;
color: #000044;
}
FORUMDATE {
font: 12px arial;
color: #444444;
}
FORUMTEXT {
font: 14px arial;
color: #440000;
}
<?php
include("../config.php");
include("../servers.php");
include("../common.php");
include("../crosserver.php");
include("header.php");
$host = 'http://'.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_QUOTES);
if(isset($_POST['PLAYERNAME'], $_POST['SERVER'])){
$server = htmlspecialchars($_POST['SERVER']);
$name = htmlspecialchars($_POST['PLAYERNAME']);
$serverObj = getServerById($server);
$serverDb = $serverObj['database'];
echo('<CENTER><B>Gift membership payments options</B></CENTER><BR>');
echo('<FONT COLOR=444444>Verifying existing playername and activity on server...<BR></FONT>');
if(!user_exists($name)){
echo('<FONT COLOR=RED>Player: '.$name.' not found on Horse Isle. Please make sure you know the EXACT playername! Press BACK button.</FONT>');
}
else
{
$userid = htmlspecialchars(get_userid($name));
$name = htmlspecialchars(get_username($userid));
echo('</FONT>Player: '.$name.' Found.<BR>');
echo('Player\'s account ID: '.$userid.'<BR>');
echo('<FONT COLOR=444444>Checking for an active account on server...<BR></FONT>');
if($serverObj == null)
{
echo('<FONT COLOR=RED>Server not found?</FONT>');
exit();
}
if(!userid_exists($serverDb, $userid))
{
echo('<FONT COLOR=RED>Player: '.$name.' does not have an active account on Server '.$server.' Please make sure you know the EXACT server they play on! Press BACK button.</FONT>');
}
else
{
echo('It appears they have an account on '.$server.'.<BR>');
$newUser = !getUserExistInExt($serverDb, $userid);
if(!$newUser){
$totalLogins = getUserTotalLogins($serverDb, $userid);
$subbedUntil = getUserSubTimeRemaining($serverDb, $userid);
}
else
{
$totalLogins = 0;
$subbedUntil = 0;
}
echo('They have logged into it '.htmlspecialchars($totalLogins).' times.<BR>');
if($subbedUntil <= 0)
{
echo('They have never been subscribed to this server.<BR>');
}
else
{
echo('They are/were subscribed to this server until: '.date("F j, Y", $subbedUntil).'<BR>');
}
// put payment options here;
$pp_uri = str_replace('[GAMESITE]', $serverObj['site'], $pp_uri);
$gameServerDomain = parse_url($serverObj['site'], PHP_URL_HOST);
echo('<HR>The following Payment Options are Available:<BR>
<CENTER><TABLE WIDTH=500><TR><TD class=forumlist>
</style>
</HEAD>
<BODY BGCOLOR=E0D8AA>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR WIDTH=100%>
<TD WIDTH=512 ROWSPAN=3><A HREF=/><IMG SRC=/web/hoilgui1.gif ALT="Welcome to Horse Isle" BORDER=0></A></TD>
<TD WIDTH=100% BACKGROUND=/web/hoilgui2.gif>&nbsp;</TD>
<TD WIDTH=29><IMG SRC=/web/hoilgui3.gif></TD>
</TR>
<TR>
<TD WIDTH=100% BACKGROUND=/web/hoilgui4.gif align=right>
<B>
</TD></TR><TR><TD class=forumlist>
<TABLE WIDTH=100%>
<TR><TD><B>BUY 1 Month Membership <FONT COLOR=GREEN>$5.00</FONT>usd</B> <I><FONT SIZE=-1>(adds 31 days membership time to the account) Non-refundable.</FONT></I></TD><TD>
<form action="'.$pp_uri.'" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypal@horseisle.com">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_name" value="One Month Horse Isle Membership-gift on '.$gameServerDomain.'">
<input type="hidden" name="item_number" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="custom" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="amount" value="5.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="'.$host.'/web/paypalgiftpayment.php">
<input type="hidden" name="notify_url" value="'.$serverObj['site'].'/web/paypalgateway.php">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0"
name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</TD></TR></TABLE>
<TABLE CELLPADDING=0 CELLSPACING=2 BORDER=0><FORM METHOD=POST ACTION=/account.php>
<TR><TD><B>USER:</B></TD><TD><INPUT TYPE=TEXT SIZE=14 NAME=USER></TD></TR>
<TR><TD><B>PASS:</B></TD><TD><INPUT TYPE=PASSWORD SIZE=14 NAME=PASS></TD></TR>
<TR><TD></TD><TD><INPUT TYPE=SUBMIT VALUE=LOGIN> (<A HREF=/web/forgotpass.php>Forgot?</A>)</TD></TR></FORM></TABLE>
</TD></TR>
</TD>
<TD WIDTH=29><IMG SRC=/web/hoilgui5.gif></TD></TR>
<TR>
<TD WIDTH=100% BACKGROUND=/web/hoilgui6.gif>&nbsp;</TD>
<TD WIDTH=29><IMG SRC=/web/hoilgui7.gif></TD></TR>
</TABLE>
<CENTER>
<TR><TD class=forumlist>
<TABLE WIDTH=100%><TR>
<TD><B>BUY Full Year Membership <FONT COLOR=GREEN>$40.00</FONT>usd</B> <I><FONT SIZE=-1>(adds 366 days membership time to the account. saves $20.00 off monthly subscription) Non-refundable.</FONT></I></TD><TD>
<form action="'.$pp_uri.'" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypal@horseisle.com">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_name" value="Full Year Horse Isle Membership-gift on '.$gameServerDomain.'">
<input type="hidden" name="item_number" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="custom" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="amount" value="40.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="'.$host.'/web/paypalgiftpayment.php">
<input type="hidden" name="notify_url" value="'.$serverObj['site'].'/web/paypalgateway.php">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0"
name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</TD></TR></TABLE>
<TR><TD class=forumlist>
<TABLE WIDTH=100%><TR>
<form action="'.$pp_uri.'" method="post">
<TD><B>BUY $10,000 Horse Isle Currency per <FONT COLOR=GREEN>$1.00</FONT>usd</B><BR>
Select: <SELECT NAME=quantity>
<OPTION VALUE=2>$20,000 Horse Isle for $2.00 USD
<OPTION VALUE=3>$30,000 Horse Isle for $3.00 USD
<OPTION VALUE=4>$40,000 Horse Isle for $4.00 USD
<OPTION VALUE=5>$55,000 Horse Isle for $5.00 USD (10% bonus)
<OPTION SELECTED VALUE=10>$110,000 Horse Isle for $10.00 USD (10% bonus)
<OPTION VALUE=20>$230,000 Horse Isle for $20.00 USD (15% bonus)
<OPTION VALUE=50>$575,000 Horse Isle for $50.00 USD (15% bonus)
<OPTION VALUE=100>$1,200,000 Horse Isle for $100.00 USD (20% bonus)
<OPTION VALUE=250>$3,125,000 Horse Isle for $250.00 USD (25% bonus)
</SELECT><BR>
<I><FONT SIZE=-1>(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.</FONT></I></TD><TD>
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypal@horseisle.com">
<input type="hidden" name="item_name" value="10k Horse Isle Money-gift on '.$gameServerDomain.'">
<input type="hidden" name="item_number" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="custom" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="'.$host.'/web/paypalgiftpayment.php">
<input type="hidden" name="notify_url" value="'.$serverObj['site'].'/web/paypalgateway.php">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0"
name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</TD></TR></TABLE>
</TD></TR><TR><TD class=forumlist>
<TABLE WIDTH=100%>
<TR><TD>
<B>BUY Pawneer Order <FONT COLOR=GREEN>$8.00</FONT>usd</B> <I><FONT SIZE=-1>(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.</FONT></I></TD><TD>
<form action="'.$pp_uri.'" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypal@horseisle.com">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_name" value="Pawneer Order-gift on '.$gameServerDomain.'">
<input type="hidden" name="item_number" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="custom" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="amount" value="8.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="'.$host.'/web/paypalgiftpayment.php">
<input type="hidden" name="notify_url" value="'.$serverObj['site'].'/web/paypalgateway.php">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0"
name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</TD></TR></TABLE>
</TD></TR><TR><TD class=forumlist>
<TABLE WIDTH=100%>
<TR><TD>
<B>BUY 5 Pawneer Orders <FONT COLOR=GREEN>$30.00</FONT>usd</B> <I><FONT SIZE=-1>(save $10.00 - allows ordering 5 custom horses from Pawneer) Non-refundable.</FONT></I></TD><TD>
<form action="'.$pp_uri.'" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypal@horseisle.com">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_name" value="Five Pawneer Order-gift on '.$gameServerDomain.'">
<input type="hidden" name="item_number" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="custom" value="'.htmlspecialchars($userid).'">
<input type="hidden" name="amount" value="30.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="'.$host.'/web/paypalgiftpayment.php">
<input type="hidden" name="notify_url" value="'.$serverObj['site'].'/web/paypalgateway.php">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0"
name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</TD></TR></TABLE>
/web/checks.php>CASH PAYMENT OPTION</A>
//</TD>
//</TR>
?>
</TABLE></CENTER><BR>
');
}
}
include("footer.php");
exit();
}
?>
<TABLE WIDTH=60%><TR><TD>
<CENTER><B>Gift membership payments.</B></CENTER><BR>
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.
<BR><CENTER>Horse Isle Gift Purchase For:<BR><FORM METHOD=POST>PLAYER NAME:(<B><FONT COLOR=RED>Exact Game Name!</FONT></B>) <INPUT TYPE=INPUT NAME=PLAYERNAME><BR>ON SERVER: (<B><FONT COLOR=RED>Be Sure!</FONT></B>) <SElECT name=SERVER><OPTION>bay<OPTION>black<OPTION>brown<OPTION>chestnut<OPTION>cremello<OPTION>dun<OPTION>grey<OPTION>palomino<OPTION>pinto<OPTION>roan<OPTION>white</SELECT><BR><BR><INPUT TYPE=SUBMIT VALUE='SHOW PURCHASE OPTIONS'></FORM><FONT SIZE=-1>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.</FONT></TD></TR></TABLE><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD><IMG SRC=/web/hoilgui10.gif></TD>
<TD WIDTH=100% BACKGROUND=/web/hoilgui11.gif></TD>
<TD><IMG SRC=/web/hoilgui12.gif></TD>
</TR></TABLE>
<CENTER><B>
[ <A HREF=//master.horseisle.com/beginnerguide/>New Player Guide</A> ]<BR>
[ <A HREF=/web/rules.php>Rules</A> ]
[ <A HREF=/web/termsandconditions.php>Terms and Conditions</A> ]
[ <A HREF=/web/privacypolicy.php>Privacy Policy</A> ]</B><BR>
[ <A HREF=/web/expectedbehavior.php>Expected Behavior</A> ]
[ <A HREF=/web/contactus.php>Contact Us</A> ]
[ <A HREF=/web/credits.php>Credits</A> ]<BR>
<FONT FACE=Verdana,Arial SIZE=-2>Copyright &copy; 2020 Horse Isle</FONT>
<!-- Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1805076-1";
urchinTracker();
</script>
<BR><CENTER>Horse Isle Gift Purchase For:<BR><FORM METHOD=POST>PLAYER NAME:(<B><FONT COLOR=RED>Exact Game Name!</FONT></B>) <INPUT TYPE=INPUT NAME=PLAYERNAME><BR>ON SERVER: (<B><FONT COLOR=RED>Be Sure!</FONT></B>) <SElECT name=SERVER><?php
for($i = 0; $i < count($server_list); $i++)
{
echo("<OPTION>".htmlspecialchars($server_list[$i]['id']));
}?></SELECT><BR><BR><INPUT TYPE=SUBMIT VALUE='SHOW PURCHASE OPTIONS'></FORM><FONT SIZE=-1>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.</FONT></TD></TR></TABLE><?php
include("footer.php");
?>