Changeset 54

Show
Ignore:
Timestamp:
11/06/06 16:52:33 (14 years ago)
Author:
exi
Message:

Fixed the error caused by previous checkin
Added doctype to pageheader.
Explicit cast to int for kill_id in kill_mail.php

Location:
dev/common
Files:
4 modified

Legend:

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

    r44 r54  
    6464        $this->execQuery(); 
    6565        return $this->victimalliancename_; 
     66    } 
     67    function getVictimAllianceID() 
     68    { 
     69        $this->execQuery(); 
     70        return $this->victimallianceid_; 
    6671    } 
    6772 
     
    280285            $this->qry_ = new DBQuery(); 
    281286            $this->sql_ = "select kll.kll_id, kll.kll_timestamp, plt.plt_name, 
    282                               crp.crp_name, ali.all_name, kll.kll_ship_id, 
     287                              crp.crp_name, ali.all_name, ali.all_id, kll.kll_ship_id, 
    283288                              kll.kll_system_id, kll.kll_ship_id, 
    284289                              kll.kll_victim_id, plt.plt_externalid, 
     
    309314            $this->setVictimCorpID($row['kll_crp_id']); 
    310315            $this->setVictimCorpName($row['crp_name']); 
     316            $this->setVictimAllianceID($row['all_id']); 
    311317            $this->setVictimAllianceName($row['all_name']); 
    312318            $this->setVictimShip(new Ship($row['kll_ship_id'])); 
  • dev/common/class.page.php

    r30 r54  
    3838    function generate() 
    3939    { 
    40         $html = "<html>"; 
    41         $html .= "<head>"; 
     40        global $config; 
     41        $html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">'; 
     42        $html .= '<html>'; 
     43        $html .= '<head>'; 
     44        $html .= '<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">'; 
    4245        $html .= "<title>" . KB_TITLE . " Killboard - " . $this->title_ . "</title>\n"; 
    4346        $html .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . STYLE_URL . "/common.css\">"; 
    44         $config = $this->killboard_->getConfig(); 
     47 
    4548        $style = $config->getStyleName(); 
    4649        $html .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . STYLE_URL . "/" . $style . "/style.css\">"; 
  • dev/common/kill_detail.php

    r53 r54  
    3737$html .= "</tr>"; 
    3838$html .= "<tr class=kb-table-row-odd>"; 
    39 $html .= "<td class=kb-table-cell width=64><b><a href=\"?a=alliance_detail&all_id=".$kill->getVictimAllianceID()."\">".$kill->getVictimAllianceName()."</a></b></td>"; 
     39$html .= "<td class=kb-table-cell width=64><b>Alliance:</b></td><td class=kb-table-cell><a href=\"?a=alliance_detail&all_id=".$kill->getVictimAllianceID()."\">".$kill->getVictimAllianceName()."</a></b></td>"; 
    4040$html .= "</tr>"; 
    4141$html .= "</table>"; 
  • dev/common/kill_mail.php

    r32 r54  
    55require_once("globals.php"); 
    66 
    7 $kll_id = $_GET['kll_id']; 
     7$kll_id = intval($_GET['kll_id']); 
    88$kill = new Kill($kll_id); 
    99?>