Ir para conteúdo
Fórum Script Brasil

SkyBR

Membros
  • Total de itens

    4
  • Registro em

  • Última visita

Sobre SkyBR

SkyBR's Achievements

0

Reputação

  1. SkyBR

    [Ajuda] Site Erro

    Acho que o que está faltando e as tabelas! pois o mesmo tem dois arquivos de instalação, só que o arquivo install 2 está com um erro, se puderem me ajudar agradeço! install2.php Config.php <?php // Proteção cpmtra sql_inject// /////////////////////////////// include("inject.php"); /////////////////////////////// // Informações de host //////// /////////////////////////////// $host = "localhost"; $user = "ragnarok"; $senha = "ragnarok"; $db = "ragnarok"; /////////////////////////////// // Informações do sistema ///// /////////////////////////////// $servername = "seuRAGNA"; $rate = "100k/100k"; $drop = "100%"; $server = "127.0.0.1"; $port = "6121"; $port2 = "6900"; $port3 = "5121"; $timeout = "1"; /////////////////////////////// // Opções do sistema (Menu) // // 1 = ATIVO | 0 = Desativado// /////////////////////////////// $whoisatv = "1"; /////////////////////////////////// // Conexão com o Mysql, não mexa // /////////////////////////////////// mysql_connect($host, $user, $senha) or die (mysql_error()); mysql_select_db($db) or die (mysql_error()); ?>
  2. SkyBR

    [Ajuda] Site Erro

    Dando uma olhada no script você consegue identificar onde seria? Já fiz de tudo e nada!
  3. SkyBR

    [Ajuda] Site Erro

    alguém pode me ajudar a resolver o problema de um script ele da a seguinte mensagem: Parse error: syntax error, unexpected end of file in C:\wamp\www\site\index.php on line 139 Segue Script: <? if(!file_exists("config.php")){ echo "<script>window.location=('install/install.php')</script>"; } include('config.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="icon" href="favicon.ico" type="image/x-icon" /> <link rel="SHORTCUT ICON" href="favicon.ico" type="image/x-icon" /> <link rel="apple-touch-icon" href="favicon.ico" type="image/x-icon" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>#seuRAGNA</title> <link href="css.css" rel="stylesheet" type="text/css" /> <script language="JavaScript"> function clear_field(field){ if (field.value==field.defaultValue) { field.value='' } } function check_field(field) { if (field.value=='' || field.value==' ') { field.value=field.defaultValue } } </script> </head> <body> <div id="banner"></div> <div id="clear"></div> <div id="tudo"> <div id="conteudo"> <div id="menu"> <ul> <li><a href="?go=0">In&iacute;cio</a></li> <li><a href="?go=1">Informa&ccedil;&otilde;es</a></li> <li><a href="?go=RE">Cadastre-se</a></li> <li><a href="?go=D1">Downloads</a></li> <li><a href="?go=DOA">Doa&ccedil;&otilde;es</a></li> <li><a href="?go=REGR">Regras</a></li> <li><a href="?go=EQ">Equipe</a></li> <li><a href="#">F&oacute;rum</a></li> </ul> </div> <div id="comeceajogar"> <a href="?go=D1"><img style="border: 0px solid; width: 302px; height: 159px;" src="images/passo1.jpg" tppabs="" alt="Baixe Nosso Patch!" title="Baixe Nosso Patch!" /></a><a href="?go=RE"><img style="border: 0px solid; width: 288px; height: 159px;" src="images/passo2.jpg" tppabs="" alt="Crie Uma Conta!" title="Crie Uma Conta!" /></a><a href="#forum#" tppabs="" target="_blank"><img src="images/passo3.jpg" alt="Comece a Jogar!" title="Comece a Jogar!" tppabs="" border="0" /></a></div> <div id="direita"> <? if( $_GET['go'] != ""){ $pag = $_GET['go']; include('page.php'); if(file_exists("$classefinal.php")){ include"$classefinal.php"; }else{ include '404.php'; } }else{ include "home.php"; } ?> </div> <div id="esquerda"> <? include('pages/pnel.php') ?> <p align="left"> <img src="images/cadastrorecuperar.png" border="0" usemap="#Map" /> <map name="Map" id="Map"> <area shape="rect" coords="68,18,197,55" href="?go=RE" target="_parent" /> <area shape="rect" coords="69,60,197,103" href="?go=RES" target="_parent" /> </map> </p> <img src="images/status.png" alt="Status" width="205" height="60" /> <div align="center"> <p> <?php include('config.php'); if ($server and $port and $timeout) { $char = @fsockopen("$server", $port, $errno, $errstr, $timeout); $login = @fsockopen("$server", $port2, $errno, $errstr, $timeout); $map = @fsockopen("$server", $port3, $errno, $errstr, $timeout); } if($char) {?> Char Server: <img src='images/accept.png'><br> <? } else {?> Char Server: <img src='images/delete.png'><br> <? } if($login) {?> Login Server: <img src='images/accept.png'><br> <? } else {?> Login Server: <img src='images/delete.png'><br> <? } if($map) {?> Map Server: <img src='images/accept.png'><br> <? } else {?> Map Server: <img src='images/delete.png'><br> <? } include('pages/status.php') ?> </p> <p><a href="?go=2">Ver Usu&aacute;rios Online</a></p> </div> </div> </div> </div> <div id="clear"></div> <div id="rodape"></br> <div id="rodape_desc"> <p>&copy; 2012 <strong> </strong>- todos os direitos reservados a #seuRAGNA.<br /> Ragnarok &eacute; um produto da Gravity Corp. & LeeMyougjin.<br /> Website desenvolvido por <strong>Anderson Pontes</strong>.</p> </div> </div> </body> </html>
  4. Olá, Estou com um problema, tenho um servidor de games e estou querendo mostrar o status dele e quantos jogadores estão online, o codigo já está hospedado no wamp, possuo noip, mas só funciona local, tipow local ele mostra o servidor online com é pra ser, mas quando coloco de fora ele não faz conexão com o servidor ele sempre mostra offline! noip: skyterraria.no-ip.biz porta api: 7878 porta do jogo: 7777 hospedagem: http://skyterraria.no-ip:8090/Status/tshock.php?ip=<ip>&port=<port api> Local: Externo: <?php error_reporting(E_ERROR); $ip = $_GET['ip']; $port = $_GET['port']; $json = json_decode(file_get_contents('http://'.$ip.':'.$port.'/status/'), true); header('Content-Type: image/png'); $im = @imagecreatefrompng('tshock_status_background.png'); $font = 'visitor1.ttf'; $red = imagecolorallocate($im, 0xFF, 0, 0); $grey = imagecolorallocate($im, 128, 128, 128); if ($json['status'] == '200') { imagettftext($im, 20, 0, 11, 26, $grey, $font, $json['name']); imagettftext($im, 20, 0, 10, 25, $black, $font, $json['name']); imagettftext($im, 15, 0, 11, 41, $grey, $font, 'IP: '.$ip); imagettftext($im, 15, 0, 10, 40, $black, $font, 'IP: '.$ip); imagettftext($im, 15, 0, 11, 61, $grey, $font, 'Port: '.$json['port']); imagettftext($im, 15, 0, 10, 60, $black, $font, 'Port: '.$json['port']); imagettftext($im, 15, 0, 11, 81, $grey, $font, 'Players: '.$json['playercount']); imagettftext($im, 15, 0, 10, 80, $black, $font, 'Players: '.$json['playercount']); } else { imagettftext($im, 15, 0, 11, 21, $grey, $font, 'IP:'.$ip.':'.$port); imagettftext($im, 15, 0, 10, 20, $black, $font, 'IP:'.$ip.':'.$port); imagettftext($im, 78, 0, 10, 90, $red, $font, 'offline'); } imagepng($im); imagedestroy($im); ?>
×
×
  • Criar Novo...