Guest User

Untitled

a guest
Apr 6th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script type="text/javascript">
  5. function exit(){
  6. var link = window.location.href;
  7. var split = link.split("/");
  8. var url = split[2];
  9. window.location = "http://" + url + "/IMMStart/principal/sair";
  10. }
  11. </script>
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13. <meta name="viewport" content="width=device-width, initial-scale=1">
  14. <link href="<?php echo PATH; ?>css/bootstrap.min.css" rel="stylesheet">
  15. <?php
  16. if(isset($_COOKIE['key-login'])){
  17. $keylogin = $_COOKIE['key-login'];
  18. $pesquser = BD::conn()->prepare("SELECT * FROM `auth-keys` WHERE auth_key = ?");
  19. $pesquser->execute(array($keylogin));
  20. if($pesquser->rowCount() == 0){
  21. setcookie("key-login", "",time()-3600, "/");
  22. echo '<script>alert("Cookie Invalido!"); location.href="'.PATH.'"; </script>';
  23. }else{
  24. $respesquser = $pesquser->fetchObject();
  25. $iduser = $respesquser->id_user;
  26. $queryuser = BD::conn()->prepare("SELECT * FROM `users` WHERE id = ?");
  27. $queryuser->execute(array($iduser));
  28. $resuser = $queryuser->fetchObject();
  29. $firstacesspospass = $resuser->firstacessposrecoverpass;
  30. $firstacess = $resuser->firstacess;
  31. if($firstacesspospass == 1){
  32. header("Location: " . PATH . "pospass");
  33. }
  34. if($firstacess == 1){
  35. header("Location: " . PATH . "start");
  36. }
  37. }
  38. }else{
  39. echo '<script>alert("Você não tem permissões para aceder a esta area!"); location.href="'.PATH.'"; </script>';
  40. }
  41. $precat = BD::conn()->prepare("SELECT * FROM `filmes`");
  42. $precat->execute();
  43. ?>
  44. <title>IMM | Start</title>
  45. <style type="text/css">
  46. *{
  47. margin: 0;
  48. padding: 0;
  49. }
  50. body{
  51. background: #030000;
  52. }
  53. .link{
  54. color: #fff;
  55. }
  56. .link:hover{
  57. text-decoration: underline;
  58. color: #fff;
  59. }
  60. .background{
  61. background: #e60002;
  62. width: 100%;
  63. }
  64. .txt{
  65. color: #fff;
  66. }
  67. div#filmes{
  68. margin-left: 1px;
  69. text-align: center;
  70. margin-top: 5px;
  71. }
  72. div#barra{
  73. border-top: 1px solid #000;
  74. height: 42px;
  75. width: 100%;
  76. background: #e60002;
  77. color: #fff;
  78. }
  79. .title{
  80. text-align: center;
  81. font-size: 28px;
  82. }
  83. .bk{
  84. background: #000;
  85. color: #fff;
  86. }
  87. .marg{
  88. margin-left: 5px;
  89. background:
  90. }
  91. .marg:hover{
  92. background: red;
  93. }
  94. .mt{
  95. margin-top: 5px;
  96. }
  97. </style>
  98. </head>
  99. <body>
  100. <?php include_once "pages/menu.html"; ?>
  101. <table class="mt">
  102. <tr>
  103. <?php while($res = $precat->fetchObject()){ ?>
  104. <th><a class="link" href="<?php echo PATH; ?>detalhes/url/<?php echo $res->url; ?>"><img class="marg" width="264" height="351" src="<?php echo PATH; ?>thumbs/<?php echo $res->patch_thumb; ?>" /><br><?php echo $res->nome; ?></a></th>
  105. <?php } ?>
  106. </tr>
  107. </table>
  108. <div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  109. <div class="modal-dialog modal-dialog-centered" role="document">
  110. <div class="modal-content">
  111. <div class="modal-header">
  112. <h5 class="modal-title" id="exampleModalLongTitle">IMM | START</h5>
  113. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  114. <span aria-hidden="true">&times;</span>
  115. </button>
  116. </div>
  117. <div class="modal-body">
  118. Desaja realmente terminar a sessão da IMM | START?
  119. </div>
  120. <div class="modal-footer">
  121. <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
  122. <button type="button" class="btn btn-primary" onclick="exit()">Sim, eu quero sair!</button>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <script src="<?php echo PATH; ?>js/jquery.js"></script>
  128. <script src="<?php echo PATH; ?>js/bootstrap.min.js"></script>
  129. </body>
  130. </html>
Add Comment
Please, Sign In to add comment