summaryrefslogtreecommitdiffstats
path: root/application/helpers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-09-24 15:51:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-09-24 15:51:13 +0200
commit36025a9ab64f0c99bb026529034cb53ca8ca77ba (patch)
tree84b911a9e7e746c0f71ca207086f090b1fc72a9a /application/helpers
parent18ee75a9347a56e2a9380ea3a4dcdbf7eb02fd36 (diff)
Move JSON code to API class
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers')
-rw-r--r--application/helpers/filebin_helper.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 847d6d3ae..0fa986225 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -157,34 +157,6 @@ function auth_driver_function_implemented($function)
return $result[$function];
}
-function send_json_reply($array, $status = "success")
-{
- $reply = array();
- $reply["status"] = $status;
- $reply["data"] = $array;
-
- $CI =& get_instance();
- $CI->output->set_content_type('application/json');
- $CI->output->set_output(json_encode($reply));
-}
-
-function send_json_error_reply($error_id, $message, $array = null, $status_code = 400)
-{
- $reply = array();
- $reply["status"] = "error";
- $reply["error_id"] = $error_id;
- $reply["message"] = $message;
-
- if ($array !== null) {
- $reply["data"] = $array;
- }
-
- $CI =& get_instance();
- $CI->output->set_status_header($status_code);
- $CI->output->set_content_type('application/json');
- $CI->output->set_output(json_encode($reply));
-}
-
function static_storage($key, $value = null)
{
static $storage = array();