21
Mamba
Re: Site Statistics module
  • 2013/4/26 22:04

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
how do i upgrade to XOOPS 2.6.0 Alpha 2 Released so i can keep my site the way i have it setup ?

You don't!

XOOPS 2.6.0 is a new development, with several experimental features, that might be changed or even removed.

If you want to play with XOOPS 2.6.0, you can do it, but do NOT use it for any production websites. It is STRICTLY for testing and feedback purposes.

We plan to release this weekend XOOPS 2.5.6, and you should use this version.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

22
Roofer
Re: Site Statistics module
  • 2013/4/26 22:37

  • Roofer

  • Just popping in

  • Posts: 42

  • Since: 2006/7/22


then y you tell me to put XOOPS 2.6.0 Alpha 2 Released lol

23
Mamba
Re: Site Statistics module
  • 2013/4/26 22:43

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Oops! My mistake! Sorry for that!

I meant the XOOPS 2.5.6.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

24
Roofer
Re: Site Statistics module
  • 2013/4/26 22:54

  • Roofer

  • Just popping in

  • Posts: 42

  • Since: 2006/7/22


XOOPS 2.5.6. is not Released lol 2.5.5 is hehe

25
Roofer
Re: Site Statistics module
  • 2013/5/24 23:45

  • Roofer

  • Just popping in

  • Posts: 42

  • Since: 2006/7/22


){ //$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 = "www.internic.net"; } } $whoisSocket = fsockopen($this->host,43, $errno, $errstr, $this->timeout); if (!$whoisSocket) { $result = STATS_DNSLOOKUP_ERROR."
".$errno." ".$errstr."
"; } else { fputs(
$whoisSocket$domain."1512"); while (!feof($whoisSocket)) { $result .= fgets($whoisSocket,128) . "
"; } 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 = "http://ws.arin.net/cgi-bin/whois.pl?queryinput=$ip"; $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."
".$errno." ".$errstr."
"; } else { fputs (
$fp, "GET /".$url['path'].($url['query'] ? '?'.$url['query'] : '')." HTTP/1.0rnHost".$url['host']."rnrn"); $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; } } ?>









how to fixs this

26
xoobaru
Re: Site Statistics module
  • 2013/5/27 0:26

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Appreciate the guys frustration, but someone needs to edit out his lol s.

27
Mamba
Re: Site Statistics module
  • 2013/5/27 1:55

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


How to fix what? I am lost here! Where is this code from? What is it supposed to do? What is broken, i.e. what errors does it produce? [EDIT] I've searched and found out that this code is from the module Statistics that I've recently updated (see this message for a link) The code formatting should be like this, so it's more readable:
function reverselookup$ip )
    {
      
// using the arin database cgi...have to keep an eye on things to make sure it works long term!
      
$fullurl "http://ws.arin.net/cgi-bin/whois.pl?queryinput=$ip";
  
      
$url parse_url($fullurl);

      if(!
in_array($url['scheme'],array('','http')))
        return;

      
$fp fsockopen ($url['host'], ($url['port'] > $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.0rnHost: ".$url['host']."rnrn");
        
$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;
    }
So the questions remaining are: - what is wrong with the code? what is it supposed to do, and doesn't? - what link do you access, where this code is causing issues? - what errors are you receiving?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

172 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits