%s

%s

', esc_html(sprintf( /* translators: 1: minimum PHP version, 2: the site's PHP version */ __('ScriptLedger needs PHP %1$s or newer, and this site runs PHP %2$s.', 'scriptledger'), FSSL_MIN_PHP, PHP_VERSION )), esc_html__( 'Ask your hosting provider to upgrade PHP; ScriptLedger starts by itself once it has.', 'scriptledger' ) ); }; add_action('admin_notices', $fssl_php_notice); add_action('network_admin_notices', $fssl_php_notice); return; } // Autoloader: prefer Composer, else a minimal PSR-4 loader for the two namespaces. if (file_exists(FSSL_PATH . 'vendor/autoload.php')) { require FSSL_PATH . 'vendor/autoload.php'; } else { spl_autoload_register(function ($class) { $prefixes = [ 'ScriptLedger\\App\\' => FSSL_PATH . 'app/', 'ScriptLedger\\Database\\' => FSSL_PATH . 'database/', ]; foreach ($prefixes as $prefix => $baseDir) { $prefixLength = strlen($prefix); if (strncmp($prefix, $class, $prefixLength) !== 0) { continue; } $file = $baseDir . str_replace('\\', '/', substr($class, $prefixLength)) . '.php'; if (is_readable($file)) { require $file; } return; } }); } require FSSL_PATH . 'boot/app.php';