__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Imagely\NGG\Util;
class URL {
public static function get_source( $source_name ) {
// Nonce checks are not necessary: nothing is happening here, only the mapping of string to variable.
//
// phpcs:disable WordPress.Security.NonceVerification.Recommended
// phpcs:disable WordPress.Security.NonceVerification.Missing
if ( 'request' === $source_name ) {
return $_REQUEST;
} elseif ( 'get' === $source_name ) {
return $_GET;
} elseif ( 'post' === $source_name ) {
return $_POST;
} elseif ( 'server' === $source_name ) {
return $_SERVER;
}
// phpcs:enable WordPress.Security.NonceVerification.Recommended
// phpcs:enable WordPress.Security.NonceVerification.Missing
}
public static function param( string $name, string $source = 'request', string $validation_method = 'sanitize_text_field' ) {
if ( ! self::has_param( $name ) ) {
return null;
}
$source = self::get_source( $source );
return $validation_method( wp_unslash( $source[ $name ] ) );
}
public static function has_param( string $name, string $source = 'request' ): bool {
$source = self::get_source( $source );
return isset( $source[ $name ] );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Filesystem.php | File | 8.12 KB | 0644 |
|
| Installer.php | File | 7.28 KB | 0644 |
|
| Installer_Skin.php | File | 2.09 KB | 0644 |
|
| LicenseHelper.php | File | 8.43 KB | 0644 |
|
| Router.php | File | 18.46 KB | 0644 |
|
| RoutingApp.php | File | 37.28 KB | 0644 |
|
| Sanitization.php | File | 659 B | 0644 |
|
| Security.php | File | 1.65 KB | 0644 |
|
| Serializable.php | File | 2.23 KB | 0644 |
|
| ThirdPartyCompatibility.php | File | 21.58 KB | 0644 |
|
| Transient.php | File | 7.3 KB | 0644 |
|
| URL.php | File | 1.18 KB | 0644 |
|
| UsageTracking.php | File | 6.09 KB | 0644 |
|