From 0d2c962da84d08f511c3b8ee3c7baaef80c1e81e Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 27 May 2019 19:41:46 +0200 Subject: [PATCH] added some comments --- bl-kernel/ajax/delete-image.php | 2 +- bl-kernel/ajax/generate-slug.php | 13 ++++++++++++ bl-kernel/ajax/get-parents.php | 8 ++++++++ bl-kernel/ajax/list-images.php | 4 ++-- bl-kernel/ajax/logo-upload.php | 13 +++++++++++- bl-kernel/ajax/profile-picture-upload.php | 8 ++++---- bl-kernel/ajax/user-logged.php | 24 ----------------------- 7 files changed, 40 insertions(+), 32 deletions(-) delete mode 100644 bl-kernel/ajax/user-logged.php diff --git a/bl-kernel/ajax/delete-image.php b/bl-kernel/ajax/delete-image.php index ef152e5e..0135a6ad 100644 --- a/bl-kernel/ajax/delete-image.php +++ b/bl-kernel/ajax/delete-image.php @@ -5,7 +5,7 @@ header('Content-Type: application/json'); | Delete an image from a particular page | | @_POST['filename'] string Name of the file to delete -| @_POST['uuid'] string Page uuid +| @_POST['uuid'] string Page UUID | | @return array */ diff --git a/bl-kernel/ajax/generate-slug.php b/bl-kernel/ajax/generate-slug.php index 4db1b473..df0039b3 100644 --- a/bl-kernel/ajax/generate-slug.php +++ b/bl-kernel/ajax/generate-slug.php @@ -1,9 +1,22 @@ generateKey($text, $parent, $returnSlug=true, $oldKey); diff --git a/bl-kernel/ajax/get-parents.php b/bl-kernel/ajax/get-parents.php index 2064f4da..4bdf5d49 100644 --- a/bl-kernel/ajax/get-parents.php +++ b/bl-kernel/ajax/get-parents.php @@ -1,6 +1,14 @@ isLogged()) { - exit (json_encode(array( - 'status'=>1, - 'message'=>'The user is logged.' - ))); -} - -exit (json_encode(array( - 'status'=>0, - 'message'=>'The user is NOT logged.' -))); - - -?> \ No newline at end of file