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:
19 modified

Legend:

Unmodified
Added
Removed
  • dev/mods

    • Property svn:ignore set to
      db_check
  • 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