Advertisement
Guest User

awdwad

a guest
May 15th, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.68 KB | None | 0 0
  1. <?php
  2.  
  3. header("Content-Type: text/html; charset=utf-8", true);
  4. header("Access-Control-Allow-Origin: *");
  5. // iniciando as sessões
  6. session_start();
  7.  
  8. // mostrar todos os erros
  9. error_reporting(E_ALL);
  10. ini_set('display_errors', 1);
  11.  
  12. require 'config.php';
  13.  
  14. $ip = $_SERVER["REMOTE_ADDR"];
  15. $playeronline = file_get_contents('http://minecraft-api.com/api/ping/playeronline.php?ip='.$site['ip_numerico'].'&port='.$site['porta_game'].'');
  16. /////////////////////////////////////////
  17. // URL Amigável //
  18. /////////////////////////////////////////
  19.  
  20. // preparação do sistema de URL's amigáveis
  21. $url = isset($_GET['url']) ? $_GET['url'] : '';
  22. $explode = explode('/', $url);
  23.  
  24.  
  25. $requesturl = $_SERVER['REQUEST_URI'];
  26. if (($pos = strpos($requesturl, "?")) !== FALSE) {
  27. $abatedordenovinhas = explode("&", explode("?", $requesturl)[1] );
  28. }
  29.  
  30. $pagina = $explode[0] == '' ? $site['url_home'].".php" : '404.html';
  31.  
  32. // verificação para ver se a página existe //
  33. $i = 1;
  34. $existe = false;
  35. while ($i <= count($pag_type))
  36. {
  37. if (@file_exists("paginas/".$explode[0].".".$pag_type[$i].""))
  38. {
  39. $existe = true;
  40. break;
  41. }
  42. $i++;
  43. }
  44. // auth
  45. require_once "AuthMe.class.php";
  46.  
  47. if (isset($_POST['logar'])) {
  48. if (isset($_POST['usuario']) AND isset($_POST['senha'])) {
  49. $user = $_POST['usuario'];
  50. $pass = $_POST['senha'];
  51.  
  52. $authme = new AuthMe("104.152.191.68", "host_92", "509d2d8403", "host_92", "authme", AuthMe::SHA256);
  53. $login = $authme->authenticate($user, $pass);
  54.  
  55. if ($login) {
  56. $_SESSION['ID'] = $authme->getId($user);
  57. } else {
  58. $logError = '1';
  59. }
  60.  
  61. }
  62. }
  63.  
  64. if (isset($_SESSION['ID'])){$logado = true;}
  65.  
  66. if (!isset($_SESSION['ID'])){$logado = false;}
  67.  
  68.  
  69. // preparar variável da página
  70. if ($explode[0] != '' && $existe) $pagina = $explode[0].".".$pag_type[$i];
  71.  
  72. // retirar o ponto da extensão do arquivo para colocar no tittle
  73. $nomep = explode('.', $pagina);
  74.  
  75. global $logado;
  76.  
  77. $userFoto = $logado ? ("https://minotar.net/avatar/".$authme->getName($_SESSION['ID']."/50")) : ("https://minotar.net/avatar/char/50");
  78.  
  79. ?>
  80. <html>
  81. <head>
  82. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  83. <script type="text/javascript" src="https://stc.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.lightbox.js"></script>
  84. <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
  85. <link href='https://fonts.googleapis.com/css?family=Viga' rel='stylesheet' type='text/css'>
  86. <link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
  87. <style>
  88. body{
  89. margin:0;
  90. font-family: 'Montserrat', sans-serif;
  91. text-rendering:optimizeLegibility;
  92. }
  93.  
  94. @font-face {
  95. font-family: "Montserrat";
  96. font-weight: 200;
  97. src: url("<?= $site['url']; ?>montserrat/Montserrat-Light.otf");
  98. src: url("<?= $site['url']; ?>montserrat/Montserrat-Light.ttf");
  99. }
  100.  
  101. #cab_base {
  102. width: 100%;
  103. height: 125px;
  104. background-color: #eeefef;
  105. text-align: center;
  106. padding-top: 100px;
  107. }
  108.  
  109. #menu_base {
  110. width: 100%;
  111. height: 70px;
  112. background: #e3c29a;
  113. word-spacing: 4em;
  114. text-align: center;
  115. position:relative;
  116. top:0;
  117. }
  118.  
  119. #menu_base a {
  120. color: #bc846b;
  121. text-decoration: none;
  122. font-family: 'Roboto Condensed', sans-serif;
  123. font-weight: 700;
  124. font-size: 18px;
  125. }
  126.  
  127. #menu_base img{
  128. margin-top: -52px;
  129. vertical-align: -80px;
  130. pointer-events: none;
  131. margin-left: 25px;
  132. margin-right: 25px;
  133. transform: scale(.75, .75);
  134. -ms-transform: scale(.75, .75);
  135. -webkit-transform: scale(.75, .75);
  136.  
  137. -webkit-transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995);
  138. -moz-transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995);
  139. -o-transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995);
  140. transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995); /* custom */
  141. }
  142.  
  143. #slider_base{
  144. height: 215px;
  145. width: 100%;
  146. pointer-events: none;
  147. text-align: center;
  148. display: table;
  149. }
  150.  
  151. #avatar_login {
  152. margin-right: 20px;
  153. margin-top: 10px;
  154. width: 50px;
  155. height: 50px;
  156. border-radius: 3px;
  157. position: absolute;
  158. right: 0;
  159. top: 0;
  160. }
  161.  
  162. #minigames_cab {
  163. height: 145px;
  164. width: 100%;
  165. -webkit-box-shadow: inset 0px 0px 60px 0px rgba(50, 50, 50, 0.75);
  166. -moz-box-shadow: inset 0px 0px 60px 0px rgba(50, 50, 50, 0.75);
  167. box-shadow: inset 0px 0px 60px 0px rgba(50, 50, 50, 0.75);
  168. font-size: 30px;
  169. text-align: center;
  170. padding-top: 20px;
  171. }
  172.  
  173. #minigames_bloco {
  174. height: 215px;
  175. width: 21%;
  176. background: #c1bedb;
  177. float: left;
  178. margin-top: -50px;
  179. margin-left: 15px;
  180. margin-right: 15px;
  181. border-radius: 3px;
  182. border-style: solid;
  183. border-width: 1.5px;
  184. border-color: #fff;
  185. -webkit-box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, .5);
  186. -moz-box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, .5);
  187. box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, .5);
  188. }
  189.  
  190. #minigames_blococola {
  191. width: calc(70% + 41px);
  192. margin:-20 auto;
  193. }
  194.  
  195. #cab_base span {
  196. font-size: 25px;
  197. font-weight: 100;
  198. margin-top: 25px;
  199. }
  200.  
  201. #menu_base:hover img {
  202. transform: scale(1, 1);
  203. -ms-transform: scale(1, 1);
  204. -webkit-transform: scale(1, 1);
  205. }
  206.  
  207. #loja_geral_1{
  208. text-align: center;
  209. width:100%;
  210. padding-top: 50px;
  211. }
  212.  
  213. #store_base {
  214. opacity: 0.5;
  215. -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
  216. -moz-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*mozilla*/
  217. -o-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*opera*/
  218. transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
  219. display: inline-block;
  220. margin-left: 10px;
  221. margin-right: 10px;
  222. border-radius: 10px;
  223. }
  224.  
  225. #store_base:hover{
  226. opacity: 1;
  227. }
  228.  
  229. #store_photo {
  230. width: 150px;
  231. height: 150px;
  232. -webkit-box-shadow: inset 0px 0px 130px 0px rgba(50, 50, 50, 0.1);
  233. -moz-box-shadow: inset 0px 0px 130px 0px rgba(50, 50, 50, 0.1);
  234. box-shadow: inset 0px 0px 130px 0px rgba(50, 50, 50, 0.1);
  235. }
  236.  
  237. #store_text {
  238. background-color: rgba(29, 22, 14, 0.5);
  239. padding-top: 5px;
  240. padding-bottom: 5px;
  241. color: #fff;
  242. width: 150px;
  243. margin-top: -29px;
  244. }
  245.  
  246. #loja_prods {
  247. width: 400%;
  248. padding-top: 50px;
  249. padding-bottom: 50px;
  250. margin-top: 50px;
  251. height: 150px;
  252.  
  253. background-color: #291F13;
  254. box-shadow: inset black 0px 0px 60px;
  255. }
  256.  
  257. #loja_prodsbycat {
  258. width: 25%;
  259. float: left;
  260. }
  261.  
  262. #loja_prods_geral {
  263. width: 100%;
  264. overflow: hidden;
  265. }
  266.  
  267. #prod_infbase {
  268. background: #291F13;
  269. text-align: center;
  270. padding-top: 30px;
  271. padding-bottom: 50px;
  272. color: #fff;
  273. box-shadow: inset black 0px 0px 60px;
  274. }
  275.  
  276. #prod_buybase {
  277. padding-top: 20px;
  278. padding-bottom: 40px;
  279. height: 150px;
  280. }
  281.  
  282. #prod_photo {
  283. float:left;
  284. width: 150;
  285. height: 150;
  286. margin-right: 20px;
  287. margin-left: 10%;
  288. }
  289.  
  290. #btn1 {
  291. padding: 10px;
  292. border-style: solid;
  293. border-radius: 5px;
  294. border-width: 2px;
  295. }
  296.  
  297. #login_overlay {
  298. background-color: rgba(0,0,0,0.8);
  299. z-index:2;
  300. display:none;
  301. opacity: 0;
  302. width: 100%;
  303. height: 100%;
  304. position: fixed;
  305. left:0;
  306. top:0;
  307. -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
  308. transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
  309. }
  310.  
  311. #login_base {
  312. margin: 0 auto;
  313. width: 680px;
  314. height: 415px;
  315. background: #e6e6e6 url(<?= $site['url']; ?>images/login_bg.png) left no-repeat;
  316. border-radius: 10px;
  317. font-family: 'Viga';
  318. box-shadow: 0 0 45px rgba(0,0,0,0.75);
  319. text-align: center;
  320. vertical-align: middle;
  321. color: #717171;
  322. position: fixed;
  323. float:right;
  324. display: inline-block;
  325. margin-left: -340px;
  326. margin-top: -227px;
  327. top: 50%;
  328. left:50%;
  329. display: none;
  330. z-index: 99999;
  331. opacity: 0;
  332. -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
  333. transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
  334. }
  335.  
  336. #login_textspan {
  337. vertical-align: middle;
  338. position: absolute;
  339. right: 0;
  340. font-size: 1.1em;
  341. margin-right: 40px;
  342. margin-top: 120px;
  343. margin-bottom: 35px;
  344. width:175px;
  345. -webkit-text-stroke: 1px rgba(100,100,100,0.1);
  346. }
  347.  
  348. #login_buttonuser {
  349. width: 180px;
  350. height: 40px;
  351. border-style: solid;
  352. border-width: 2px;
  353. border-color: #717171;
  354. color: #717171;
  355. text-align: left;
  356. opacity: 0.8;
  357. border-radius: 5px;
  358. float: right;
  359. -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
  360. -moz-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*mozilla*/
  361. -o-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*opera*/
  362. transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
  363. }
  364.  
  365. #login_buttonuser img {
  366. margin-left: 4.5px;
  367. margin-top: 4px;
  368. border-radius: 3px;
  369. }
  370.  
  371. #login_buttonbase {
  372. text-decoration: none;
  373. position: absolute;
  374. right: 0;
  375. margin-right: 36px;
  376. margin-top: 80px;
  377. }
  378.  
  379. #loginLoginlogin input {
  380. width: 184px;
  381. height: 45px;
  382. border-style: solid;
  383. border-width: 2px;
  384. border-color: #717171;
  385. color: #717171;
  386. text-align: left;
  387. opacity: 0.8;
  388. border-radius: 5px;
  389. float: right;
  390. background: url(<?= $site['url']; ?>images/lock-outline.png) no-repeat;
  391. background-position: 7px 9px;
  392. -webkit-transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
  393. -moz-transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
  394. -o-transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
  395. transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
  396. margin-right: 36px;
  397. margin-top: 73px;
  398. padding-left: 40px;
  399. outline: none;
  400. font-family: 'Viga';
  401. }
  402.  
  403. #loginLoginlogin button {
  404. float: right;
  405. margin-top: 137px;
  406. right: 36px;
  407. position: absolute;
  408. background: none;
  409. border-style: solid;
  410. border-color: #888888;
  411. padding: 6px 17px;
  412. font-family: 'Viga';
  413. color: #5D5D5D;
  414. border-radius: 6px;
  415. outline: none;
  416. }
  417.  
  418. #prod_buybase input {
  419. padding: 10px;
  420. border-style: solid;
  421. background: none;
  422. font-family: 'Montserrat';
  423. border-radius: 5px;
  424. border-width: 2px;
  425. font-size: 17px;
  426. border-color: #000;
  427. outline: none;
  428. }
  429.  
  430. #alertmtotop {
  431. width: 100%;
  432. background-color: #E08770;
  433. color: #FFDCB2;
  434. text-align: center;
  435. padding: 20px;
  436. border-bottom-style: solid;
  437. border-bottom-color: #C17661;
  438. border-width: 4px;
  439. transition: .5s;
  440. text-shadow: 0px 2px 0px rgba(255, 255, 255, 0.3);
  441. }
  442.  
  443. #alertmtotop a {
  444. color: #fff;
  445. text-decoration: none;
  446. font-size: 0.8em;
  447. }
  448.  
  449. </style>
  450. <script>
  451. function scrolltop() {
  452. var top = 0;
  453. if (typeof(window.pageYOffset) == "number") {
  454. top = window.pageYOffset;
  455. } else if (document.body && document.body.scrollTop) {
  456. top = document.body.scrollTop;
  457. } else if (document.documentElement && document.documentElement.scrollTop) {
  458. top = document.documentElement.scrollTop;
  459. }
  460. return top;
  461. }
  462. window.addEventListener('scroll',
  463. function stickyshow() {
  464. var top = scrolltop();
  465. var barra = document.querySelector('.menu_base')
  466. if (top > 225) {
  467. document.getElementById("menu_base").style.position = 'fixed';
  468. document.getElementById("menu_base").style.top = '0px';
  469. document.getElementById("cab_base").style.marginBottom = '70px';
  470. } else {
  471. document.getElementById("menu_base").style.position = 'relative';
  472. document.getElementById("menu_base").style.top = '';
  473. document.getElementById("cab_base").style.marginBottom = '0px';
  474. }
  475. });
  476.  
  477. function abreloginsesamo() {
  478. document.getElementById("login_base").style.display = "inline-block";
  479. document.getElementById("login_base").style.opacity = "1";
  480. document.getElementById("login_overlay").style.display = "block"
  481. document.getElementById("login_overlay").style.opacity = "1";
  482. }
  483. function fechaloginsesamo() {
  484. document.getElementById("login_base").style.opacity = "0";
  485. document.getElementById("login_overlay").style.opacity = "0";
  486. document.getElementById("login_base").style.display = "none";
  487. document.getElementById("login_overlay").style.display = "none"
  488. }
  489.  
  490. <?php
  491. $pdo = new PDO('mysql:host=104.152.191.68;dbname=host_92', 'host_92', '509d2d8403');
  492. $consulta = $pdo->prepare('SELECT `username` FROM `authme` WHERE ip = ?');
  493. $consulta->execute(array($ip));
  494. while ($linha = $consulta->fetch())
  495. {
  496. echo '
  497.  
  498. function '.$linha['username'].'Login() {
  499. document.getElementById("loginLoginlogin").innerHTML = \'<a id="login_buttonbase"><div id="login_buttonuser"><img src="https://minotar.net/avatar/'.$linha['username'].'/32"><center style="margin-top: -26px;padding-left: 20;width: calc(100% - 20px);"><span style="font-size:0.9em;">'.$linha['username'].'</span></center></div></a><br><br><br><input type="hidden" name="usuario" id="usuario" value="'.$linha['username'].'" required="true" /><input type="password" name="senha" id="senha" placeholder="Senha"required="true" /><button type="submit" name="logar">Logar</button>\';
  500. }
  501.  
  502. ';
  503.  
  504. }
  505.  
  506. ?>
  507. function outracontaScreen() {
  508. document.getElementById("loginLoginlogin").innerHTML = '<a id="login_buttonbase"><input type="text" name="usuario" id="usuario" placeholder="Usuário"required="true" style="margin-top: 0px;margin-right: 0;background-image: url(<?= $site['url']; ?>images/account-circle.png);"/></a><br><br><br><input type="password" name="senha" id="senha" placeholder="Senha"required="true" /><button type="submit" name="logar">Logar</button>';
  509. }
  510. </script>
  511. </head>
  512. <body>
  513. <?php
  514. if (isset($logError) == '1') {
  515. echo '<div id="alertmtotop">Algo de errado não está certo! <a href="#" onclick="abreloginsesamo()">Tente logar novamente.</a> <a href="'.$site['url'].'loginproblems"><span>Problema ao logar?</span></a></div>';
  516. }
  517. ?>
  518. <div id="cab_base"><span>Venha e se junte a <?php echo $playeronline; ?> players! <b><?= $site['ip_publico']; ?></b></div>
  519. <div id="menu_base"><a href="<?= $site['url']; ?>">HOME </a><a href="<?= $site['url']; ?>loja">LOJA</a><img src="<?= $site['url']; ?>logo.png"><a href="<?= $site['url']; ?>faq">FAQ </a><a href="#">MAIS </a><a href="#" onclick="<?php if (!$logado) {echo "abreloginsesamo()";} ?>"><div id="avatar_login" style="background:url(<?= $userFoto; ?>)"></div></a></div>
  520. <?php include_once "paginas/$pagina"; ?>
  521. <div id="rodapeBase" style="background: #191919;"><br><br><center><span style="font-family: 'Viga'; padding: 15px; background-color: #fff;box-shadow: rgba(0,0,0,0.4) 0px 0px 40px; border-radius: 20px;">(C) royalNetwork ~ 2015/2016 / dev by @_helloGus</span></center><br><br></div>
  522. <?php
  523. if (!$logado) {
  524. include 'vipcode.php';
  525. }
  526. ?>
  527. </body>
  528. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement