load->helper("filebin"); $CI->load->helper("url"); if ($CI->input->is_cli_request()) { is_cli_client(true); } if (static_storage("response_type") == "json") { $message = str_replace("
", "\n", $message); $array = array( "status" => "error", "message" => strip_tags($message), ); header('Content-type: application/json'); echo json_encode($array); exit(); } if (is_cli_client()) { $message = str_replace("", "\n", $message); $message = strip_tags($message); echo "$heading: $message\n"; exit(); } include 'application/views/header.php'; ?>