| Server IP : 207.244.250.86 / Your IP : 216.73.216.10 Web Server : Apache System : Linux plesk1.codeponents.com 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64 User : motionave ( 10025) PHP Version : 8.0.15 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/motionave.com/devsite.motionave.com/wp-content/plugins/ut-portfolio/i/ |
Upload File : |
<?php
// Include placeholder generator class
require('placeholder.class.php');
// Get variables from $_GET
$width = isset($_GET['w']) ? trim($_GET['w']) : null;
$height = isset($_GET['h']) ? trim($_GET['h']) : null;
$backgroundColor = isset($_GET['bgColor']) ? strtolower(trim($_GET['bgColor'])) : null;
$textColor = isset($_GET['textColor']) ? strtolower(trim($_GET['textColor'])) : null;
$cache = isset($_GET['c']) && $_GET['c'] == 1 ? true : false;
try {
$placeholder = new Placeholder();
$placeholder->setWidth($width);
$placeholder->setHeight($height);
$placeholder->setCache($cache);
if ($backgroundColor) $placeholder->setBackgroundColor($backgroundColor);
if ($textColor) $placeholder->setTextColor($textColor);
$placeholder->render();
} catch (Exception $e){
die($e->getMessage());
}