![]() |
![]() |
![]() |
|
Novato
![]() Registrado em: Apr 2008
Postagens: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Reputação: 0 @ 10
![]() |
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 (<BR> ,* 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." - ".$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." - ".$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; } } ?> |
|
|
|
![]() |
![]() |
|
Diretoria Colegiada
Registrado em: Apr 2006
Localização: Salvador - Bahia
Idade: 27
Postagens: 292
Thanks: 48
Thanked 39 Times in 30 Posts
Reputação: 5 @ 205
![]() ![]() ![]() |
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+!!! ![]() http://www.x-trad.org http://www.xoopsbr.org http://www.xoops.pr.gov.br “I would love to change the world..., but they won’t give me the source code.” |
|
|
|
![]() |
![]() |
Favoritos | ![]() |
![]() |
Tags | ![]() |
| ajuda xoops |
![]() |
Usuários ativos no Tópico: 1 (0 Membros e 1 Visitantes) | ![]() |
| Ferramentas do Tópico | |
| Modos de Exibição | |
|
|
![]() |
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 03:51 AM |
| News 1.50 - acho q eh urgente | beduino | Módulos de Artigos, Notícias e afins | 36 | 31-12-2006 05:28 PM |
| Ajuda | ThunderBRZ | Sobre o XOOPS e seus módulos | 1 | 28-05-2006 09:07 PM |
| ajuda! com o gv_faq.php | beduino | Tradução do e-commerce ZenCart | 2 | 07-05-2006 12:10 AM |