Mecha CMS

Code snippet collection for developers.

Automatic Debug Mode

Activate debug mode if offline, deactivate if online.

// Set to `true` if offline, `false` if online!
define('DEBUG', $_SERVER['HTTP_HOST'] === 'localhost');