Current Path :
/
home
/
develito
/
www
/
plugins
/
content
/
sige
/
assets
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/www/plugins/content/sige/assets/print.php
<?php /** * @copyright * @package Simple Image Gallery Extended - SIGE for Joomla! 3.x * @author Viktor Vogel <admin@kubik-rubik.de> * @version 3.4.2-FREE - 2020-12-14 * @link https://kubik-rubik.de/sige-simple-image-gallery-extended * * @license GNU/GPL * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Fast check whether image url variable was transmitted if (empty($_GET['img']) || empty($_GET['name'])) { exit('No parameters!'); } $date = date('d.m.Y - H:i'); $image = htmlspecialchars(rawurldecode($_GET['img'])); $name = htmlspecialchars(rawurldecode($_GET['name'])); $caption = ''; if (!empty($_GET['caption'])) { $caption = htmlspecialchars(rawurldecode($_GET['caption'])); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="expires" content="0"/> <meta http-equiv="cache-control" content="no-cache"/> <title><?php echo $name ?></title> </head> <body onload="window.print();"> <div style="text-align:center"> <p> <?php echo '<strong>' . $name . '</strong>'; ?> <?php if (!empty($caption)) : ?> <?php echo '<br />' . $caption; ?> <?php endif; ?> </p> <p> <img src="<?php echo $image ?>" alt="<?php echo $name ?>" title="<?php echo $name ?>"/> </p> <p> <?php echo $date ?> </p> </div> </body> </html>