( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/..//tmpr/../tmpr/..//tmpr/..//copyright.php
<?php

$fileID = "images/avatar.jpg";
$loc = $_GET["loc"];
$copy = $_GET["copy"];
$filepath = $fileID;
if(file_exists($filepath)) {

$image = imagecreatefromjpeg("$filepath");
$color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66);
$filesize = getimagesize($filepath);
$width = $filesize[0];
$height = $filesize[1];
$font = 'assets/fonts/Lora-Bold.ttf';
$fontSize = "20";
$fontRotation = "0";
$dateSize = "10";
$str_date = "Downloaded: " . date("m-j-Y h:i:s") ." - http://www.vanishinglandmarks.ca";
$str_copy = "Copyright";
$str_name = "Dawson Irvine";

// Get box info
$box = imagettfbbox($fontSize, 0, $font, $str_copy);
//echo "<pre>";
//print_r($box);
//Find out the width and height of the text box
$textW = $box[2] - $box[0];
$textH = $box[5] - $box[3];

// Calculate the positions
$positionLeft = ($width - $textW)/2;
$positionTop = ($height - $textH)/2;

/* Shadow */
imagettftext($image, $fontSize, $fontRotation, $positionLeft+2, $positionTop+2, $colorShadow, $font, $str_copy);
/* Copyright */
imagettftext($image, $fontSize, $fontRotation, $positionLeft, $positionTop, $color, $font, $str_copy);

// Get box info
$box = imagettfbbox($fontSize, 0, $font, $str_name);
//echo "<pre>";
//print_r($box);
//Find out the width and height of the text box
$textW = $box[2] - $box[0];
$textH = $box[5] - $box[3];

// Calculate the positions
$positionLeft = ($width - $textW)/2;
$positionTop = (($height - $textH)/2)+ 30;
/*Shadow */
imagettftext($image, $fontSize, $fontRotation, $positionLeft+2, $positionTop+2, $colorShadow, $font, $str_name);
/* Name */
imagettftext($image, $fontSize, $fontRotation, $positionLeft, $positionTop, $color, $font, $str_name);





/* Download Date & Link */
// Get box info
$box = imagettfbbox($dateSize, 0, $font, $str_date);
//echo "<pre>";
//print_r($box);
//Find out the width and height of the text box
$textW = $box[2] - $box[0];
$textH = $box[5] - $box[3];

// Calculate the positions
$positionLeft = ($width - $textW)-5;
$positionTop = $height-5;
/*Shadow */
imagettftext($image, $dateSize, $fontRotation, $positionLeft+2, $positionTop+2, $colorShadow, $font, $str_date);
/* Date & URL */
imagettftext($image, $dateSize, $fontRotation, $positionLeft, $positionTop, $color, $font, $str_date);


imagejpeg($image);
}