Show
Ignore:
Timestamp:
12/15/06 17:13:13 (16 years ago)
Author:
exi
Message:

Added option to paint systems on maps based on security rating.
Added most violent systems statistic to corp and alliance details.
Some fixes for files with short php tags.
Fixed a bug which prevented sql errors to halt page generation if enabled in config.
Added system details as whole page instead of a js popup for maps.
Battle summaries should now work if the hour of the kill is less than 10.
Removed obsolete stats.php.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.kill.php

    r154 r155  
    308308                              kb3_alliances ali, kb3_alliances fbali, kb3_corps fbcrp, 
    309309                              kb3_pilots fbplt 
    310                         where kll.kll_id = ".$this->id_." 
     310                        where kll.kll_id = '".$this->id_."' 
    311311                          and plt.plt_id = kll.kll_victim_id 
    312312                          and crp.crp_id = kll.kll_crp_id 
     
    318318            $this->qry_->execute($this->sql_); 
    319319            $row = $this->qry_->getRow(); 
     320            if (!$row) 
     321            { 
     322                $this->valid_ = false; 
     323                return false; 
     324            } 
     325            else 
     326            { 
     327                $this->valid_ = true; 
     328            } 
     329 
    320330            $this->setTimeStamp($row['kll_timestamp']); 
    321331            $this->setSolarSystem(new SolarSystem($row['kll_system_id'])); 
     
    337347            $this->fbplt_ext_ = $row['fbplt_externalid']; 
    338348 
    339             if (!$row) 
    340                 $this->valid_ = false; 
    341             else 
    342                 $this->valid_ = true; 
    343349            // involved 
    344350            $sql = "select ind_plt_id, ind_crp_id, ind_all_id, ind_sec_status,