[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
backup
/
components
/
com_banners
/
helpers
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 banner.php
977 B
SET
[ EDIT ]
|
[ DEL ]
📄 category.php
633 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: banner.php
<?php /** * @package Joomla.Site * @subpackage com_banners * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Banner Helper Class * * @since 1.6 */ abstract class BannerHelper { /** * Checks if a URL is an image * * @param string $url The URL path to the potential image * * @return boolean True if an image of type bmp, gif, jp(e)g or png, false otherwise * * @since 1.6 */ public static function isImage($url) { return preg_match('#\.(?:bmp|gif|jpe?g|png)$#i', $url); } /** * Checks if a URL is a Flash file * * @param string $url The URL path to the potential flash file * * @return boolean True if an image of type bmp, gif, jp(e)g or png, false otherwise * * @since 1.6 */ public static function isFlash($url) { return preg_match('#\.swf$#i', $url); } }