Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. require_once '../../../../global.php';
  4.  
  5.  
  6. $TplClass->SetParam('title', 'Tienda de Colores');
  7. $TplClass->SetParam('ricos', active);
  8. $TplClass->SetParam('comunidad', active);
  9. $Functions->Logged("true");
  10. $TplClass->SetParam('HKLINK', '');
  11. $TplClass->SetParam('r1', '[');
  12. $TplClass->SetParam('r2', ']');
  13. $r1 = "[";
  14. $r2 = "]";
  15.  
  16. $users = $db->query("SELECT rank FROM users WHERE username = '{$_SESSION['username']}' AND password = '{$_SESSION['password']}'");
  17. $user = $users->fetch_array();
  18. if($user['rank'] >= MINRANK){
  19. $TplClass->SetParam('HKLINK', '<a class="enter_client" target="_blank" href='.HK.'>ADMIN<i></i></a>');
  20. }
  21.  
  22. $TplClass->SetAll();
  23.  
  24. if( $_SESSION['ERROR_RETURN'] ){
  25. $TplClass->SetParam('error', '<div class="content_title error" style="display: block;"><div class="content_error"></div>'.$_SESSION['ERROR_RETURN'].'</div>');
  26. unset($_SESSION['ERROR_RETURN']);
  27. }
  28.  
  29. if( $_SESSION['GOOD_RETURN'] ){
  30. $TplClass->SetParam('error', '<div class="content_title success" style="display: block;"><div class="content_success"></div>'.$_SESSION['GOOD_RETURN'].'</div>');
  31. unset($_SESSION['GOOD_RETURN']);
  32. }
  33.  
  34. $TplClass->AddTemplate("Header", "header");
  35. //COLUMNA CENTRO
  36. ?>
  37.  
  38.  
  39.  
  40.  
  41. <script type="text/javascript" src="/yezzcms/js/apprise-1.5.full.js"></script>
  42. <link rel="stylesheet" href="/yezzcms/css/apprise.css" type="text/css" />
  43.  
  44.  
  45. <br>
  46. <script>
  47. apprise("Por favor, antes de realizar alguna compra. <b>Debe Cerrar o Salir del Client.</b> \n \n Una vez que realice la compra, puede entrar nuevamente.");
  48. </script>
  49. <div class="content_box left">
  50. <div class="content_padding smaller">
  51. <div class="content_title purple_noticion">Pon tu nombre de color y lucete en HabboPlux</div>
  52. <div class="content_padding">
  53.  
  54. <?php
  55. //COLUMNA FOOTER
  56. $TplClass->AddTemplate("Data", "error");
  57. ?>
  58.  
  59.  
  60.  
  61.  
  62. <?php global $db;
  63. $badges = $db->query("SELECT * FROM cms_colores ORDER BY id DESC");
  64. while($badge = $badges->fetch_array()){
  65. if($back == "#FFFFF"){
  66. $back = " rgb(235, 235, 235)";
  67. }else{
  68. $back = "#FFFFF";}?>
  69.  
  70. <form method="post" action="/functions.php">
  71. <div class="forum_div">
  72.  
  73. <div class="left_category">
  74.  
  75. <div class="user_avatar category" style="background-color:#<?php echo $badge['code']; ?>; no-repeat center;width:91px;height:90px;margin-left:0;">
  76.  
  77. </div>
  78.  
  79. </div>
  80.  
  81.  
  82. <div class="right_category left">
  83.  
  84. <div class="content_padding">
  85.  
  86. <div class="content_title grey staff" style="width:318px;">
  87. <a href="#"><b></b>#<?php echo $badge['code']; ?></a>
  88. <span class="right"> <?php echo $badge['price']; ?> Diamantes</span>
  89. </div>
  90.  
  91. <input type="hidden" name="colorcode" value="<?php echo $badge['id']; ?>">
  92. <button type="submit" name="buycolor" style="margin-top:17px;" class="button green">Comprar</button>
  93.  
  94.  
  95. </div>
  96.  
  97. </div>
  98.  
  99. </div>
  100. </form>
  101.  
  102. <?php } ?>
  103.  
  104.  
  105.  
  106. </div>
  107.  
  108.  
  109.  
  110. </div>
  111. </div>
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. <?php
  122. //COLUMNA FOOTER
  123. $TplClass->AddTemplate("Data", "info");
  124. ?>
  125. <?php
  126. //COLUMNA FOOTER
  127. $TplClass->AddTemplate("Data", "footer");
  128. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement