Advertisement
Guest User

Index.php

a guest
Nov 17th, 2015
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.35 KB | None | 0 0
  1. <?php
  2. @include_once "langdoc.php";
  3. if(!isset($_COOKIE['lang'])) {
  4. setcookie("lang","en",2147485547);
  5. $lang = "en";
  6. } else $lang = $_COOKIE["lang"];
  7. $sitename = "CSGOEarth.com";
  8. $title = "$sitename - PLAY LOW, WIN BIG!";
  9. @include_once('set.php');
  10. require('steamauth/steamauth.php');
  11. if(isset($_SESSION["steamid"])) {
  12. include_once('steamauth/userInfo.php');}
  13.  
  14. include_once('adminlist.php'); //include AFTER session is started (session_start();)
  15. include_once('chatfunctions.php');
  16. ?>
  17. <html lang="en">
  18. <head>
  19. <title><?php echo $title ?></title>
  20. <link rel="stylesheet" href="css/style.css">
  21. <link rel="stylesheet" href="simple-line-icons.css">
  22. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  23. <script type="text/javascript" src="js/noty/packaged/jquery.noty.packaged.min.js"></script>
  24. <script src="js/progressbar.js"></script>
  25. <script src="js/main.js"></script>
  26. <!-- Start of csgoearth Zendesk Widget script -->
  27. <script>/*<![CDATA[*/window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");window.zEmbed=function(){a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(c){n=document.domain,r.src='javascript:var d=document.open();d.domain="'+n+'";void(0);',o=s}o.open()._l=function(){var o=this.createElement("script");n&&(this.domain=n),o.id="js-iframe-async",o.src=e,this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write('<body onload="document._l();">'),o.close()}("//assets.zendesk.com/embeddable_framework/main.js","csgoearth.zendesk.com");/*]]>*/</script>
  28. <!-- End of csgoearth Zendesk Widget script -->
  29. </head>
  30. <body>
  31. <meta charset="UTF-8">
  32. <meta name="viewport" content="width=device-width">
  33. <title><?php echo $title ?></title>
  34. <link rel="stylesheet" href="css/style.css">
  35. <link rel="stylesheet" href="simple-line-icons.css">
  36. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  37. <script type="text/javascript" src="js/noty/packaged/jquery.noty.packaged.min.js"></script>
  38. <script src="https://cdn.rawgit.com/kimmobrunfeldt/progressbar.js/0.5.6/dist/progressbar.js"></script>
  39. <script src="js/main.js"></script>
  40. </head>
  41. <html lang="en">
  42. <head>
  43. <title><?php echo $title ?></title>
  44. <link rel="stylesheet" href="css/style.css">
  45. <link rel="stylesheet" href="css/simple-line-icons.css">
  46. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  47. <script type="text/javascript" src="js/noty/packaged/jquery.noty.packaged.min.js"></script>
  48. <script src="js/progressbar.js"></script>
  49. <script src="js/main.js"></script>
  50. </head>
  51. <body>
  52. <div id="header">
  53. <img style="float:left;" src="images/logo.png" width="250" height="58">
  54. <div id="button">
  55. <div class="buttons">
  56.  
  57. <a style="float:right;" href="?login"><img style="margin-right:20px; margin-top:4.2px;" src="images/steamlogon.png" width="130" height="22"> </a>
  58. <a style="float:right;" href="#">ABOUT</a>
  59. <a style="float:right;" href="#">RULES</a>
  60. <a style="float:right;" href="#">GIVEAWAY</a>
  61. <a style="float:right;" href="#">TOP PLAYERS</a>
  62. <a style="float:right;" href="#">GAMES HISTORY</a>
  63. <a style="float:right;" href="#">PLAY</a>
  64.  
  65.  
  66.  
  67.  
  68.  
  69. </div>
  70. </div></div>
  71.  
  72. <div id="qinfo">
  73. <img style="margin-left:150px; margin-top:20px;" src="images/qinfo.jpg">
  74. <div class="qinfostyle">
  75. <div><p><i class="icon-info ic_padd3" style="margin:0; color:#464646;"></i><a style="font-family:Arial; color:#464646; font-style:italic;"> Involved make skins, upon reaching a predetermined maximum number of randomly selected winner, who will receive all skins.</p></a></div>
  76. <div><p><i class="icon-info ic_padd3" style="margin:0; color:#464646;"></i><a style="font-family:Arial; color:#464646; font-style:italic;"> Add <a style="color:#ff5400;font-weight:bold; font-style:italic; font-family:Arial;">"CSGOEarth.com"</a><a style="font-family:Arial; color:#464646; font-style:italic;"> to your Steam nickname and get -2% rake!</p></a></div>
  77. <div><p><i class="icon-info ic_padd3" style="margin:0; color:#464646;"></i><a style="font-family:Arial; color:#464646; font-style:italic;"> First player receive +5% chance to win.</p></a></div>
  78. <div><p><i class="icon-info ic_padd3" style="margin:0; color:#464646;"></i><a style="font-family:Arial; color:#464646; font-style:italic;"> Currently working Jackpot lottery.</p></a></div>
  79. <div><p><a style="font-family:Arial; color:#464646; font-style:italic; margin-left:40px;"> Find more info on "About"-tab.</p></a></div>
  80. </div></div></div>
  81. <div id="latestwinner">
  82. <div class="barbbbb" style="text-align: center;"><img style="margin-top:12px; margin-left:-15px;" src="images/latestw.jpg"></div>
  83. <br>
  84. <?php
  85. $lastgame = fetchinfo("value","info","name","current_game");
  86. $lastwinner = fetchinfo("userid","games","id",$lastgame-1);
  87. $winnercost = fetchinfo("cost","games","id",$lastgame-1);
  88. $winnerpercent = round(fetchinfo("percent","games","id",$lastgame-1),1);
  89. $winneravatar = fetchinfo("avatar","users","steamid",$lastwinner);
  90. $winnername = fetchinfo("name","users","steamid",$lastwinner);
  91. ?>
  92. <div class="visual">
  93. <img style="margin-left:18px;" src="<?php echo $winneravatar ?>" alt="image description" width="90" height="90">
  94. <div style="margin-top:-85px;">
  95. <div class="lwinfo"><span style="color:#6AC1DE; margin-top:-30px;"><?php echo $winnername ?></span>
  96.  
  97.  
  98.  
  99. <br>
  100. <span style="font-size:20px; color:#201f1f;" class="val">Won:</span>
  101. <span class="price" style="color:#ff5400;font-size:20px;">$<?php echo round($winnercost,2); ?></span>
  102. <br>
  103. <span style="font-size:20px; color:#201f1f;" class="val">Chance:</span>
  104. <span class="price" style="color:#ff5400;font-size:20px;"><?php echo $winnerpercent ?>%</span>
  105. <br>
  106. <span class="lot_current_game_id" style="font-size:20px; color:#201f1f;">Game number: </span><span style="color:#ff5400;font-size:20px;";>#<?php echo $lastgame; ?></span></p>
  107.  
  108.  
  109. </div> </div> </div> </div></div> </ul> <div id="progbar">
  110.  
  111. <div class="progress">
  112. <div class="visual" style="float: right; margin-right:20%; margin-top:-15.5%">
  113.  
  114. <div id="prograsd" style="position: relative;"><p class="progressbar__label" style="position: absolute; top: 45%; left: 50%; padding: 0px; margin: 0px; transform: translate(-50%, -50%); color: #ff5400;font: 500 40px/40px roboto,sans-serif;">0/100</p><span id="money_round" class="bankbbas">$<span id="bank"><?php echo round(fetchinfo("cost","games","id",$lastgame),2); ?></span></span></div></div></div>
  115.  
  116.  
  117.  
  118.  
  119.  
  120. <div class="stuffs promo-cover">
  121. <ul id="game-sts" style="display: block;">
  122. <div class=rounditems><?php
  123. include "items.php";
  124. ?><?php
  125. include "loadr.php";
  126. ?></div>
  127.  
  128. </div></div>
  129.  
  130. <div id="footer"><p>
  131. <a style="font-size:20px; color:#fff; opacity:5.0;">
  132. © 2015 CSGOEarth.com - Powered by Steam, a registered trademark of Valve Corporation.</a>
  133. </body>
  134. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement