for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Shutdown here
*
* @return void
*/
function maintenance()
{
include __DIR__ . '/maintenance.php';
exit;
exit
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.
}
* Debug Error
function show_error()
error_reporting(E_ALL);
ini_set('display_errors', 'On');
* Check is admin granted
function is_admin()
if (isset($_SESSION['login'])) {
if (isset($_SESSION['login']['role'])) {
return preg_match('/^superadmin$/s', $_SESSION['login']['role']);
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.