Advertisement
Guest User

Richlist.php

a guest
Oct 3rd, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name=viewport content="width=device-width, initial-scale=1">
  7. <title>Fedoracoin (TiPS) Richlist</title>
  8. <style type="text/css">
  9. @font-face {
  10. font-family: Montserrat;
  11. src: url( 'http://fonts.gstatic.com/s/montserrat/v5/zhcz-_WihjSQC0oHJ9TCYL3hpw3pgy2gAi-Ip7WPMi0.woff' ) format( 'woff' ); }
  12. html {
  13. background-color: #d45f25;
  14. color: #303030;
  15. font-family: Montserrat, sans-serif;
  16. white-space: pre;
  17. font-size: 1em; }
  18. h1 {
  19. text-align: center; }
  20. table {
  21. margin-left: auto;
  22. margin-right: auto;
  23. border-spacing: 1em; }
  24. th {
  25. text-align: left; }
  26. a {
  27. color: #303030; }
  28. </style>
  29. </head>
  30. <body>
  31. <h1>Top 100 Richest Fedoracoin (TiPS) Addresses</h1>
  32. <table>
  33. <tr>
  34. <th>Address:</th>
  35. <th>Amount:</th>
  36. </tr>
  37. <?php
  38. $f = fopen("/usr/share/nginx/www/tally/output.txt", "r");
  39.  
  40. // Read line by line until end of file
  41. while (!feof($f)) {
  42.  
  43. // Make an array using space as delimiter
  44. $arrM = explode(" ",fgets($f));
  45.  
  46. // Write links (get the data in the array)
  47. echo "<tr><td><a href=\"http://insight.fedoracha.in/address/$arrM[0]\" target=\"_blank\">" . $arrM[0] . "</a></td><td>" . $arrM[1$
  48.  
  49. }
  50.  
  51. fclose($f);
  52. ?>
  53. </table>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement