| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/Civil/civil/pms/wp-content/plugins/simple-lightbox/ |
Upload File : |
<?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';