Changeset 390 for dev/mods

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/mods
Files:
20 modified

Legend:

Unmodified
Added
Removed
  • 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