// views/errors/html/error_404.php - tambahkan di BARIS PERTAMA setelah defined()
$CI =& get_instance();
$is_admin = false;
if (isset($CI->session) && $CI->session->userdata('role_name') == 'administrator') {
    $is_admin = true;
}
if (!$is_admin) {
    include(APPPATH . 'views/errors/html/error_kiosk.php');
    exit;
}