SirCmpwn

Untitled

Jun 12th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.26 KB | None | 0 0
  1. <?php require_once('config.php');session_start();
  2. $userId =& $_SESSION['userId'];
  3. if (!$userId) {
  4. header('Location: login');
  5. exit;
  6. $top_servers = mysql_query("SELECT SQL_CALC_FOUND_ROWS servers.*,auctions.bid_amount as bid_amount FROM servers RIGHT JOIN auctions ON auctions.server_id=servers.id ORDER BY auctions.bid_amount LIMIT 5");
  7. $top_count = mysql_result(mysql_query('SELECT FOUND_ROWS() AS found;'), 0, 'found');
  8. ?>
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <meta http-equiv="Lang" content="en">
  14. <meta name="description" content="<?php echo $config['description']; ?>">
  15. <meta name="keywords" content="<?php echo $config['keywords']; ?>">
  16. <title>Sponsored | Minecraft Servers</title>
  17. <link rel="stylesheet" type="text/css" href="<?php echo $config['root']; ?>style.css">
  18. <style>
  19. tr td, tr th {
  20. border:0;
  21. padding:0;
  22. padding-bottom:5px;
  23. }
  24. .paypal {
  25. background: #e3e3e3;
  26. width:300px;
  27. height:75px;
  28. padding-left:10px;
  29. margin-left:5px;
  30. display:table;
  31. margin-bottom:10px;
  32. }
  33.  
  34. .contacth {
  35. color:black;
  36. text-decoration:none;
  37. }
  38.  
  39. .contacth:hover {
  40. text-decoration: underline;
  41. }
  42.  
  43. P { line-height : 125%; }
  44. </style>
  45. <script type="text/javascript">
  46.  
  47. var _gaq = _gaq || [];
  48. _gaq.push(['_setAccount', 'UA-16311976-18']);
  49. _gaq.push(['_trackPageview']);
  50.  
  51. (function() {
  52. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  53. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  54. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  55. })();
  56.  
  57. </script>
  58. </head>
  59. <body>
  60. <div id="wrapper">
  61. <div class="box" id="header">
  62. <div id="logo"><a href="./"><img src="<?php echo $config['root']; ?>img/logo.png" border="0"/></a></div>
  63. <div id="search"><form action="<?php echo $config['root']; ?>search" method="POST"><input id="searchField" onfocus="if (this.value == 'Search servers') this.value = ''" onblur="if (this.value == '') this.value = 'Search servers'" type="text" value="Search servers" name="search"/><input id="searchSubmit" type="submit" name="searchSubmit" value="search"/></form></div>
  64. <div id="menuSearchContainer">
  65. <div id="menu">
  66. <?php include('menu.php'); ?>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="box" id="upBanner">
  71. <div class="banners" id="upBannerPicture"><?php include('img/upper2.php'); ?></div>
  72. </div>
  73. <div class="box">
  74. <p style="float: right;"><strong>Bidding is </strong><?php echo $auctionDays < 10 ? '<span class="green">Open' : '<span class="red">Closed'; ?></span></p>
  75. <h3>Sponsored</h3>
  76. <p style="padding: 5px">Sponsored servers appear above the main list on the homepage and are the very first servers potential players see when they visit the website.<br><br>
  77.  
  78. There are a total of 5 sponsored slots available at any one time at a cost of <b>$250 per 30 days</b>.</p>
  79. <p><strong>Top Five Bids:</strong></p>
  80. <p>These are the current top bids for this round of bidding.</p>
  81. <table class="topBidList">
  82. <tr>
  83. <th class="tname">Bid Rank</th>
  84. <th class="tserver">Name</th>
  85. <th class="ttype">Bid Amount</th>
  86. <th class="tplayers">Date Placed</th>
  87. </tr>
  88. <?php $i=0; while($server = mysql_fetch_assoc($top_servers)) { $i++; ?>
  89. <tr>
  90. <td><?php echo $i; ?></td>
  91. <td style="width: 300px;"><a href="<?php echo $config['root']; ?>server/<?php echo $server['id'];?>"><?php echo $server['name'];?></a></td>
  92. <td><?php echo $server['bid_amount']; ?></td>
  93. <td>TODO</td>
  94. </tr>
  95. <?php } ?>
  96. </table>
  97.  
  98. <div class="paypal">
  99. <h3 style="margin-left:0px;padding-top:5px;"><?php echo $count; ?> Sponsored slots remaining</h3>
  100. <?php if($count>0): ?>
  101.  
  102. <?php else: ?>
  103. <span>All 5 sponsored server slots are full.<br>Next availability: <b>30th May</b><br><img src="http://minecraftservers.org/img/spr.png" /></span>
  104. <?php endif; ?>
  105. </div>
  106. </div>
  107. <div class="box" id="bottomBanner">
  108. <div class="banners" id="bottomBannerPicture"><?php include('img/bottom2.php'); ?></div>
  109. </div>
  110. <div class="box" id="footer">
  111. <?php require 'footer.php'; ?>
  112. </div>
  113. </div>
  114. </body>
  115. </html>
  116.  
  117. <?php
  118. /*
  119. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  120. <input type="hidden" name="cmd" value="_s-xclick">
  121. <input type="hidden" name="hosted_button_id" value="QQZAAWQE4YZNC">
  122. <table>
  123. <tr><td><input type="hidden" name="on0" value="Server name">Server name</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr>
  124. </table>
  125. <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal Ñ The safer, easier way to pay online.">
  126. <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
  127. </form>
  128. */
  129. ?>
Advertisement
Add Comment
Please, Sign In to add comment