Changeset 390

Show
Ignore:
Timestamp:
06/23/09 17:45:47 (11 years ago)
Author:
kovell
Message:

Fixes: sig mod works, apikill setting saved on admin panel, page cache does not attempt to double gzip, banner and award images have size set.

Location:
dev
Files:
24 modified

Legend:

Unmodified
Added
Removed
  • dev/common/admin/admin_feedsyndication.php

    r380 r390  
    6565            if ($_POST['apikills'] && in_array ($i, $_POST['apikills'])) 
    6666                $apikills = "on"; 
    67             else $friends = ""; 
     67            else $apikills = ""; 
    6868            $fstr = config::get('fetch_url_' . $i); 
    6969            $ftmp = explode(':::', $fstr); 
  • dev/common/includes/class.cache.php

    r388 r390  
    11<?php 
     2//! Page caching class 
    23 
     4//! Contains methods to create and retrieve a complete cache of the current page. 
    35class cache 
    46{ 
     7        //! Check the server load using /proc/loadavg. 
    58    function checkLoad() 
    69    { 
     
    3134        } 
    3235    } 
    33  
     36        //! Check if the current page should be cached. 
    3437    function shouldCache($page = '') 
    3538    { 
     
    5457                return false; 
    5558    } 
    56  
     59        //! Check if the current page is cached and valid then send it if so. 
    5760    function check($page) 
    5861    { 
     
    109112                                } 
    110113 
    111                 if(!ini_get('zlib.output_compression')) ob_start('ob_gzhandler'); 
    112                                 else ob_start(); 
     114                ob_start(); 
    113115                @readfile($cachefile); 
    114116                ob_end_flush(); 
     
    123125                header('Pragma:'); 
    124126    } 
    125  
     127        //! Generate the cache for the current page. 
    126128    function generate() 
    127129    { 
     
    138140        } 
    139141    } 
     142        //! Generate the cache filename. 
    140143 
     144        //! \return string of path and filename for the current page's cachefile. 
     145        function genCacheName() 
     146        { 
     147                return KB_CACHEDIR.'/'.KB_SITE.'/'.md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].@implode($_SESSION)).'.cache'; 
     148        } 
     149        //! Remove the cache of the current page. 
    141150        function deleteCache() 
    142151        { 
     
    144153                @unlink($cachefile); 
    145154        } 
    146  
    147         function genCacheName() 
     155        //! Mark the cached page as still current without rebuilding it. 
     156        function touchCache() 
    148157        { 
    149                 return KB_CACHEDIR.'/'.KB_SITE.'/'.md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].implode($_SESSION)).'.cache'; 
     158                touch(genCacheName()); 
    150159        } 
    151160} 
  • dev/mods

    • Property svn:ignore set to
      db_check
  • dev/mods/signature_generator/sig.php

    r289 r390  
    3333    errorPic('That pilot doesnt exist.'); 
    3434} 
     35$pilot->getPortraitURL(128); 
    3536$corp = $pilot->getCorp(); 
    3637$alliance = $corp->getAlliance(); 
     
    6869} 
    6970 
     71$pid = $pilot->getExternalID(); 
     72if (file_exists('cache/portraits/'.$pid.'_256.jpg')) 
     73{ 
     74        touch('cache/portraits/'.$pid.'_256.jpg'); 
     75} 
     76else 
     77{ 
     78        // in case of a dead eve server we only want to wait 5 seconds 
     79        @ini_set('default_socket_timeout', 5); 
     80        $file = @file_get_contents('http://img.eve.is/serv.asp?s=256&c='.$pid); 
     81        if ($img = @imagecreatefromstring($file)) 
     82        { 
     83                $fp = fopen('cache/portraits/'.$pid.'_256.jpg', 'w'); 
     84                fwrite($fp, $file); 
     85                fclose($fp); 
     86        } 
     87        else 
     88        { 
     89                // try alternative access via fsockopen 
     90                // happens if allow_url_fopen wrapper is false 
     91                require_once('class.http.php'); 
     92 
     93                $url = 'http://img.eve.is/serv.asp?s=256&c='.$pid; 
     94                $http = new http_request($url); 
     95                $file = $http->get_content(); 
     96 
     97                if ($img = @imagecreatefromstring($file)) 
     98                { 
     99                        $fp = fopen('cache/portraits/'.$id.'_256.jpg', 'w'); 
     100                        fwrite($fp, $file); 
     101                } 
     102        } 
     103} 
     104 
     105 
    70106// check template 
    71107if (!is_dir('mods/signature_generator/signatures/'.$sig_name)) 
  • dev/mods/signature_generator/signatures/apoc/apoc.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/default/default.php

    r87 r390  
    4545 
    4646// ship 
    47 $sid = $kill->victimshipexternalid_; 
     47$sid = $kill->getVictimShipExternalID(); 
    4848$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    49 imagecopyresized($im, $img, 5, 5, 0, 0, 30, 30, 64, 64); 
     49imagecopyresampled($im, $img, 5, 5, 0, 0, 30, 30, 64, 64); 
    5050 
    5151// player portrait 
    52 $pid = $pilot->row_['plt_externalid']; 
     52 
    5353if (!$pid) 
    5454{ 
    5555    $pid = 0; 
    5656} 
    57 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     57$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    5858imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    59 imagecopyresized($im, $img, 320, 20, 0, 0, 70, 70, 128, 128); 
     59imagecopyresampled($im, $img, 320, 20, 0, 0, 70, 70, 256, 256); 
    6060imagedestroy($img); 
    6161?> 
  • dev/mods/signature_generator/signatures/deimos/deimos.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/funkyapoc/funkyapoc.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/funkyjag/funkyjag.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/gesc_blue/gesc_blue.php

    r72 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/guard_blue/guard_blue.php

    r72 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/harb/harb.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/hurricane/hurricane.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/hurricane/hurricane.php.safe

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/ishtar/ishtar.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/jaguar/jaguar.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/myrmidon/myrmidon.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/pilgrim/pilgrim.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/rokh/rokh.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/wolf/wolf.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/zealot/zealot.php

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/mods/signature_generator/signatures/zealot/zealot.php.safe

    r208 r390  
    6060 
    6161// ship 
    62 $sid = $kill->victimshipexternalid_; 
     62$sid = $kill->getVictimShipExternalID(); 
    6363$img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 
    64 imagecopyresized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
     64imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 
    6565 
    6666bevel(354, 6, 40); 
    6767 
    6868// player portrait 
    69 $pid = $pilot->row_['plt_externalid']; 
    70 if (!$pid) 
    71 { 
    72     $pid = 0; 
    73 } 
    74 $img = imagecreatefromjpeg("cache/portraits/".$pid."_128.jpg"); 
     69$img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 
    7570//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 
    76 imagecopyresized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128); 
     71imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 
    7772imagedestroy($img); 
    7873 
  • dev/templates/award_box.tpl

    r370 r390  
    88                <td><table class=kb-subtable cellspacing=0 border=0 width="100%"> 
    99                                <tr class=kb-table-row-odd> 
    10                                         <td align=left><img src="{$pilot_portrait}" alt="pilot"></td> 
    11                                         <td align=center><img src="{$award_img}" alt="award"></td> 
     10                                        <td align=left><img src="{$pilot_portrait}" alt="pilot" height="64" width="64"></td> 
     11                                        <td align=center><img src="{$award_img}" alt="award" height="64" width="64"></td> 
    1212                                </tr> 
    1313                        </table> 
  • dev/templates/index.tpl

    r389 r390  
    2929{if $banner_link} 
    3030<a href="{$banner_link}"> 
    31 <img src="banner/{$banner}" border="0" alt="Banner"></a> 
     31<img src="banner/{$banner}" border="0" alt="Banner" width = "950" height="125"></a> 
    3232{else} 
    33 <a href="?a=home"><img src="banner/{$banner}" border="0" alt="Banner"></a> 
     33<a href="?a=home"><img src="banner/{$banner}" border="0" alt="Banner" width = "950" height="125"></a> 
    3434{/if} 
    3535{/if}