Guest User

Untitled

a guest
Oct 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.88 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pt-br">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <link rel="shortcut icon" href="img/favicon.jpg" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <title>Seu Site - Inicio</title>
  9. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  10. <link href="css/bootstrap.css" rel="stylesheet">
  11. <script src="js/copyToClipboard.js"></script>
  12. <script src="js/mc-player-counter.js"></script>
  13. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  14. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  15. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  16.  
  17. <style>
  18.  
  19. body{
  20. background-color: #f4f4f4;
  21. }
  22.  
  23. </style>
  24. <div id="fb-root"></div>
  25. <script>(function(d, s, id) {
  26. var js, fjs = d.getElementsByTagName(s)[0];
  27. if (d.getElementById(id)) return;
  28. js = d.createElement(s); js.id = id;
  29. js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.10";
  30. fjs.parentNode.insertBefore(js, fjs);
  31. }(document, 'script', 'facebook-jssdk'));</script>
  32.  
  33. </head>
  34. <body>
  35.  
  36. <nav class="navbar navbar-inverse" style="background-color: #1976d2;border-bottom: 4px solid #004ba0; border-radius:0px;">
  37. <div class="container-fluid">
  38. <div class="navbar-header">
  39. </div>
  40. <ul class="nav navbar-nav" style="color: white;margin-left: 23%; font-size: 14px; float: center;">
  41. <li><a href="index.php"><i class="fa fa-home" style="font-size:20px"></i> Inicio</a></li>
  42. <li class="dropdown">
  43. <a class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-shopping-basket" style="font-size:20px"></i> Loja
  44. <span class="caret"></span></a>
  45. <ul class="dropdown-menu">
  46. <li><a href="loja1.php"><i class="fa fa-angle-double-right" style="font-size:20px"></i> Loja1</a></li>
  47. <li><a href="loja2.php"><i class="fa fa-angle-double-right" style="font-size:20px"></i> Loja2</a></li>
  48. </ul>
  49. </li>
  50. <li><a href="regras.php"><i class="fa fa-bullhorn" style="font-size:20px"></i> Regras</a></li>
  51. <li><a href="forumoff.php"><i class="fa fa-balance-scale" style="font-size:20px"></i> Forum</a></li>
  52. <li class="dropdown">
  53. <a class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exclamation-triangle" style="font-size:20px"></i> Staff
  54. <span class="caret"></span></a>
  55. <ul class="dropdown-menu">
  56. <li><a href="login.php"><i class="fa fa-lock" style="font-size:20px"></i> Login</a></li>
  57. <li><a href="sair.php"><i class="fa fa-unlock-alt" style="font-size:20px"></i> Logout</a></li>
  58. <li><a href="painel.php"><i class="fa fa-desktop" style="font-size:15px"></i> Painel</a></li>
  59. <li class="divider"></li>
  60. <li><a href="contato.php"><i class="fa fa-comments" style="font-size:15px"></i> Contato</a></li>
  61. <li><a href="equipe.php"><i class="fa fa-group" style="font-size:15px"></i> Equipe</a></li>
  62. </ul>
  63. </li>
  64. </ul>
  65. </div>
  66. </nav>
  67.  
  68.  
  69. <center>
  70.  
  71. <div class="container" style="width: 90%; margin-top: 20px;">
  72. <br>
  73. <div id="myCarousel" class="carousel slide" data-ride="carousel">
  74. <!-- Indicators -->
  75. <ol class="carousel-indicators">
  76. <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
  77. <li data-target="#myCarousel" data-slide-to="1"></li>
  78. <li data-target="#myCarousel" data-slide-to="2"></li>
  79. <li data-target="#myCarousel" data-slide-to="3"></li>
  80. </ol>
  81.  
  82. <!-- Wrapper for slides -->
  83. <div class="carousel-inner" role="listbox" style="border: 2px solid #1976d2;">
  84.  
  85. <div class="item active">
  86. <img src="img/la.png" alt="Chania" width="100%;" height="100%;">
  87. <div class="carousel-caption">
  88. <h3>FullPvP</h3>
  89. <p>Gosta de PvP? então este servidor é para você!</p>
  90. </div>
  91. </div>
  92.  
  93. <div class="item">
  94. <img src="img/la.png" alt="Chania" width="100%" height="345">
  95. <div class="carousel-caption">
  96. <h3>Factions</h3>
  97. <p>Crie sua faccão, e domine o servidor, consegue?</p>
  98. </div>
  99. </div>
  100.  
  101. <div class="item">
  102. <img src="img/la.png" alt="Flower" width="100%" height="200">
  103. <div class="carousel-caption">
  104. <h3>SkyBlock</h3>
  105. <p>Viva sobre ilhas, vá pvp e divirta-se!</p>
  106. </div>
  107. </div>
  108.  
  109. <div class="item">
  110. <!-- A imagem deverá ser 700 x 200 -->
  111. <img src="img/la.png" alt="Flower" width="100%" height="345">
  112. <div class="carousel-caption">
  113. <h3>Flowers</h3>
  114. <p>Beautiful flowers in Kolymbari, Crete.</p>
  115. </div>
  116. </div>
  117.  
  118. </div>
  119.  
  120. <!-- Left and right controls -->
  121.  
  122. </div>
  123. </div>
  124. </center>
  125.  
  126. <div style="background-color: #0065ff; width: 100%; height: 85px; margin-top: 20px; border: 1px solid green;">
  127. <a class="btn btn-primary btn-sm"style="background-color: #390072;margin-right: 2px; font-size: 15px; margin-left: 1%;min-width: 200px; margin-top: 2%;" onclick="copyToClipboard(this, 'jogar.magicsky.com.br!', 'Copiado!')" >Jogar.magicsky.com.br - 1.8.x</a>
  128. <a class="btn btn-primary btn-sm"style="background-color: #390072;margin-left: 2px; font-size: 15px; margin-right: 1%;min-width:200px; margin-top: 2%; float: right;" >Possui <b><span data-playercounter-ip="mc.hypixel.net">0</span></b> jogadores conectados</a>
  129. </div>
  130.  
  131. <div style="width: 100%; height: 100%;">
  132.  
  133. <?php
  134.  
  135.  
  136. /**
  137. * Sistema de Noticias com comentários
  138. *
  139. * Usado para adicionar noticias.
  140. *
  141. * @author The Css Tutoriais
  142. * @link http://www.youtube.com/user/AdoroTransformice
  143. *
  144. * @version 1.0
  145. */
  146. // Faz conexão com o Banco de Dados
  147. include('config.php');
  148. // Seleciona a tabela 'news' onde os dados das noticias ficam
  149. $selecionar_db = "SELECT * FROM news ORDER BY id DESC";
  150. // Faz a Conexão com o banco de dados
  151. $final = mysql_query($selecionar_db)
  152. // Mensagem caso aconteça um erro na conexão
  153. or die ("<h1>Erro ao Conectar-se ao Banco de dados</h1>");
  154. // Pega os valores da tabela 'news'
  155. while ($news=mysql_fetch_array($final)) {
  156.  
  157. $id = $news["id"];
  158.  
  159. $titulo = $news["titulo"];
  160.  
  161. $banner = $news["banner"];
  162.  
  163. $categoria_id = $news["categoria"];
  164.  
  165. $autor = $news["autor"];
  166.  
  167. $views = $news["views"];
  168.  
  169. $date = $news["date"];
  170.  
  171. $texto = $news["texto"];
  172.  
  173. // Altera o Formato da data da noticia
  174. $date2 = strtotime($date);
  175. $data = date('d/m/Y', $date2);
  176. $hora = date('H:i', $date2);
  177. // Pega o número de Comentários que a noticia possui
  178. $comentarios_db = "SELECT * FROM comentarios WHERE noticia_id='$id'";
  179. $comentarios_db = mysql_query($comentarios_db);
  180. $comentarios = mysql_num_rows($comentarios_db);
  181.  
  182. // Faz a seleção da Categoria
  183. $categoria_db = "SELECT * FROM categorias WHERE id='$categoria_id'";
  184. $categoria_resultado = mysql_query($categoria_db);
  185. $categoria_final = mysql_fetch_assoc($categoria_resultado);
  186. $categoria = $categoria_final['categoria'];
  187. echo '<center>';
  188. echo '<div style=" background-color: white; min-width: 230px; border: 2px solid #e0e0e0; width: 70%; height: 100%; margin-bottom: 50px; margin-top: 60px;">';
  189.  
  190. echo '<div style="background-color: #004ac1; width: 100%; color: white; height: 100%;">';
  191. echo "<p style='float: left; margin-left: 1%;margin-right: 1%; margin-top: 9px;'>$categoria</p> <li style='list-style-type: none;text-align: left; font-size: 25px; color: white;'>$titulo</li>";
  192. echo '</div>';
  193.  
  194. echo "<div style='width: 100%; height: 160px; background-image: url($banner); background-repeat: no-repeat; color: black;'>";
  195. echo '</div>';
  196.  
  197. echo '<div style="width: 100%; height: 100px;">';
  198. echo "<li style='list-style-type: none; margin-left: 5%; margin-bottom: 5%;'>$texto</li>";
  199. echo '</div>';
  200.  
  201. echo "<div style='width: 100%; height: 50px; background-color: #ededed; line-height: 10px;'>";
  202. echo "<a style='float: right; margin-right: 5%; margin-top: 4px;' <a href=\"vernoticia.php?id=$id\" class='btn btn-primary btn-xs'>Ver mais detalhes</a>";
  203. echo "<p style='font-size: 12px; margin-left: 5%; float: left; margin-top: 0.7%;'>Postado por <b style='color: #3ec1f9;'>$autor</b> em <b>$data</b> ás <b>$hora</b></p>";
  204. echo "</div>";
  205.  
  206. echo '</div>';
  207.  
  208. }
  209. echo '</center>';
  210. ?>
  211. </div>
  212.  
  213.  
  214. <div class="footer-bottom" style="background-color: #303030; bottom: 0; height: 55px; width: 100%; ">
  215. <div class="container">
  216. <div class="row">
  217. <li class="col-md-12 widget" style="text-align: center; margin-top: 17px; font-size: 13px; list-style-type: none; color: white;">
  218. @ MagicSky - todos direitos reservados
  219. <a href="#"><img src="img/twitterlogo.png"></a>
  220. <a href="#"><img src="img/youtubeicon.png"></i></a>
  221. <a href="#"><img src="img/facebookicon.png"></i></a>
  222.  
  223. </li>
  224. </div>
  225. </div>
  226. </div>
  227.  
  228. </body>
  229. </html>
Advertisement
Add Comment
Please, Sign In to add comment