Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.88 KB | None | 0 0
  1.  
  2. PHP FormatterHomeFeaturesContactAbout
  3. Bookmark and Share
  4.  
  5.  
  6.            
  7. Welcome to the new PHP Formatter!
  8. We've given PHP Formatter a new design as well as a new engine! The new engine features:
  9. Blazingly fast, on the fly formatting of all scripts!
  10. PHP 4 and PHP 5 support
  11. Handy syntax check function
  12. Ability to create your own coding styles, or to use builtin styles
  13. Proper handling of doc comments, and alternative control structures
  14.  
  15.  
  16. InputStyleFormat
  17. 1
  18. 2
  19. 3
  20. 4
  21. 5
  22. 6
  23. 7
  24. 8
  25. 9
  26. 10
  27. 11
  28. 12
  29. 13
  30. 14
  31. 15
  32. 16
  33. 17
  34. 18
  35. 19
  36. 20
  37. 21
  38. 22
  39. 23
  40. 24
  41. 25
  42. 26
  43. 27
  44. 28
  45. 29
  46. 30
  47. 31
  48. 32
  49. 33
  50. 34
  51. 35
  52. 36
  53. 37
  54. 38
  55. 39
  56. 40
  57. 41
  58. 42
  59. 43
  60. 44
  61. 45
  62. 46
  63. 47
  64. <?php
  65. if (!defined('INITIALIZED'))
  66.     exit;
  67. $main_content .= '<div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url(layouts/custom/img/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url(layouts/custom/img/content/box-frame-vertical.gif);"></span> <div class="Text">Commands</div> <span class="CaptionVerticalRight" style="background-image:url(layouts/custom/img/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url(layouts/custom/img/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(layouts/custom/img/content/table-shadow-rt.gif);"></div> </div> <div class="TableContentAndRightShadow" style="background-image:url(layouts/custom/img/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <tbody><tr> <td style="float: center;"><center><small><font color="green"> Exemplo para adicionar uma venda.</font></small><br><b>!offer add, itemName, itemCount, itemPrice </b><br><small>example: !offer add, plate armor, 1, 500</small><br><font color="red"><font size="1"></font></font></center><br><br></td> </center> <!--<td width="25%"><img src="" style="float: right;"></td>--> </tr> </tbody></table> </div> </div> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(layouts/custom/img/content/table-shadow-rt.gif);"></div> </div> <div class="TableContentAndRightShadow" style="background-image:url(layouts/custom/img/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" width="100%" style="border:1px solid #faf0d7;"> <tbody><tr> <td width="40%" style="background: #1a7b1a;color: white;"><center><i class="fas fa-cart-plus" style="font-size: 36px;float: left;"></i><b>!offer buy, AuctionID</b><br><small>example: !offer buy, 1943<br>Esse comando compra uma oferta.</small></center></td> <td width="40%" style="background: #b52525;color: white;"><center><i style="font-size: 36px;float: left;" class="fas fa-trash-alt"></i><b>!offer remove, AuctionID </b><br><small>example: !offer remove, 1943<br>Esse comando remove uma oferta.</small></center></td> </tr> </tbody></table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url(layouts/custom/img/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url(layouts/custom/img/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url(layouts/custom/img/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> </br> <div style="float: right;"> <form action="?subtopic=auction&action=items" method="post"> <input class="inputclass" type="text" name="pesquisar" value="" placeholder="Item Name" required=""> <input class="inputbotton" type="submit" name="searching" value="Search" onclick="checkSearch();"> </form> </div> </br> </br>';
  68. $page = 0;
  69. if (isset($_REQUEST['page']))
  70.     $page = (int) $_REQUEST['page'];
  71. $rows        = 20;
  72. $rowsPerPage = 20;
  73. $found_item  = false;
  74. $submit      = trim($_POST['submit']);
  75. $pesquisar   = (string) $_POST['pesquisar'];
  76. $info        = $SQL->query('SELECT * FROM `auction_system` WHERE item_name LIKE "%' . $pesquisar . '%" ORDER BY `item_name` DESC');
  77. if (empty($info)) {
  78.     $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="' . $config['site']['vdarkborder'] . '"><TD CLASS=white><b>Auctions</b></td></TR><TR BGCOLOR=' . $config['site']['darkborder'] . '><TD>Currently is no one active Auction.</TD></TR></TABLE>';
  79.     $main_content .= '<br /><p align="right"><small>System created by <a href="http://otland.net/members/pedrook/">Yinz</a>.</small></p>';
  80. } else {
  81.     foreach ($SQL->query('SELECT * FROM `auction_system` WHERE item_name LIKE "%' . $pesquisar . '%" ORDER BY `item_name` DESC') as $info) {
  82.         $player = new Player();
  83.         $player->load($info['player_id']);
  84.         $cost = round($info['value'] / 1000, 2);
  85.         if ($action == "items") {
  86.             if ($pesquisar) {
  87.                 $found_item = true;
  88.                 $info_item .= $content .= '<TR> <TD><center>' . $info['id'] . '</center></TD> <TD><center><img src="/images/all/' . $info['item_id'] . '.gif"/></center></TD> <TD><center>' . $info['item_name'] . '</center></TD> <TD><center><a href="?subtopic=characters&name=' . urlencode($info['name']) . '">' . $info['name'] . '</a></center></TD> <TD><center>' . $info['count'] . '</center></TD> <TD><center>' . $cost . 'k<br /><small>' . $info['value'] . 'gp</small></center></TD> <TD><center>!offer buy, ' . $info['id'] . '</center></TR>';
  89.             }
  90.         }
  91.         if ($action == "") {
  92.             $info_item .= $content .= '<TR> <TD><center>' . $info['id'] . '</center></TD> <TD><center><img src="/images/all/' . $info['item_id'] . '.gif"/></center></TD> <TD><center>' . $info['item_name'] . '</center></TD> <TD><center><div>Adicionado por <strong>' . $player->getName() . '</strong></div></center></TD> <TD><center>' . $info['count'] . '</center></TD> <TD><center>' . $cost . 'k<br /><small>' . $info['value'] . 'gp</small></center></TD> <TD><center>!offer buy, ' . $info['id'] . '</center></TR>';
  93.         }
  94.     }
  95.     $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url(layouts/custom/img/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url(layouts/custom/img/content/box-frame-vertical.gif);"></span> <div class="Text"><a href="?subtopic=auction"><font color="white">Trade OFF</font></a><p style="display: inline; float: right; margin: 0 10px 0px 0px;">Filters: <a class="branquim" href="?subtopic=auction">[ ALL Items ]</a></p></div> <span class="CaptionVerticalRight" style="background-image:url(layouts/custom/img/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url(layouts/custom/img/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url(layouts/custom/img/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url(layouts/custom/img/content/table-shadow-rt.gif);"></div> </div> <div class="TableContentAndRightShadow" style="background-image:url(layouts/custom/img/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="' . $config['site']['vdarkborder'] . '"><TD CLASS=white><b><center>ID</center></b></TD><TD class="white"><b><center>#</center></b></TD><TD class="white"><b><center>Item Name</center></b></TD><TD class="white"><b><center>Player</center></b></TD><TD class="white"><b><center>Count</center></b></TD><TD class="white"><b><center>Cost</center></b></td><TD class="white"><b><center>Buy</center></b></td></TR>' . $content . '</TABLE>';
  96.     $main_content .= '<br /><p align="right"><small>System created by <a href="http://otland.net/members/pedrook/">Yinz</a>.</small></p> </div> </div> </tbody> </table> </div> </td> </tr> </tbody> </table>';
  97. }
  98. if (isset($_POST['submit']) && $_POST['submit'] == 'search') {
  99.     if (!$found_item) {
  100.         $info_item .= 'Este item não existe.';
  101.     }
  102. }
  103. $main_content .= '<center><div class="text-center"><ul class="pagin">';
  104. $pages = (int) ($rows / $rowsPerPage);
  105. for ($i = 0; $i < $pages; $i++) {
  106.     $x = $i + 1;
  107.     $main_content .= '<li ' . (($x - 1) == $page ? 'class="active"' : '') . '><a href="?subtopic=auction&list=' . urlencode($list) . '&page=' . ($x - 1) . '" data-original-title="" title="">' . ($x) . '</a></li>';
  108. }
  109. $main_content .= '</ul></div></center></div>';
  110. ?>
  111. Download Formatting took: 3 sPHP Formatter made by Spark Labs  
  112. Copyright Gerben van Veenendaal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement