PHP Classes

File: autoload.php

Recommend this page to a friend!
  Classes of Roni   EZ PHP Maintenance Mode   autoload.php   Download  
File: autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: EZ PHP Maintenance Mode
Check if a site should be put in maintenance mode
Author: By
Last change:
Date: 4 years ago
Size: 335 bytes


Class file image Download

(function ($sClassName) {
$name_space_part = explode('\\', $sClassName);
    if (
$name_space_part[0] === 'EzMaintenance') {
$sClassName = implode(DIRECTORY_SEPARATOR, $name_space_part);
$file = __DIR__ . DIRECTORY_SEPARATOR . $sClassName . '.php';