Server IP : 149.255.58.128 / Your IP : 216.73.216.182
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/wheelch2/public_html/wp-includes/sodium_compat/lib//namespaced.php
<?php
require_once dirname(dirname(__FILE__)) . '/autoload.php';
if (PHP_VERSION_ID < 50300) {
return;
}
/*
* This file is just for convenience, to allow developers to reduce verbosity when
* they add this project to their libraries.
*
* Replace this:
*
* $x = ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_encrypt(...$args);
*
* with this:
*
* use ParagonIE\Sodium\Compat;
*
* $x = Compat::crypto_aead_xchacha20poly1305_encrypt(...$args);
*/
spl_autoload_register(function ($class) {
if ($class[0] === '\\') {
$class = substr($class, 1);
}
$namespace = 'ParagonIE\\Sodium';
// Does the class use the namespace prefix?
$len = strlen($namespace);
if (strncmp($namespace, $class, $len) !== 0) {
// no, move to the next registered autoloader
return false;
}
// Get the relative class name
$relative_class = substr($class, $len);
// Replace the namespace prefix with the base directory, replace namespace
// separators with directory separators in the relative class name, append
// with .php
$file = dirname(dirname(__FILE__)) . '/namespaced/' . str_replace('\\', '/', $relative_class) . '.php';
// if the file exists, require it
if (file_exists($file)) {
require_once $file;
return true;
}
return false;
});
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | February 20 2024 03:44:41 | 1032 / wheelch2 | 0755 | |
| | | | | |
constants.php | 4.063 KB | December 09 2019 22:12:04 | 1032 / wheelch2 | 0644 | |
namespaced.php | 1.313 KB | December 09 2019 22:12:04 | 1032 / wheelch2 | 0644 | |
php72compat.php | 42.517 KB | April 30 2023 18:38:24 | 1032 / wheelch2 | 0644 | |
php72compat_const.php | 4.489 KB | May 25 2021 18:25:58 | 1032 / wheelch2 | 0644 | |
ristretto255.php | 7.041 KB | September 26 2022 18:30:10 | 1032 / wheelch2 | 0644 | |
sodium_compat.php | 24.098 KB | September 26 2022 18:30:10 | 1032 / wheelch2 | 0644 | |
stream-xchacha20.php | 1.791 KB | September 14 2022 04:43:14 | 1032 / wheelch2 | 0644 | |