Your images dir is not authorized.
Please create an empty file named secure.php and save it into ' . $img_path . ' to allow access.
';
}
if (isset($_GET['imgSrc'])) {
$imgSrc = preg_replace('/\r|\n/', '', urldecode($_GET['imgSrc']));
$imgAlt = preg_replace('/\r|\n/', '', urldecode($_GET['imgAlt']));
$imgWidth = preg_replace('/\r|\n/', '', urldecode($_GET['imgWidth']));
$imgHeight = preg_replace('/\r|\n/', '', urldecode($_GET['imgHeight']));
$imgStyle = preg_replace('/\r|\n/', '', urldecode($_GET['imgStyle']));
$imgResponsive = preg_replace('/\r|\n/', '', urldecode($_GET['imgResponsive']));
$imgCode = build_image();
} else {
$imgSrc = str_replace('bootstrap-image.php', '', $_SERVER['SCRIPT_NAME']) . 'img/tinymce-bootstrap-plugin-small-preview.png';
$imgAlt = '';
$imgWidth = '';
$imgHeight = '';
$imgStyle = '';
$imgResponsive = 'true';
$imgCode = build_image();
}
function build_image()
{
global $imgSrc;
global $imgAlt;
global $imgWidth;
global $imgHeight;
global $imgStyle;
global $imgResponsive;
if (@getimagesize($imgSrc) || @getimagesize($_SERVER['DOCUMENT_ROOT'] . $imgSrc)) {
$info = new SplFileInfo($imgSrc);
if (preg_match('`jpg|jpeg|png|gif`', strtolower($info))) {
$img = '