| Server IP : 160.187.147.141 / Your IP : 216.73.216.229 Web Server : nginx/1.28.0 System : Linux inter3 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64 User : butparkerkhactencom ( 1005) PHP Version : 8.4.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/butparkerkhactencom/butparkerkhacten.com/wp-content/plugins/external-importer/ |
Upload File : |
<?php
namespace ExternalImporter;
defined( '\ABSPATH' ) || exit;
use ExternalImporter\application\vendor\CVarDumper;
/**
* AutoLoader class file
*
* @author keywordrush.com <support@keywordrush.com>
* @link https://www.keywordrush.com
* @copyright Copyright © 2020 keywordrush.com
*/
class AutoLoader {
private static $base_dir;
private static $classMap = array(
);
public function __construct()
{
self::$base_dir = PLUGIN_PATH;
$this->register_auto_loader();
}
public function register_auto_loader()
{
spl_autoload_register(array($this, 'autoload'));
}
/**
* Implementations of PSR-4
* @link: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md
*/
public static function autoload($className)
{
$prefix = __NAMESPACE__ . '\\';
$len = strlen($prefix);
if (strncmp($prefix, $className, $len) !== 0)
{
return;
}
if (isset(self::$classMap[$className]))
{
include(self::$base_dir . self::$classMap[$className]);
}
$relative_class = substr($className, $len);
$file = self::$base_dir . str_replace('\\', '/', $relative_class) . '.php';
if (file_exists($file))
{
require $file;
}
}
}
new AutoLoader();
function prn($var, $depth = 10, $highlight = true)
{
echo CVarDumper::dumpAsString($var, $depth, $highlight);
echo '<br />';
}
function prnx($var, $depth = 10, $highlight = true)
{
echo CVarDumper::dumpAsString($var, $depth, $highlight);
die('Exit');
}