Skip to content
Permalink
Browse files

Fix: PHP7 compatibility for signature mod

  • Loading branch information...
Salvoxia committed Oct 9, 2017
1 parent 5311333 commit 7e2776ca7043dc70e1f286ae77b46a24caeaa722
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -23,6 +23,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
// corp
$box = imagettfbbox(10, 0, MPATH.'GUNSHIP2.TTF', $corp->getName());
@@ -58,7 +62,7 @@
{
$pid = 0;
}
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 320, 20, 0, 0, 70, 70, 256, 256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagefttext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);
@@ -25,6 +25,10 @@
$list->setPodsNoobships(false);
$list->addInvolvedPilot($pilot);
$kill = $list->getKill();
if(!$kill)
{
errorPic('No kills!');
}
$list->getallKills();
imagettftext($im, FSIZE, 0, 80, 21, $grey_trans, MFONT, $name);
@@ -70,7 +74,7 @@ function bevel($x, $y, $size)
bevel(354, 6, 40);
// player portrait
$img = imagecreatefromjpeg(Pilot::getPortraitPath(256,$pid));
$img = imagecreatefromjpeg($pilot->getPortraitPath(256,$pid));
//imagefilledrectangle($im, 318, 18, 392, 92, $greyred_trans);
imagecopyresampled($im, $img, 6, 6, 0, 0, 63, 63, 256,256);
imagedestroy($img);

0 comments on commit 7e2776c

Please sign in to comment.
You can’t perform that action at this time.