From e64dedc8463a705b50f261e123491a9f7353dadb Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 18 Jul 2013 12:40:02 +0200 Subject: Add json support to upload_history Signed-off-by: Florian Pritz --- application/helpers/filebin_helper.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'application/helpers') diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index 394d55ba5..88bb290c4 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -323,4 +323,11 @@ function auth_driver_function_implemented($function) return $result[$function]; } +function send_json_reply($array) +{ + $CI =& get_instance(); + $CI->output->set_content_type('application/json'); + $CI->output->set_output(json_encode($array)); +} + # vim: set noet: -- cgit v1.2.3-24-g4f1b