Guest User

Untitled

a guest
Sep 20th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.79 KB | None | 0 0
  1. <?php
  2. @include_once "langdoc.php";
  3. if(!isset($_COOKIE['lang'])) {
  4. setcookie("lang","ru",2147485547);
  5. $lang = "ru";
  6. } else $lang = $_COOKIE["lang"];
  7. $sitename = "SKINJACKPOT.PL";
  8. $title = "$sitename";
  9. @include_once('set.php');
  10. @include_once('steamauth/steamauth.php');
  11. @include_once('steamauth/userInfo.php');
  12. ?>
  13. <!DOCTYPE html>
  14. <html lang="en">
  15. <head>
  16. <title><?php echo $title ?></title>
  17. <link rel="stylesheet" href="css/style.css">
  18. <link rel="shortcut icon" href="fav.ico" type="image/x-icon">
  19. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  20. <script type="text/javascript" src="js/noty/packaged/jquery.noty.packaged.min.js"></script>
  21. <script src="js/main.js"></script>
  22. </head>
  23. <body>
  24. <header id="header">
  25. <div style=" width: 1100px; margin: auto;">
  26. <strong class="logo"><a href="/"><?php echo $title ?></a></strong>
  27. <div style="float: right;">
  28. <?php
  29. if(!isset($_SESSION["steamid"])) {
  30. steamlogin();
  31. //echo '<div style="display: inline-block; margin: 35px 90px 0 0; color: #eee; font-size: 12pt;"><a href=en.php><img src=img/en.gif></a><a href=ru.php><img src=img/ru.gif></a></div>';
  32. echo "<a class=\"btns\">ВОЙТИ С ПОМОЩЬЮ </a>";
  33. echo "<a class=\"btn\" href=\"?login\">".$msg[$lang]["login2"]."</a>";
  34.  
  35. } else {
  36. //echo '<div style="display: inline-block; margin: 35px 90px 0 0; color: #eee; font-size: 12pt;"><a href=en.php><img src=img/en.gif></a><a href=ru.php><img src=img/ru.gif></a>    '.$msg[$lang]["loggedin"].' sf</div>';
  37. echo '<div style="display: inline-block; margin: 35px 110px 0 0; color: #eee; font-size: 12pt;">'.$msg[$lang]["loggedin"].' '.$steamprofile['personaname'].' </div><div style="display: inline-block; position: absolute; margin-top: 28px; margin-left: -100px "><img src="'.$steamprofile['avatar'].'"></div>';
  38. echo "<a class=\"btn\" href=\"steamauth/logout.php\">".$msg[$lang]["logout"]."</a>";
  39. mysql_query("UPDATE users SET name='".$steamprofile['personaname']."', avatar='".$steamprofile['avatarfull']."' WHERE steamid='".$_SESSION["steamid"]."'");
  40. }
  41. ?>
  42. </div>
  43. </div>
  44. </header>
  45. <div id="wrapper">
  46. <div id="main">
  47. <div class="sidebar">
  48. <nav id="nav">
  49. <h2><?php echo $msg[$lang]["menu"]; ?></h2>
  50. <ul>
  51. <li><a href="/"><?php echo $msg[$lang]["mainpage"]; ?></a></li>
  52. <li><a href="/history"><?php echo $msg[$lang]["history"]; ?></a></li>
  53. <li><a href="/top"><?php echo $msg[$lang]["top"]; ?></a></li>
  54. <li><a href="/about"><?php echo $msg[$lang]["about"]; ?></a></li>
  55. <li><a href="http://vk.com/csgo_stf"><?php echo $msg[$lang]["support"]; ?></a></li>
  56. </ul>
  57. </nav>
  58. <?php
  59. if(isset($_SESSION["steamid"])) {
  60. ?>
  61. <nav id="nav">
  62. <h2><?php echo $msg[$lang]["pmenu"]; ?></h2>
  63. <ul>
  64. <li><a href="./settings.php"><?php echo $msg[$lang]["settings"]; ?></a></li>
  65. <li><a href="steamauth/logout.php"><?php echo $msg[$lang]["logout"]; ?></a></li>
  66. </ul>
  67. </nav>
  68. <?php } ?>
  69. <div class="bonus-block">
  70. <div class="box">
  71. <div class="visual">
  72. <img src="./img/img1.png" width="41" height="50">
  73. </div>
  74. <p style="text-align: center;"><?php echo $msg[$lang]["bonus"]; ?></p>
  75.  
  76. </div>
  77. <div class="text-box">
  78. <p style=""><?php echo $msg[$lang]["fp"]; ?></p>
  79. </div>
  80. </div>
  81.  
  82. <h3>Последний победитель</h3>
  83. <div class="last-winner">
  84.  
  85. <?php
  86. $lastgame = fetchinfo("value","info","name","current_game");
  87. $lastwinner = fetchinfo("userid","games","id",$lastgame-1);
  88. $winnercost = fetchinfo("cost","games","id",$lastgame-1);
  89. $winnerpercent = round(fetchinfo("percent","games","id",$lastgame-1),1);
  90. $winneravatar = fetchinfo("avatar","users","steamid",$lastwinner);
  91. $winnername = fetchinfo("name","users","steamid",$lastwinner);
  92. ?>
  93. <div class="visual">
  94. <img src="<?php echo $winneravatar ?>" alt="image description" width="109" height="109">
  95. </div>
  96. <h3 style="border-radius: 0px 0px 0px 0px;"><?php echo $winnername ?></h3>
  97. <ul>
  98. <li>
  99. <span class="val"><?php echo $msg[$lang]["win"]; ?>:</span>
  100. <span class="price">$<?php echo round($winnercost,2); ?></span>
  101. </li>
  102. <li>
  103. <span class="val"><?php echo $msg[$lang]["chance"]; ?>:</span>
  104. <span class="price"><?php echo $winnerpercent ?>%</span>
  105. </li>
  106. </ul>
  107. </div>
  108.  
  109. <h2><?php echo $msg[$lang]["online"]; ?></h2>
  110. <div class="online">
  111. <div class="box">
  112. <span id='on_now'>
  113. <script type="text/javascript" src="http://indexsite.ru/online_user.php?site=ваш сайт"></script>
  114. <p>игроков</p>
  115. </span>
  116. </div>
  117. </div>
  118.  
  119.  
  120. </div>
  121. <div class="content">
  122. <h2><?php echo $msg[$lang]["history"]; ?></h2>
  123. <div class="history_game">
  124.  
  125. <ul>
  126. <?php
  127. $gamenum = fetchinfo("value","info","name","current_game");
  128. $rs = mysql_query("SELECT * FROM `games` WHERE `id` < $gamenum ORDER BY `id` DESC LIMIT 10");
  129. while($row = mysql_fetch_array($rs)) {
  130. $lastwinner = $row["userid"];
  131. $winnercost = $row["cost"];
  132. $winnerpercent = $row["percent"];
  133. $winneravatar = fetchinfo("avatar","users","steamid",$lastwinner);
  134. $winnername = fetchinfo("name","users","steamid",$lastwinner);
  135. echo '
  136. <li>
  137. <div class="visual">
  138. <img src="'.$winneravatar.'" width="105" height="105">
  139. <span class="num">№ '.$row["id"].'</span>
  140. </div>
  141. <div class="list" style=" margin-right: 50px; margin-bottom: 10px;">
  142. <ul>
  143. <li>'.$winnername.'</li>
  144. <li>
  145. <span>'.$msg[$lang]["wcha"].':</span>
  146. <span class="price">'.round($winnerpercent,1).'%</span>
  147. </li>
  148. <li>
  149. <span>'.$msg[$lang]["wwin"].':</span>
  150. <span class="price">$'.round($winnercost,2).'</span>
  151. </li>
  152. </ul>
  153. </div>
  154. <div class="stuff" style="float: none; padding: 5px; width: 100%">
  155. <ul>';
  156. $rs2 = mysql_query("SELECT * FROM `game".$row["id"]."`");
  157. while($row2 = mysql_fetch_array($rs2)) {
  158. echo '
  159. <li>
  160. <a href="#">
  161. <img src="http://steamcommunity-a.akamaihd.net/economy/image/'.$row2["image"].'/60fx60f" width="60" height="60">
  162. <span class="tooltip">'.$row2["item"].' - $'.$row2["value"].'</span>
  163. </a>
  164. </li>';
  165. }
  166. echo '</ul>
  167. </div>
  168. </li>';
  169. }
  170. ?>
  171. </ul>
  172. </div>
  173. </div>
  174. </body>
  175. </html>
Advertisement
Add Comment
Please, Sign In to add comment