Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Content-Type: text/html; charset=utf-8", true);
- header("Access-Control-Allow-Origin: *");
- // iniciando as sessões
- session_start();
- // mostrar todos os erros
- error_reporting(E_ALL);
- ini_set('display_errors', 1);
- require 'config.php';
- $ip = $_SERVER["REMOTE_ADDR"];
- $playeronline = file_get_contents('http://minecraft-api.com/api/ping/playeronline.php?ip='.$site['ip_numerico'].'&port='.$site['porta_game'].'');
- /////////////////////////////////////////
- // URL Amigável //
- /////////////////////////////////////////
- // preparação do sistema de URL's amigáveis
- $url = isset($_GET['url']) ? $_GET['url'] : '';
- $explode = explode('/', $url);
- $requesturl = $_SERVER['REQUEST_URI'];
- if (($pos = strpos($requesturl, "?")) !== FALSE) {
- $abatedordenovinhas = explode("&", explode("?", $requesturl)[1] );
- }
- $pagina = $explode[0] == '' ? $site['url_home'].".php" : '404.html';
- // verificação para ver se a página existe //
- $i = 1;
- $existe = false;
- while ($i <= count($pag_type))
- {
- if (@file_exists("paginas/".$explode[0].".".$pag_type[$i].""))
- {
- $existe = true;
- break;
- }
- $i++;
- }
- // auth
- require_once "AuthMe.class.php";
- if (isset($_POST['logar'])) {
- if (isset($_POST['usuario']) AND isset($_POST['senha'])) {
- $user = $_POST['usuario'];
- $pass = $_POST['senha'];
- $authme = new AuthMe("104.152.191.68", "host_92", "509d2d8403", "host_92", "authme", AuthMe::SHA256);
- $login = $authme->authenticate($user, $pass);
- if ($login) {
- $_SESSION['ID'] = $authme->getId($user);
- } else {
- $logError = '1';
- }
- }
- }
- if (isset($_SESSION['ID'])){$logado = true;}
- if (!isset($_SESSION['ID'])){$logado = false;}
- // preparar variável da página
- if ($explode[0] != '' && $existe) $pagina = $explode[0].".".$pag_type[$i];
- // retirar o ponto da extensão do arquivo para colocar no tittle
- $nomep = explode('.', $pagina);
- global $logado;
- $userFoto = $logado ? ("https://minotar.net/avatar/".$authme->getName($_SESSION['ID']."/50")) : ("https://minotar.net/avatar/char/50");
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript" src="https://stc.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.lightbox.js"></script>
- <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
- <link href='https://fonts.googleapis.com/css?family=Viga' rel='stylesheet' type='text/css'>
- <link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
- <style>
- body{
- margin:0;
- font-family: 'Montserrat', sans-serif;
- text-rendering:optimizeLegibility;
- }
- @font-face {
- font-family: "Montserrat";
- font-weight: 200;
- src: url("<?= $site['url']; ?>montserrat/Montserrat-Light.otf");
- src: url("<?= $site['url']; ?>montserrat/Montserrat-Light.ttf");
- }
- #cab_base {
- width: 100%;
- height: 125px;
- background-color: #eeefef;
- text-align: center;
- padding-top: 100px;
- }
- #menu_base {
- width: 100%;
- height: 70px;
- background: #e3c29a;
- word-spacing: 4em;
- text-align: center;
- position:relative;
- top:0;
- }
- #menu_base a {
- color: #bc846b;
- text-decoration: none;
- font-family: 'Roboto Condensed', sans-serif;
- font-weight: 700;
- font-size: 18px;
- }
- #menu_base img{
- margin-top: -52px;
- vertical-align: -80px;
- pointer-events: none;
- margin-left: 25px;
- margin-right: 25px;
- transform: scale(.75, .75);
- -ms-transform: scale(.75, .75);
- -webkit-transform: scale(.75, .75);
- -webkit-transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995);
- -moz-transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995);
- -o-transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995);
- transition: all 500ms cubic-bezier(0.120, 0.000, 0.000, 0.995); /* custom */
- }
- #slider_base{
- height: 215px;
- width: 100%;
- pointer-events: none;
- text-align: center;
- display: table;
- }
- #avatar_login {
- margin-right: 20px;
- margin-top: 10px;
- width: 50px;
- height: 50px;
- border-radius: 3px;
- position: absolute;
- right: 0;
- top: 0;
- }
- #minigames_cab {
- height: 145px;
- width: 100%;
- -webkit-box-shadow: inset 0px 0px 60px 0px rgba(50, 50, 50, 0.75);
- -moz-box-shadow: inset 0px 0px 60px 0px rgba(50, 50, 50, 0.75);
- box-shadow: inset 0px 0px 60px 0px rgba(50, 50, 50, 0.75);
- font-size: 30px;
- text-align: center;
- padding-top: 20px;
- }
- #minigames_bloco {
- height: 215px;
- width: 21%;
- background: #c1bedb;
- float: left;
- margin-top: -50px;
- margin-left: 15px;
- margin-right: 15px;
- border-radius: 3px;
- border-style: solid;
- border-width: 1.5px;
- border-color: #fff;
- -webkit-box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, .5);
- -moz-box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, .5);
- box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, .5);
- }
- #minigames_blococola {
- width: calc(70% + 41px);
- margin:-20 auto;
- }
- #cab_base span {
- font-size: 25px;
- font-weight: 100;
- margin-top: 25px;
- }
- #menu_base:hover img {
- transform: scale(1, 1);
- -ms-transform: scale(1, 1);
- -webkit-transform: scale(1, 1);
- }
- #loja_geral_1{
- text-align: center;
- width:100%;
- padding-top: 50px;
- }
- #store_base {
- opacity: 0.5;
- -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
- -moz-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*mozilla*/
- -o-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*opera*/
- transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
- display: inline-block;
- margin-left: 10px;
- margin-right: 10px;
- border-radius: 10px;
- }
- #store_base:hover{
- opacity: 1;
- }
- #store_photo {
- width: 150px;
- height: 150px;
- -webkit-box-shadow: inset 0px 0px 130px 0px rgba(50, 50, 50, 0.1);
- -moz-box-shadow: inset 0px 0px 130px 0px rgba(50, 50, 50, 0.1);
- box-shadow: inset 0px 0px 130px 0px rgba(50, 50, 50, 0.1);
- }
- #store_text {
- background-color: rgba(29, 22, 14, 0.5);
- padding-top: 5px;
- padding-bottom: 5px;
- color: #fff;
- width: 150px;
- margin-top: -29px;
- }
- #loja_prods {
- width: 400%;
- padding-top: 50px;
- padding-bottom: 50px;
- margin-top: 50px;
- height: 150px;
- background-color: #291F13;
- box-shadow: inset black 0px 0px 60px;
- }
- #loja_prodsbycat {
- width: 25%;
- float: left;
- }
- #loja_prods_geral {
- width: 100%;
- overflow: hidden;
- }
- #prod_infbase {
- background: #291F13;
- text-align: center;
- padding-top: 30px;
- padding-bottom: 50px;
- color: #fff;
- box-shadow: inset black 0px 0px 60px;
- }
- #prod_buybase {
- padding-top: 20px;
- padding-bottom: 40px;
- height: 150px;
- }
- #prod_photo {
- float:left;
- width: 150;
- height: 150;
- margin-right: 20px;
- margin-left: 10%;
- }
- #btn1 {
- padding: 10px;
- border-style: solid;
- border-radius: 5px;
- border-width: 2px;
- }
- #login_overlay {
- background-color: rgba(0,0,0,0.8);
- z-index:2;
- display:none;
- opacity: 0;
- width: 100%;
- height: 100%;
- position: fixed;
- left:0;
- top:0;
- -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
- transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
- }
- #login_base {
- margin: 0 auto;
- width: 680px;
- height: 415px;
- background: #e6e6e6 url(<?= $site['url']; ?>images/login_bg.png) left no-repeat;
- border-radius: 10px;
- font-family: 'Viga';
- box-shadow: 0 0 45px rgba(0,0,0,0.75);
- text-align: center;
- vertical-align: middle;
- color: #717171;
- position: fixed;
- float:right;
- display: inline-block;
- margin-left: -340px;
- margin-top: -227px;
- top: 50%;
- left:50%;
- display: none;
- z-index: 99999;
- opacity: 0;
- -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
- transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
- }
- #login_textspan {
- vertical-align: middle;
- position: absolute;
- right: 0;
- font-size: 1.1em;
- margin-right: 40px;
- margin-top: 120px;
- margin-bottom: 35px;
- width:175px;
- -webkit-text-stroke: 1px rgba(100,100,100,0.1);
- }
- #login_buttonuser {
- width: 180px;
- height: 40px;
- border-style: solid;
- border-width: 2px;
- border-color: #717171;
- color: #717171;
- text-align: left;
- opacity: 0.8;
- border-radius: 5px;
- float: right;
- -webkit-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*safari*/
- -moz-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*mozilla*/
- -o-transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /*opera*/
- transition: all 500ms cubic-bezier(0.410, 0.010, 0.325, 0.980); /* animação geral */
- }
- #login_buttonuser img {
- margin-left: 4.5px;
- margin-top: 4px;
- border-radius: 3px;
- }
- #login_buttonbase {
- text-decoration: none;
- position: absolute;
- right: 0;
- margin-right: 36px;
- margin-top: 80px;
- }
- #loginLoginlogin input {
- width: 184px;
- height: 45px;
- border-style: solid;
- border-width: 2px;
- border-color: #717171;
- color: #717171;
- text-align: left;
- opacity: 0.8;
- border-radius: 5px;
- float: right;
- background: url(<?= $site['url']; ?>images/lock-outline.png) no-repeat;
- background-position: 7px 9px;
- -webkit-transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
- -moz-transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
- -o-transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
- transition: all 500ms cubic-bezier(0.410,0.010,0.325,0.980);
- margin-right: 36px;
- margin-top: 73px;
- padding-left: 40px;
- outline: none;
- font-family: 'Viga';
- }
- #loginLoginlogin button {
- float: right;
- margin-top: 137px;
- right: 36px;
- position: absolute;
- background: none;
- border-style: solid;
- border-color: #888888;
- padding: 6px 17px;
- font-family: 'Viga';
- color: #5D5D5D;
- border-radius: 6px;
- outline: none;
- }
- #prod_buybase input {
- padding: 10px;
- border-style: solid;
- background: none;
- font-family: 'Montserrat';
- border-radius: 5px;
- border-width: 2px;
- font-size: 17px;
- border-color: #000;
- outline: none;
- }
- #alertmtotop {
- width: 100%;
- background-color: #E08770;
- color: #FFDCB2;
- text-align: center;
- padding: 20px;
- border-bottom-style: solid;
- border-bottom-color: #C17661;
- border-width: 4px;
- transition: .5s;
- text-shadow: 0px 2px 0px rgba(255, 255, 255, 0.3);
- }
- #alertmtotop a {
- color: #fff;
- text-decoration: none;
- font-size: 0.8em;
- }
- </style>
- <script>
- function scrolltop() {
- var top = 0;
- if (typeof(window.pageYOffset) == "number") {
- top = window.pageYOffset;
- } else if (document.body && document.body.scrollTop) {
- top = document.body.scrollTop;
- } else if (document.documentElement && document.documentElement.scrollTop) {
- top = document.documentElement.scrollTop;
- }
- return top;
- }
- window.addEventListener('scroll',
- function stickyshow() {
- var top = scrolltop();
- var barra = document.querySelector('.menu_base')
- if (top > 225) {
- document.getElementById("menu_base").style.position = 'fixed';
- document.getElementById("menu_base").style.top = '0px';
- document.getElementById("cab_base").style.marginBottom = '70px';
- } else {
- document.getElementById("menu_base").style.position = 'relative';
- document.getElementById("menu_base").style.top = '';
- document.getElementById("cab_base").style.marginBottom = '0px';
- }
- });
- function abreloginsesamo() {
- document.getElementById("login_base").style.display = "inline-block";
- document.getElementById("login_base").style.opacity = "1";
- document.getElementById("login_overlay").style.display = "block"
- document.getElementById("login_overlay").style.opacity = "1";
- }
- function fechaloginsesamo() {
- document.getElementById("login_base").style.opacity = "0";
- document.getElementById("login_overlay").style.opacity = "0";
- document.getElementById("login_base").style.display = "none";
- document.getElementById("login_overlay").style.display = "none"
- }
- <?php
- $pdo = new PDO('mysql:host=104.152.191.68;dbname=host_92', 'host_92', '509d2d8403');
- $consulta = $pdo->prepare('SELECT `username` FROM `authme` WHERE ip = ?');
- $consulta->execute(array($ip));
- while ($linha = $consulta->fetch())
- {
- echo '
- function '.$linha['username'].'Login() {
- 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>\';
- }
- ';
- }
- ?>
- function outracontaScreen() {
- 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>';
- }
- </script>
- </head>
- <body>
- <?php
- if (isset($logError) == '1') {
- 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>';
- }
- ?>
- <div id="cab_base"><span>Venha e se junte a <?php echo $playeronline; ?> players! <b><?= $site['ip_publico']; ?></b></div>
- <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>
- <?php include_once "paginas/$pagina"; ?>
- <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>
- <?php
- if (!$logado) {
- include 'vipcode.php';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement