Guest User

Untitled

a guest
Jun 18th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.34 KB | None | 0 0
  1. <?php include("function.php"); ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5.  
  6. <script type="text/javascript" src="scroll.js"></script>
  7.  
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <meta property="og:title" content="<?php echo $siteName; ?> zdobywaj darmowe nagrody" />
  10. <meta property="og:description" content="Zarabiaj kase wypelniajac proste oferty. Nie trac czasu na oszustwa i slabo platne reklamy, zarabiaj kase z nami!" />
  11. <meta property="og:image" content="/imgages/rewards.jpg" />
  12.  
  13. <title>Home &bull; <?php echo $siteName; ?></title>
  14. <?php include("headscript.php"); ?>
  15. <?php include("logscr.php"); ?>
  16.  
  17.  
  18.  
  19. </head>
  20. <body onload="initHIS3()">
  21. <div id="wrapper">
  22. <div id="header">
  23. <div class="header_top">
  24. <div class="top">
  25. <div class="logo"> <a href="#">logo</a> </div>
  26. </div>
  27. <div class="clear"></div>
  28. </div>
  29. <div class="header_bottom">
  30. <?php include("buttons.php"); ?>
  31. <?php include("menu.php"); ?>
  32. </div>
  33. </div>
  34. <div id="body">
  35.  
  36.  
  37. <div id="col1">
  38. <div class="box">
  39. <h2>Ostatnie zarobki</h2>
  40. <?php
  41. $earnings = mysql_query("SELECT * FROM earnings ORDER BY date DESC LIMIT 5");
  42. $number = mysql_num_rows($earnings);
  43.  
  44. $i = 1;
  45.  
  46. while($row = mysql_fetch_array($earnings))
  47. {
  48. if($i <= $number)
  49. {
  50. echo " <div class=\"row\">
  51. <ul>
  52. <li class=\"name\">";
  53. $tempId = $row['userId'];
  54. $tempScore = $row['points'];
  55. $tempTitle = $row['offerTitle'];
  56. $userName = mysql_result(mysql_query("SELECT userName FROM users WHERE userId = '$tempId'"), 0);
  57. echo "$userName";
  58. echo "</li>
  59. <li class=\"point\"><img src=\"images/point.png\" width=\"16\" height=\"16\" /></li>
  60. <li class=\"reward\">$tempScore</li>
  61. </ul>
  62. <div class=\"clear\"></div><font style='font-size:10px; margin-top:-4px;'>$tempTitle</font>
  63. </div>";
  64. } else {
  65. echo " <div class=\"row last\">
  66. <ul>
  67. <li class=\"name\">";
  68. $tempId = $row['userId'];
  69. $tempScore = $row['points'];
  70. $userName = mysql_result(mysql_query("SELECT userName FROM users WHERE userId = '$tempId'"), 0);
  71. echo "$userName";
  72. echo "</li>
  73. <li class=\"point\"><img src=\"images/point.png\" width=\"16\" height=\"16\" /></li>
  74. <li class=\"reward\">$tempScore</li>
  75. </ul>
  76. <div class=\"clear\"></div>
  77. </div>";
  78. }
  79.  
  80. $i++;
  81. }
  82.  
  83. ?>
  84.  
  85. </div>
  86. <div class="box">
  87. <h2>Top zarobki</h2>
  88. <?php
  89. $earnings = mysql_query("SELECT * FROM balances ORDER BY points DESC LIMIT 5");
  90. $number = mysql_num_rows($earnings);
  91.  
  92. $i = 1;
  93.  
  94. while($row = mysql_fetch_array($earnings))
  95. {
  96. if($i <= $number)
  97. {
  98. echo " <div class=\"row\">
  99. <ul>
  100. <li class=\"name\">";
  101. $tempId = $row['userId'];
  102. $tempScore = $row['points'];
  103. $tempOC = mysql_result(mysql_query("SELECT offers FROM balances WHERE userId = '$tempId'"),0);
  104. $userName = mysql_result(mysql_query("SELECT userName FROM users WHERE userId = '$tempId'"), 0);
  105. echo "$userName";
  106. echo "</li>
  107. <li class=\"point\"><img src=\"images/point.png\" width=\"16\" height=\"16\" /></li>
  108. <li class=\"reward\">$tempScore</li>
  109. </ul>
  110. <div class=\"clear\"></div><font style='font-size:10px; margin-top:-4px;'>Offers Complete: $tempOC</font>
  111. </div>";
  112. } else {
  113. echo " <div class=\"row last\">
  114. <ul>
  115. <li class=\"name\">";
  116. $tempId = $row['userId'];
  117. $tempScore = $row['points'];
  118. $userName = mysql_result(mysql_query("SELECT userName FROM users WHERE userId = '$tempId'"), 0);
  119. echo "$userName";
  120. echo "</li>
  121. <li class=\"point\"><img src=\"images/point.png\" width=\"16\" height=\"16\" /></li>
  122. <li class=\"reward\">$tempScore</li>
  123. </ul>
  124. <div class=\"clear\"></div>
  125. </div>";
  126. }
  127.  
  128. $i++;
  129. }
  130.  
  131. ?>
  132. </div>
  133.  
  134. </div>
  135. <div id="col2">
  136.  
  137.  
  138. <h1>Jak to dziala?</h1>
  139. <div class="hometitle">
  140. <span class="first"></span>
  141. <h2>Zrob konto</h2>
  142. <p>Zrob konto uzywajac swojego emaila i dowolnego loginu.</p>
  143. </div>
  144.  
  145. <div class="hometitle">
  146. <span class="second"></span>
  147. <h2>Zdobadz punkty!</h2>
  148.  
  149. <p>To proste.<br>Z jednego telefonu mozesz wypelnic do <b>6 ofert</b>. Za jedna oferte dostajesz okolo 2 zlote co daje Ci do 12 zlotych za jeden numer.<br>
  150. Startery do sieci plus kupisz w sklepach i kioskach po 3zl lub na allegro po 1zl. Czyli to 7 do 9 zl profitu za okolo 10 minut prostej pracy!<br>
  151. Biegnij po starter i zaczynaj wypelniac oferty!<br>
  152. <b>Pamietaj, po wypelnieniu oferty nie anuluj subskrypcji bo nie zostanie ona zaliczona ani wyplacona. </p>
  153. </div>
  154.  
  155. <div class="hometitle">
  156. <span class="third"></span>
  157. <h2>Polec strone znajomym</h2>
  158.  
  159. <p>Im wiecej znajomych zaprosisz tym wiecej zarobisz! Dostaniesz dozywotnie 10% zarobkow swoich poleconych!</p>
  160. </div>
  161.  
  162. <div class="hometitle">
  163. <span class="fourth"></span>
  164. <h2>Wymien swoje punkty!</h2>
  165.  
  166. <p>Najlepsza czesc! Wymien swoje punkty na co tylko chcesz!</p>
  167. </div>
  168.  
  169.  
  170.  
  171. </div>
  172. <div id="col3">
  173. <?php if(isset($_SESSION["user"])){
  174. $myUser = $_SESSION["user"];
  175. if ($myuser != 0) {
  176. $myRefs = mysql_result(mysql_query("SELECT refered FROM users WHERE userId = '$myUser'"), 0);
  177. $myPoints = mysql_result(mysql_query("SELECT points FROM balances WHERE userId = '$myUser'"), 0);
  178. $myOffers = mysql_result(mysql_query("SELECT offers FROM balances WHERE userId = '$myUser'"), 0);
  179. $mySpent = mysql_result(mysql_query("SELECT spent FROM balances WHERE userId = '$myUser'"), 0);
  180.  
  181.  
  182. ?>
  183. <div class="box">
  184. <h2>Twoje statystyki</h2>
  185. <?php
  186. $myUser = $_SESSION["user"];
  187. $myRefs = mysql_result(mysql_query("SELECT refered FROM users WHERE userId = '$myUser'"), 0);
  188. $myPoints = mysql_result(mysql_query("SELECT points FROM balances WHERE userId = '$myUser'"), 0);
  189. $myOffers = mysql_result(mysql_query("SELECT offers FROM balances WHERE userId = '$myUser'"), 0);
  190. $mySpent = mysql_result(mysql_query("SELECT spent FROM balances WHERE userId = '$myUser'"), 0);
  191.  
  192. ?>
  193.  
  194. <div class="row">
  195. <ul>
  196. <li style="width:125px" class="statlink">Wszystkie punkty:</li>
  197. <li style="width:33px; text-align:center" class="pointyellow"><?php echo $myPoints;?></li>
  198. </ul>
  199. <div class="clear"></div>
  200. </div>
  201. <div class="row">
  202. <ul>
  203. <li style="width:125px;" class="statlink">Wypelnione oferty:</li>
  204. <li style="width:33px; text-align:center" class="pointyellow"><?php echo $myOffers;?></li>
  205. </ul>
  206. <div class="clear"></div>
  207. </div>
  208. <div class="row">
  209. <ul>
  210. <li style="width:125px;" class="statlink">Zaproszeni znajomi:</li>
  211. <li style="width:33px; text-align:center" class="pointyellow"><?php echo $myRefs;?></li>
  212. </ul>
  213. <div class="clear"></div>
  214. </div>
  215. <div class="row">
  216. <ul>
  217. <li style="width:125px;" class="statlink">Wydane punkty:</li>
  218. <li style="width:33px; text-align:center" class="pointyellow"><?php echo $mySpent;?></li>
  219. </ul>
  220. <div class="clear"></div>
  221. </div>
  222. </div>
  223. <?php } } ?>
  224.  
  225.  
  226.  
  227. <?php if(!isset($_SESSION["user"])){ ?>
  228. <div class="box">
  229. <h2>Zdobadz wiecej punktow!</h2>
  230. <p>Wiecej znajomych znaczy wiecej kasy! Dostaniesz 10% zarobkow kazdego z Twoich poleconych! </p>
  231. </div>
  232. <?php } else { ?>
  233. <div class="box">
  234. <h2>Podziel sie linkiem!</h2>
  235. <p>Podziel sie tym linkiem by zdobyc extra punkty!<br /> <textarea rows="1" onClick="this.select();" style="border: none;overflow: hidden; font-size:8px; width:170px;" wrap="off" readonly="readonly" ><?php echo $siteUrl; ?>/?ref=<?php echo $_SESSION["user"];?> </textarea><br />Kliknij. Skopiuj. Wklej. Zarabiaj.</p>
  236. <a href="https://twitter.com/share" class="twitter-share-button" data-url="&lt;!-- Place this tag where you want the share button to render. --&gt; &lt;div class=&quot;g-plus&quot; data-action=&quot;share&quot; data-annotation=&quot;none&quot; data-href=&quot;&amp;lt;?php echo $siteUrl; ?&amp;gt;/?ref=&amp;lt;?php echo $_SESSION[&amp;quot;user&amp;quot;];?&amp;gt;&quot;&gt;&lt;/div&gt; &lt;!-- Place this tag after the last share tag. --&gt; &lt;script type=&quot;text/javascript&quot;&gt; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); &lt;/script&gt;" data-count="none">Tweet</a>
  237. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  238. <a name="fb_share" type="button" share_url="<?php echo $siteUrl; ?>/?ref=<?php echo $_SESSION["user"];?>"></a>
  239. <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"
  240. type="text/javascript">
  241. </script>
  242. <!-- Place this tag where you want the share button to render. -->
  243. <div class="g-plus" data-action="share" data-annotation="none" data-href="&lt;?php echo $siteUrl; ?&gt;/?ref=&lt;?php echo $_SESSION[&quot;user&quot;];?&gt;"></div>
  244.  
  245. <!-- Place this tag after the last share tag. -->
  246. <script type="text/javascript">
  247. (function() {
  248. var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
  249. po.src = 'https://apis.google.com/js/plusone.js';
  250. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  251. })();
  252. </script>
  253. </div>
  254. <?php } ?>
  255.  
  256.  
  257. <div class="box">
  258. <?php
  259. $tPoints = mysql_query("SELECT * FROM earnings WHERE type = 'in'");
  260. $tSpent = mysql_query("SELECT * FROM earnings WHERE type = 'out'");
  261. $tSpentC = 0;
  262. $tPointsC = 0;
  263. $tOffers = mysql_query("SELECT * FROM balances");
  264. $tOffersC = 0;
  265. while ($row = mysql_fetch_assoc($tPoints)) {
  266. $tPointsC = $row["points"] + $tPointsC;
  267. }
  268. while ($row = mysql_fetch_assoc($tSpent)) {
  269. $tSpentC = -($row["points"]) + $tSpentC;
  270. }
  271. while ($row = mysql_fetch_assoc($tOffers)) {
  272. $tOffersC = $row["offers"] + $tOffersC;
  273. }
  274. $tUsers = mysql_query("SELECT * FROM users");
  275. $tUsersC = mysql_num_rows($tUsers);
  276.  
  277. ?>
  278. <h2>Statystyki strony</h2>
  279. <div class="row">
  280. <ul>
  281. <li style="width:125px;" class="statlink">Razem punktow:</li>
  282. <li style="width:33px; text-align:center" class="pointyellow"> <?php echo $tPointsC;?> </li>
  283. </ul>
  284. <div class="clear"></div>
  285. </div>
  286. <div class="row">
  287. <ul>
  288. <li style="width:125px;" class="statlink">Wykonane oferty:</li>
  289. <li style="width:33px; text-align:center" class="pointyellow"><?php echo $tOffersC; ?></li>
  290. </ul>
  291. <div class="clear"></div>
  292. </div>
  293. <div class="row">
  294. <ul>
  295. <li style="width:125px;" class="statlink">Razem graczy:</li>
  296. <li style="width:33px; text-align:center" class="pointyellow"><?php echo $tUsersC; ?></li>
  297. </ul>
  298. <div class="clear"></div>
  299. </div>
  300. <div class="row">
  301. <ul>
  302. <li style="width:125px;" class="statlink">Wydane punkty:</li>
  303. <li style="width:33px; text-align:center" class="pointyellow"><?php echo $tSpentC; ?></li>
  304. </ul>
  305. <div class="clear"></div>
  306. </div>
  307.  
  308. </div>
  309.  
  310.  
  311. </div>
  312. <div class="clear"></div>
  313. </div>
  314. <div id="footer">
  315. <ul>
  316. <?php include("footlinks.php"); ?>
  317.  
  318. </ul>
  319. </div>
  320. </div>
  321. <?php include("footer.php"); ?>
  322. </body>
  323. </html>
Advertisement
Add Comment
Please, Sign In to add comment