Changeset 390 for dev/mods/signature_generator
- Timestamp:
- 06/23/09 17:45:47 (14 years ago)
- Location:
- dev/mods
- Files:
-
- 20 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/mods
-
Property
svn:ignore set
to
db_check
-
Property
svn:ignore set
to
-
dev/mods/signature_generator/sig.php
r289 r390 33 33 errorPic('That pilot doesnt exist.'); 34 34 } 35 $pilot->getPortraitURL(128); 35 36 $corp = $pilot->getCorp(); 36 37 $alliance = $corp->getAlliance(); … … 68 69 } 69 70 71 $pid = $pilot->getExternalID(); 72 if (file_exists('cache/portraits/'.$pid.'_256.jpg')) 73 { 74 touch('cache/portraits/'.$pid.'_256.jpg'); 75 } 76 else 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 70 106 // check template 71 107 if (!is_dir('mods/signature_generator/signatures/'.$sig_name)) -
dev/mods/signature_generator/signatures/apoc/apoc.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/default/default.php
r87 r390 45 45 46 46 // ship 47 $sid = $kill-> victimshipexternalid_;47 $sid = $kill->getVictimShipExternalID(); 48 48 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 49 imagecopyres ized($im, $img, 5, 5, 0, 0, 30, 30, 64, 64);49 imagecopyresampled($im, $img, 5, 5, 0, 0, 30, 30, 64, 64); 50 50 51 51 // player portrait 52 $pid = $pilot->row_['plt_externalid']; 52 53 53 if (!$pid) 54 54 { 55 55 $pid = 0; 56 56 } 57 $img = imagecreatefromjpeg("cache/portraits/".$pid."_ 128.jpg");57 $img = imagecreatefromjpeg("cache/portraits/".$pid."_256.jpg"); 58 58 imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 59 imagecopyres ized($im, $img, 320, 20, 0, 0, 70, 70, 128, 128);59 imagecopyresampled($im, $img, 320, 20, 0, 0, 70, 70, 256, 256); 60 60 imagedestroy($img); 61 61 ?> -
dev/mods/signature_generator/signatures/deimos/deimos.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/funkyapoc/funkyapoc.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/funkyjag/funkyjag.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/gesc_blue/gesc_blue.php
r72 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/guard_blue/guard_blue.php
r72 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/harb/harb.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/hurricane/hurricane.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/hurricane/hurricane.php.safe
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/ishtar/ishtar.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/jaguar/jaguar.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/myrmidon/myrmidon.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/pilgrim/pilgrim.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/rokh/rokh.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/wolf/wolf.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/zealot/zealot.php
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73 -
dev/mods/signature_generator/signatures/zealot/zealot.php.safe
r208 r390 60 60 61 61 // ship 62 $sid = $kill-> victimshipexternalid_;62 $sid = $kill->getVictimShipExternalID(); 63 63 $img = imagecreatefrompng("img/ships/64_64/".$sid.".png"); 64 imagecopyres ized($im, $img, 354, 6, 0, 0, 40, 40, 64, 64);64 imagecopyresampled($im, $img, 354, 6, 0, 0, 40, 40, 64, 64); 65 65 66 66 bevel(354, 6, 40); 67 67 68 68 // 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"); 75 70 //imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans); 76 imagecopyres ized($im, $img, 6, 6, 0, 0, 63, 63, 128, 128);71 imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256); 77 72 imagedestroy($img); 78 73