From adc5dd61f42a0188c4d52fdb8461e063c845fec8 Mon Sep 17 00:00:00 2001 From: anasfanani Date: Wed, 20 Dec 2023 00:45:52 +0700 Subject: [PATCH] upload image for editor.md --- system/admin/editor.md/upload.php | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 system/admin/editor.md/upload.php diff --git a/system/admin/editor.md/upload.php b/system/admin/editor.md/upload.php new file mode 100644 index 0000000..a3d99a1 --- /dev/null +++ b/system/admin/editor.md/upload.php @@ -0,0 +1,62 @@ + $success, + 'message' => $message, + 'url' => site_url() . 'content/images/' . $timestamp . '-' . $name + )); +} else { + $login = site_url() . 'login'; + header("location: $login"); +} \ No newline at end of file