make 2 files in xampp/htdocs.. : .. [premium.php, premium2.php]
premium.php
Premium2.php
Localhost Database: add
and this
Rep?
premium.php
PHP:
<?php
$main_content .= '
<TR><TD BGCOLOR="#505050" CLASS=white COLSPAN=3><B> <center><h3>'.$config['server']['serverName'].'</h3></B></TD></TR>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4>
<TR><TD BGCOLOR="#505050" CLASS=white COLSPAN=3><B><center>'.$config['server']['serverName'].' Premium Time Periods</B></center></TD></TR>
<TR BGCOLOR="#D4C0A1"><TD WIDTH=35%><B>Duration</B></TD><TD WIDTH=35%><B>Price</B> (including all taxes)</TD><TD></TD></TR>
<TR BGCOLOR="#F1E0C6"><TD>1 month (30 days)</TD><TD>EUR 3.00</B></TD><TD></TD></TR>
<TR BGCOLOR="#D4C0A1"><TD>3 months (90 days)</TD><TD>EUR 8.00</B></TD><TD></TD></TR>
<TR BGCOLOR="#F1E0C6"><TD>6 months (180 days)</TD><TD>EUR 15.00</B></TD><TD></TD></TR>
<TR BGCOLOR="#D4C0A1"><TD>12 months (360 days)</TD><TD>EUR 30.00</B></TD><TD></TD></TR>
</TABLE><h3><BR>
Order premium time today and enjoy the full '.$config['server']['serverName'].' experience!<BR><BR><h3>
<CENTER><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=shopsystem" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url(http://static.tibia.com/images/global/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(http://static.tibia.com/images/global/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Add Premium Time" alt="Add Premium Time" src="http://static.tibia.com/images/global/buttons/_sbutton_addpremiumtime.gif" ></div></div></td></tr></form></table></CENTER>
';
?>
PHP:
<?PHP
$main_content .= '<table><td><b>30 days = 3euro *Premium*</b> (3 points)<br />Premium Account 30 days.<form action="index.php?subtopic=shopsystem&action=select_player" method=POST><input type="hidden" name="buy_id" value="400"><input type="submit" value="Buy 30 days = 3euro *Premium*"><br><b>for 3 points</b></td><td></form>
<b>90 days = 8euro *Premium*</b> (8 points)<br />Premium Account 90 days.<form action="index.php?subtopic=shopsystem&action=select_player" method=POST><input type="hidden" name="buy_id" value="500"><input type="submit" value="Buy 90 days = 8euro *Premium*"><br><b>for 8 points</b></td><td></form><b>183 days = 15euro *Premium*</b> (15 points)<br />Premium Account 183 days.<form action="index.php?subtopic=shopsystem&action=select_player" method=POST><input type="hidden" name="buy_id" value="600"><input type="submit" value="Buy 183 days = 15euro *Premium*"><br><b>for 15 points</b></td></form><td><b>365 days = 30euro *Premium*</b> (30 points)<br />Premium Account 365 days.<form action="index.php?subtopic=shopsystem&action=select_player" method=POST><input type="hidden" name="buy_id" value="700"><input type="submit" value="Buy 365 days = 30euro *Premium*"><br><b>for 30 points</b></td></a></table>';
$main_content .= '</form><a href="http://sv.tinypic.com" target="_blank"><img src="http://i42.tinypic.com/2hqdjz7.png" border="0" alt="">';
?>
PHP:
CREATE TABLE IF NOT EXISTS `z_shop_offer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`points` int(11) NOT NULL DEFAULT '0',
`itemid1` int(11) NOT NULL DEFAULT '0',
`count1` int(11) NOT NULL DEFAULT '0',
`itemid2` int(11) NOT NULL DEFAULT '0',
`count2` int(11) NOT NULL DEFAULT '0',
`offer_type` varchar(255) DEFAULT NULL,
`offer_description` text NOT NULL,
`offer_name` varchar(255) NOT NULL,
`pid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
PHP:
INSERT INTO `z_shop_offer` (`id`, `points`, `itemid1`, `count1`, `itemid2`, `count2`, `offer_type`, `offer_description`, `offer_name`, `pid`) VALUES
(400, 3, 0, 30, 0, 0, 'pacc', 'Premium Account\r\n30 days.', '30 days = 3euro *Premium*', 0),
(500, 8, 0, 90, 0, 0, 'pacc', 'premium account 3 months', '90 days = 8euro *Premium*', 0),
(600, 15, 0, 183, 0, 0, 'pacc', 'premium account 6months', '183 days = 15euro *Premium*', 0),
(700, 30, 0, 365, 0, 0, 'pacc', 'premium account 1 year', '365 days = 30euro *Premium*', 0);