require_once 'core/models/Start.php'; $phpfile = isset($_GET['do']) ? $_GET['do'] : 'index'; $phpfilepath = ROOT . 'core/controllers/' . $phpfile . '.php'; if (file_exists($phpfilepath)) require_once $phpfilepath; else func::show_404(); if ($phpfile == 'play') exit; require_once ROOT . 'head.php'; require_once ROOT . 'core/views/' . $phpfile . '.php'; require_once ROOT . 'foot.php'; ?>