Sindbad~EG File Manager

Current Path : /var/www/html/taet.readinessglobal.com/wp-content/plugins/o365/auto-update/Puc/v4p5/
Upload File :
Current File : /var/www/html/taet.readinessglobal.com/wp-content/plugins/o365/auto-update/Puc/v4p5/Autoloader.php

<?php
if ( !class_exists('Puc_v4p5_Autoloader_O365BASE', false) ):

	class Puc_v4p5_Autoloader_O365BASE {
		private $prefix = '';
		private $rootDir = '';
		private $libraryDir = '';

		private $staticMap;

		public function __construct() {
			$this->rootDir = dirname(__FILE__) . '/';
			$nameParts = explode('_', __CLASS__, 3);
			$this->prefix = $nameParts[0] . '_' . $nameParts[1] . '_';

			$this->libraryDir = realpath($this->rootDir . '../..') . '/';
			
			//print_r($this);
			spl_autoload_register(array($this, 'autoload'));
		}

		public function autoload($className) {
			//echo $className." DWS ";
			if (strpos($className, $this->prefix) === 0) {
				$path = substr($className, strlen($this->prefix));
				$path = str_replace('_', '/', $path);
				$path = $this->rootDir . $path . '.php';

				if (file_exists($path)) {
					/** @noinspection PhpIncludeInspection */
					include $path;
				}
			}
		}
	}

endif;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists