Jump to content

fnbv

Members
  • Posts

    11
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by fnbv

  1. Hello my friends, good morning, I have been trying to solve this problem for days, my map pulled to an external page, the skin layout works perfectly, but I must be missing something, because it pulls the table, just do not pull the image and data !

     

    Olá meus amigos, bom dia, estou tentando resolver esse problema há dias, meu mapa puxei para uma página externa, no layout do skin funciona perfeitamente, mas devo estar faltando alguma coisa, pois puxa a mesa, apenas não puxe a imagem e os dados!

     

    MAPA.JPG

  2. On 3/21/2020 at 1:22 PM, flyalaska said:

    Ignore the post above, wont let me edit it. I forgot to delete something. Edited by moderator....

     

    Replace your code with this:

     

    
    public static function TotalPilotMiles($pilotid)
    {
      $key = 'total_miles';
      $key .= '_'.$pilotid;
    
      $total = CodonCache::read($key);
    
      if($total === false)
      {
       $total = 0;
       $sql = "SELECT * FROM ".TABLE_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted=1";
       $results = DB::get_results($sql);
       if($results) { foreach($results as $result) { $total += $result->distance; } }
    
       CodonCache::write($key, $total, '15minute');
      }
      return $total;
    }
    
       public static function getpilotsbestlanding($pilotid)
        {
                $sql = "SELECT landingrate FROM ".TABLE_PREFIX."pireps WHERE pilotid = '$pilotid' AND landingrate < 0 ORDER BY landingrate DESC LIMIT 1";
    
                $result = DB::get_row($sql);
    
                if(!$result)
                {
                    return 0;
                }
    
                $result = $result->landingrate;
    
            return $result;
        }
    
            public static function getpilotsworselanding($pilotid)
        {
            $sql = "SELECT landingrate FROM ".TABLE_PREFIX."pireps WHERE pilotid = '$pilotid' AND landingrate < 0 ORDER BY landingrate ASC LIMIT 1";
    
                $result = DB::get_row($sql);
    
                if(!$result)
                {
                    return 0;
                }
    
                $result = $result->landingrate;
    
            return $result;
    }

     

    Fatal error: Cannot redeclare StatsData::TotalPilotMiles() in /home2/premi440/sys.premiercargobrasil.com.br/core/common/StatsData.class.php on line 879

     

     

    even replacing all the codes and following steps I couldn't solve this error!

     

    Remerson Reis

  3. 4 minutes ago, fnbv said:

    Fatal error: Cannot redeclare StatsData::TotalPilotMiles() in /home2/premi440/sys.premiercargobrasil.com.br/core/common/StatsData.class.php on line 879

     

     

    even replacing all the codes and following steps I couldn't solve this error!

     

    Remerson Reis

     

     

  4. Fatal error: Cannot redeclare StatsData::TotalPilotMiles() in /home2/premi440/sys.premiercargobrasil.com.br/core/common/StatsData.class.php on line 879

     

     

    even replacing all the codes and following steps I couldn't solve this error!

     

    Remerson Reis

     

  5. Boa tarde, eu fiz uma alteração via cpanel nas linhas:

    # ACARS options

    00060 # Minutes, flights to show on the ACARS

    00061 # Default is 720 minutes (12 hours)

    00062 Config::Set('ACARS_LIVE_TIME', 0);

    00063 Config::Set('ACARS_DEBUG', true);

    onde mudei de 720 para 0 e agora meu site está totalmente em branco, a index nao aparece nada, gostaria de saber como proceder!

    grato,

    Remerson

×
×
  • Create New...