Server :
Apache
System :
Linux webd003.cluster126.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 :
atwiofrxug (73666)
PHP Version :
8.4.10
Disable Functions :
_dyuweyrj4,_dyuweyrj4r,dl
Current Directory :
/home/atwiofrxug/mylittletelaviv/wp-content/plugins/cookiebot/addons/lib/
Directory Status:
Writeable | Document Root:
Writeable
Upload File
Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/plugins/cookiebot/addons/lib/autoloader.php
<?php
/**
* Class Cookiebot_Addons_Autoloader
*
* @since 1.1.0
*/
class Cookiebot_Addons_Autoloader {
/**
* plugin root namespace
*
* @sice 1.1.0
*/
const ROOT_NAMESPACE = 'cookiebot_addons\\';
/**
* Register autoload method
*
* @since 1.1.0
*/
public function __construct() {
spl_autoload_register( array( $this, 'cookiebot_autoloader_callback' ) );
}
/**
* Includes file from the correct namespace
* else it will do nothing
*
* @param $class
*
* @since 1.1.0
*/
public function cookiebot_autoloader_callback($class) {
if ( strpos( $class, self::ROOT_NAMESPACE ) === 0 ) {
$path = substr( $class, strlen( self::ROOT_NAMESPACE ) );
$path = strtolower( $path );
$path = str_replace( '_', '-', $path );
$path = str_replace( '\\', DIRECTORY_SEPARATOR, $path ) . '.php';
$path = COOKIEBOT_ADDONS_DIR . DIRECTORY_SEPARATOR . $path;
if ( file_exists( $path ) ) {
include $path;
}
}
}
}
/**
* Start autoloader
*
* @since 1.1.0
*/
new Cookiebot_Addons_Autoloader();
Cyb3r Drag0nz Team • Google Edition