HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/plugins/simple-lightbox/load.php
<?php

/* Constants */

if ( ! defined( 'SLB_DEV' ) ) {
	define( 'SLB_DEV', ( isset( $_REQUEST['slb_dev'] ) && ! ! $_REQUEST['slb_dev'] ) );
}

/* Class Management */

/**
 * Class loading handler
 * @param string $classname Class to load
 */
function slb_autoload( $classname ) {
	$prefix = 'slb_';
	$cls    = strtolower( $classname );
	// Remove prefix
	if ( 0 !== strpos( $cls, $prefix ) ) {
		return false;
	}
	// Format class for filename
	$fn = 'class.' . substr( $cls, strlen( $prefix ) ) . '.php';
	// Build path
	$path = dirname( __FILE__ ) . '/includes/' . $fn;
	// Load file
	if ( is_readable( $path ) ) {
		require $path;
	}
}
spl_autoload_register( 'slb_autoload' );

/* Load Assets */

$path = dirname( __FILE__ ) . '/';
require_once $path . 'controller.php';
$GLOBALS['slb'] = new SLB_Lightbox();
require_once $path . 'functions.php';