Bem-vindo(a) ao PORTAL X-TRAD
PORTAL X-TRAD  
Horários baseados na GMT -2. Agora são 09:41 PM.
Antigo 06-06-2008, 01:40 PM
Novato
 
Avatar de betohs2
 
Registrado em: Apr 2008
Postagens: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Reputação: 0 @ 10
betohs2 is on a distinguished road
Exclamation Ajuda Urgente statistics !!!

O mudulo >>statistics na pasta >> class .. a pagina >>clsWhois.php

esta com erro ...sendo visualizado o erro no codigo na administração do modulo....


alguem tem como me ajudar á descobrir e a corrigei o codigo ? è urgente..


>>>>>>>>>>>>>>>>>>>>>>Eis o Codigo da página >>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<


<?
include_once "../../../mainfile.php";
if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) {
include_once "../language/".$xoopsConfig['language']."/main.php";
} else {
include_once "../language/english/main.php";
}
class xWhois
{
/*
* Optional parameter for the server to be used for the lookup.
* If this is not set, an appropriate whois server for the domain name
* specified is automagically found by the Whois class.
* @type string
* @access public
*/
var $whois_server;
/*
* The timeout, in seconds, for the lookup. Default is 30.
* @type integer
* @access public
*/
var $timeout = 30;
/*
* Returns a string, with new-lines (\n) converted to non-breaking spaces (&lt;BR&gt,
* with details for the domain specified by $domain.
* @access public
* @param string $domain the domain to lookup, excluding http:// and www
* @return string the results of the whois
*/
function lookup($domain)
{
$result = "";
$parts = array();
$host = "";

// .tv don't allow access to their whois
if (strstr($domain,".tv"))
{
//$result = "'.tv' domain names require you to have an account to do whois searches.";
$result = "Please contact us regarding the $domain";
// New domains fix (half work, half don't)
} elseif (strstr($domain,".name") || strstr($domain,".pro") >0){
//$result = ".name,.pro require you to have an account to do whois searches.";
$result = "Please contact us regarding $domain";
} else{
if (empty($this->whois_server))
{
$parts = explode(".",$domain);
$testhost = $parts[sizeof($parts)-1];
$whoisserver = $testhost . ".whois-servers.net";
$this->host = gethostbyname($whoisserver);
$this->host = gethostbyaddr($this->host);

if ($this->host == $testhost)
{
$this->host = "InterNIC | The Internet's Network Information Center";
}
}

$whoisSocket = fsockopen($this->host,43, $errno, $errstr, $this->timeout);

if (!$whoisSocket)
{
$result = STATS_DNSLOOKUP_ERROR."<br>".$errno."&nbsp;-&nbsp;".$errstr."<br>";
}
else
{
fputs($whoisSocket, $domain."\015\012");
while (!feof($whoisSocket))
{
$result .= fgets($whoisSocket,128) . "<br>";
}
fclose($whoisSocket);
}
}
return $result;
}

function reverselookup( $ip )
{
// using the arin database cgi...have to keep an eye on things to make sure it works long term!
$fullurl = "ARIN: WHOIS Database Search";

$url = parse_url($fullurl);
if(!in_array($url['scheme'],array('','http')))
return;
$fp = fsockopen ($url['host'], ($url['port'] > 0 ? $url['port'] : 80), $errno, $errstr, $this->timeout);
if (!$fp)
{
$d = STATS_REVERSELOOKUP_ERROR."<br>".$errno."&nbsp;-&nbsp;".$errstr."<br>";
}
else
{
fputs ($fp, "GET /".$url['path'].($url['query'] ? '?'.$url['query'] : '')." HTTP/1.0\r\nHost: ".$url['host']."\r\n\r\n");
$d = '';
while (!feof($fp))
{
$d .= fgets ($fp,2048);
}
fclose ($fp);

$d = stristr($d, 'Search results for: ');
$d = str_replace( "cgi-bin/whois.pl?queryinput=N%20!%20", "modules/statistics/admin/index.php?op=reverseip&iplookup=", $d );
$d = str_replace( "cgi-bin/whois.pl?queryinput=P%20!%20", "modules/statistics/admin/index.php?op=reverseip&iplookup=", $d );
}

return $d;
}
}
?>
betohs2 está offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Responder com Quote
Antigo 10-06-2008, 05:57 PM
Diretoria Colegiada
 
Avatar de andrax
 
Registrado em: Apr 2006
Localização: Salvador - Bahia
Idade: 27
Postagens: 255
Thanks: 36
Thanked 32 Times in 23 Posts
Reputação: 4 @ 170
andrax has a spectacular aura aboutandrax has a spectacular aura about
Padrão

Olá betohs2, blz??

Bom, primeiro vai a recomendação... em questões de suporte, recomendamos que procure ajuda nas comunidade Xoopsbr e Xoops Paraná , o foco do X-trad é em questões de tradução... ;-)

Quanto ao seu problema em si, fica um pouco dificil poder te ajudar já q vc não especifica qual o erro que está ocorrerendo... para facilitar a vida do pessoal nos sites de suporte, sempre que houver um erro é bom que vc envie junto o erro para que a galera possa avaliar e te indicar o caminho mais adequado!!!

No mais por enquanto é isso ae... ;-)

Falows...
T+!!!

Luiz eh..., AndraX
http://www.x-trad.org
http://www.xoopsbr.org
http://www.xoops.pr.gov.br
http://www.xoopstotal.com.br Em manutenção!!! :-(
“I would love to change the world..., but they won’t give me the source code.”
andrax está offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Responder com Quote
Resposta

Favoritos

Tags
ajuda xoops



Usuários ativos no Tópico: 1 (0 Membros e 1 Visitantes)
 
Ferramentas do Tópico
Modos de Exibição

Regras para Postagens
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não
Trackbacks are Sim
Pingbacks are Sim
Refbacks are Sim

Tópicos Similares
Tópico Tópico Iniciado Por Fórum Respostas Última Mensagem
Uma ajuda por favor!!! deccao WF-DOWNLOADS 15 23-01-2008 02:51 AM
News 1.50 - acho q eh urgente beduino Módulos de Artigos, Notícias e afins 36 31-12-2006 04:28 PM
Ajuda ThunderBRZ Sobre o XOOPS e seus módulos 1 28-05-2006 08:07 PM
ajuda! com o gv_faq.php beduino Tradução do e-commerce ZenCart 2 06-05-2006 11:10 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178